-
Usage of RDBMS
Hi Friends,
I was a little bit confused about RDBMS. Please help urgently.
EG :
Table 1 : Name, Age, Empid
Table 2 : DOB, ID, Salary
This is called RDBMS right as it is joining two tables having a common field ID/EmpId. Instead of having two tables why cannot we have only one table with all the fields in it. What is the necessity of creating a new table and connecting them using a primary key.In a single table also we can perform SQL query to get the results.
Please help urgently as i am having a seminar on coming tuesday
-
are you teaching this stuff?
Pablo (Paul) Berzukov
Author of Understanding Database Administration available at amazon and other bookstores.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
-
-
Is this one to one relationship?
-
Originally Posted by PAVB
are you teaching this stuff?
Yessssssssssssss. Thanks for your help
-
Originally Posted by lboard1982
Yessssssssssssss.
No offence but, I'm wondering how can you sleep at night
Pablo (Paul) Berzukov
Author of Understanding Database Administration available at amazon and other bookstores.
Disclaimer: Advice is provided to the best of my knowledge but no implicit or explicit warranties are provided. Since the advisor explicitly encourages testing any and all suggestions on a test non-production environment advisor should not held liable or responsible for any actions taken based on the given advice.
-
Those would normally be one table since they have a 1:1 relation. Also, 'Age' should not be stored as it is derived from DOB, otherwise you have to recalculate all the Age fields every day.
-
That was my question about, is it one to one relation, it seems to be but who knows....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|