Question: You have to write a query to create a table, how many columns can you have as PRIMARY and FOREIGN KEYS in the table. Any

You have to write a query to create a table, how many columns can you have as PRIMARY and FOREIGN KEYS in the table.
Any number of column as PRIMARY KEY and only one column as FOREIGN KEY, given it meets required constraints
Any number of columns, given it meets required constraints
One column as PRIMARY KEY and one column as FOREIGN KEY, given it meets required constraints
Only one column as PRIMARY KEY and any number of columns as FOREIGN KEY, given it meets required constraints
 You have to write a query to create a table, how

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!