I wanted to know what is good practice in implementing zip codes in a .aspx web form and SQL Server 2k. For example, most zip codes that will be entered have 5 digits, but there are also those cases that have that 4 digit extension at the end. Should I create 2 fields in the database, such as ZipCode char(5) and then another column with ZipCodeExt char (4) and then have 2 text boxes on the web form respectively? Or should I just have 1 textbox on the web form named ZipCode to all 5 or 9 digit strings into one column on the backend db such as ZipCode varchar(9)? I think the former is better since we should always work at the most atomic level when working with databases.
I would like to know what is the best practice to implement this.
Thanks in advance.
I would like to know what is the best practice to implement this.
Thanks in advance.