SQL Practical Questions and Answers
SQL Practical Questions and Answers
Practical
Name :Tarini
1. Write the SQL statement to create the following
table: (2)
Table Name: Doctor
DocID DNAME DEPT GENDE EXP
R
1 John Cardiology M 4
2 Swati ENT F 16
3 George Skin M 9
4 Avantika General F 8
5 Gina ENT F 12
Screenshot of the command to create the table
Screenshot of the command to insert the record
2. Identify the Primary Key, Candidate Key and the Alternate key.
Ans:
Ans:
4. Write the SQL command to display all the details
from the table.