Please help me solve this question?!
Attachments:
Answers
Answered by
4
The table name is not visible so, it mentioned as <Table name> in the answers to the query. Kindly fill the table table name in place of
<Table name>.
Ans 1. alter table <Table name> add primary key (Department);
Ans 2. insert into <Table name> values('H606','Cardiology','TTS','Vinita Wahi');
Hope this will help you.
encourage me by voting 5 star and a thanks.
Thank you!
dex69:
why isn't the ID the primary key?
Answered by
3
1. ID can be set as the primary key as ID is unique to every doctor.
Or in other words every doctor has a unique ID.
2. INSERT INTO (Tablename) (“ID”, “Department “, “OPD_Days”, “Doctor_Name”) Values (‘ H608’, ‘Cardiology ‘, ‘TTS’, ‘Vinita Wahl’);
3. Select * from (tablename) where OPD_ DAYS= ‘MWF’ ;
Similar questions
Environmental Sciences,
6 months ago
Computer Science,
6 months ago
Geography,
1 year ago
English,
1 year ago
Biology,
1 year ago
Math,
1 year ago