SQL - Structure
The importance of building your tables correctly could be considered its own form of art. Psychologists have even gone as far to say that those with the ability to organize their thoughts and concepts well tend to be absolutely brilliant (ie Mozart, Einstein, DaVinci). A database is only slightly different from the human brain and clear organization is a must, especially if large quantities of people will be using the same database.SQL - Table Relationships
The key to a large database is having tables with material that can relate to one another. A great example is the employee ID. Ever wonder or joke about being just another number to the company. A lot of that has to do with the way they set up their database. A large company is going to have a weekly payroll and a personal information table. They might be set up like the following:personal_info
emp_id | last_name | first_name |
0056 | Mynce | George |
0097 | Jenkins | Fred |
emp_id | hours | rateofpay |
0056 | 37.5 | 27.00 |
0097 | 44.5 | 22.25 |
Relationship tables are the choice for high-traffic databases. There are countless security advantages, faster query returns, and complete view customization (more on this later).
0 comments:
Post a Comment