|
InputType
|
Description
|
Functionality
|
|
Text
|
Any text string up to 450 characters
|
Multiple times
|
|
Date
|
Eight character date in YYYYMMDD
format
|
Multiple times
|
|
Partial Date
|
Eight character date in YYYYMMDD
format which allows zeroes
|
Multiple times
|
|
Numeric
|
Any number value (2, 27, 999)
|
Multiple times
|
|
List - Single Select
|
Drop down list, only allowing the
list to appear once
|
Single
|
|
List - Multi Select
|
Drop down list, allowing the list to
appear multiple times
|
Multiple times
|
|
List - Optional Select
|
Drop Down List with option to type in
the value
|
Single
|
|
Memo
|
Any length text string
|
Multiple times
|
|
Decimal
|
Any number value requiring up to 5
decimal places
|
Multiple times
|
|
Text (Single)
|
Any text string up to 450 characters
|
Single
|
|
Date (Single)
|
Eight character date in YYYYMMDD
format
|
Single
|
|
Partial Date (Single)
|
Eight character date in YYYYMMDD
format which allows zeroes
|
Single
|
|
Numeric (Single)
|
Any number value (2, 27, 999)
|
Single
|
|
Memo (Single)
|
Any length text string
|
Single
|
|
Decimal (Single)
|
Any number value requiring up to 5
decimal places
|
Single
|
Do's: Writing comments whenever something is not very obvious, as it won’t impact the performance. (--) for single line (/*…*/) to mark a section Use proper indentation Use Upper Case for all SQL keywords. SELECT, UPDATE, INSERT, WHERE, INNER JOIN, AND, OR, LIKE. Use BEGIN... END block for multiple statements in conditional code Use Declare and Set in beginning of Stored procedure Create objects in same database where its relevant table exists otherwise it will reduce network performance. Use PRIMARY key in WHERE condition of UPDATE or DELETE statements as this will avoid error possibilities. If User table references Employee table than the column name used in reference should be UserID where User is table name and ID primary column of User table and UserID is reference column of Employee table. Use select column name instead of select * Use CTE (Common Table Expression); its scope is limited to the next statement in SQL query, instead of...
Comments
Post a Comment