English

Add foreign key in the ATTENDANCE table (use figure to identify referencing and referenced tables).

Advertisements
Advertisements

Question

Add foreign key in the ATTENDANCE table (use figure to identify referencing and referenced tables).

Code Writing
Advertisements

Solution

ALTER TABLE ATTENDANCE
ADD FOREIGN KEY (RollNumber)
REFERENCES STUDENT (RollNumber);
  • Referencing table: ATTENDANCE
  • Referencing attribute: RollNumber
  • Referenced table: STUDENT
  • Referenced attribute: RollNumber
shaalaa.com
  Is there an error in this question or solution?
Chapter 8: Introduction to Structured Query Language (SQL) - Intext Questions [Page 151]

APPEARS IN

NCERT Informatics Practices [English] Class 11
Chapter 8 Introduction to Structured Query Language (SQL)
Intext Questions | Q 9. | Page 151
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×