Brian
asked on
Customer Form
Hello Experts,
I would like some advice / feedback on proper column names, data types and lengths for the following I need to collect from my customers. Also, PLEASE let me know if I can improve the type of information that I'm collecting.
Display Name As
Company Name
First Name
Last Name
Address
City
State
Zip Code
Phone Number
Mobile Phone Number
Email Address
I would like some advice / feedback on proper column names, data types and lengths for the following I need to collect from my customers. Also, PLEASE let me know if I can improve the type of information that I'm collecting.
Display Name As
Company Name
First Name
Last Name
Address
City
State
Zip Code
Phone Number
Mobile Phone Number
Email Address
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
>Not every customer is a "Company"
As long as the column is defined NOT NULL you'll be fine. NULL is the default unless explicitly stated. Also it wouldn't be the worst thing in the world to learn about your data as it is collected, and then make minor changes.
As long as the column is defined NOT NULL you'll be fine. NULL is the default unless explicitly stated. Also it wouldn't be the worst thing in the world to learn about your data as it is collected, and then make minor changes.
ASKER
Ok, I wasn't sure if there was a field or two that I could use instead of having fields called DisplayNameAs, CompanyName, FirstName and LastName.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
@Scott, very good advice.. Thank you, I will definitely implement that.
ASKER
@Scott,
For the DateCreated and DateModified should those Data Types be DateTime? I'm using SQL Server and wasn't sure if I need to add anything else to DateTime. I would like the format to be DATETIME - format: YYYY-MM-DD HH:MI:SS for DateCreated and DateModified. DateModified will only be updated when I need to update that customer. DateCreated will never change.
For the DateCreated and DateModified should those Data Types be DateTime? I'm using SQL Server and wasn't sure if I need to add anything else to DateTime. I would like the format to be DATETIME - format: YYYY-MM-DD HH:MI:SS for DateCreated and DateModified. DateModified will only be updated when I need to update that customer. DateCreated will never change.
> DATETIME - format: YYYY-MM-DD HH:MI:SS
That looks good. it goes through YYYY-MM-DD HH:MI:SS.9999
I keep the fraction of a second because it can help in troubleshooting later for something like duplicates getting created. For display, I will just use YYYY-MM-DD HH:MI:SS
That looks good. it goes through YYYY-MM-DD HH:MI:SS.9999
I keep the fraction of a second because it can help in troubleshooting later for something like duplicates getting created. For display, I will just use YYYY-MM-DD HH:MI:SS
ASKER
Yes, but in SQL Server it's asking for Data Type which is either "DateTime" or "DateTime2". But is there anything that I need to add to that column to give me the format above that i need?
The question was answered as asked.
ASKER
I apologize for the late reply. I have been away for awhile.
ASKER