DBAsupport.com Forums - Powered by vBulletin
Results 1 to 8 of 8

Thread: Usage of RDBMS

  1. #1
    Join Date
    Jul 2007
    Posts
    2

    Thumbs up 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

  2. #2
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    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.

  3. #3
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  4. #4
    Join Date
    Nov 2006
    Location
    Sofia
    Posts
    630
    Is this one to one relationship?

  5. #5
    Join Date
    Jul 2007
    Posts
    2
    Quote Originally Posted by PAVB
    are you teaching this stuff?

    Yessssssssssssss. Thanks for your help

  6. #6
    Join Date
    Mar 2007
    Location
    Ft. Lauderdale, FL
    Posts
    3,555
    Quote 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.

  7. #7
    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.

  8. #8
    Join Date
    Nov 2006
    Location
    Sofia
    Posts
    630
    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
  •  


Click Here to Expand Forum to Full Width