I am new to SQL databases and having some trouble locating information on designing tables.
I am trying to find something that falls between "So this is your first SQL database" and "How to configure your SQL server farm for optimal throughput". All of the material I find appears too be to simplified or too advanced.
I understand the basics of table design and database concepts like normalization. I want to find examples of tables that contain common data (ie. name, phone number, address info, part numbers, etc) with an explanation of what data types are chosen and why.
For example. I know that if I ask a user for a phone number that they may enter it in many different formats. With dashes, parentheses, spaces, etc. I also understand that I want to store that data without all of the "extra" formatting. What is a good practice? should I store it in a varchar field? What are some good examples? If I store the data using the suggested formatting what are some considerations I will need to take into account on the client side of the application?
There is a lot of basic data like this that I'm sure there are some good/better/best ways of storing. Zip codes, state abbreviations, social security numbers, etc. I can create a database that will store all of this data but I would like to learn commonly accepted best practices for storing this information so that I am doing it the "right" way.
I would appreciate any suggestions for websites or books that I can reference.
I am trying to find something that falls between "So this is your first SQL database" and "How to configure your SQL server farm for optimal throughput". All of the material I find appears too be to simplified or too advanced.
I understand the basics of table design and database concepts like normalization. I want to find examples of tables that contain common data (ie. name, phone number, address info, part numbers, etc) with an explanation of what data types are chosen and why.
For example. I know that if I ask a user for a phone number that they may enter it in many different formats. With dashes, parentheses, spaces, etc. I also understand that I want to store that data without all of the "extra" formatting. What is a good practice? should I store it in a varchar field? What are some good examples? If I store the data using the suggested formatting what are some considerations I will need to take into account on the client side of the application?
There is a lot of basic data like this that I'm sure there are some good/better/best ways of storing. Zip codes, state abbreviations, social security numbers, etc. I can create a database that will store all of this data but I would like to learn commonly accepted best practices for storing this information so that I am doing it the "right" way.
I would appreciate any suggestions for websites or books that I can reference.