logo

CuriousTab

CuriousTab

Discussion


Home Interview Technology Comments

  • Question
  • Explain foreign key constraint.


  • Correct Answer
  • A foreign key is a reference to another table It is used to establish relationships between tables For example, relationship between employee and professor table One employee can have multiple professors The Primary key of employee becomes foreign key of professor Example: create table employee ( id number NOT NULL, professor_id NOT NULL, Name varchar(200) Constraint prim_id Foreign key(id) references professor(professor_id) ); 


  • Technology problems


    Search Results


    • 1. Explain primary key constraint.
    • Discuss
    • 2. Explain Not Null constraint.
    • Discuss
    • 3. Explain Check constraint.
    • Discuss
    • 4. What are the types of constraints avaialable in oracle?
    • Discuss
    • 5. How to recover a dropped table?
    • Discuss
    • 6. Explain unique Constraint.
    • Discuss
    • 7. Explain how to limit the rows that are retrieved by a query.
    • Discuss
    • 8. What are joins? Explain its characteristic features .
    • Discuss
    • 9. What is correlated query? Explain its uses.
    • Discuss
    • 10. Define PL/SQL. Explain its purpose
    • Discuss


    Comments

    There are no comments.

Enter a new Comment