Test Index

CBSE Class 12 Computer Science 2023 Paper Compartment Get it on Google PlayDownload on the App Store

© examsnet.com
Question : 34 of 35
Marks: +1, -0
The ABC Company is considering to maintain their salespersons records using SQL to store data. As a database administrator, Alia created the table Salesperson and also entered the data of 5 Salespersons.
Table : Salesperson
S_IDS_NAMEAGES_AMOUNTREGION
S001SHYAM3520000NORTH
S002RISHABH3025000EAST
S003SUNIL2921000NORTH
S004RAHIL3922000WEST
S005AMIT4023000EAST
Based on the data given above, answer the following questions :
(i) Identify the attribute that is best suited to be the Primary Key and why ? (1)
(ii) The Company has asked Alia to add another attribute in the table. What will be the new degree and cardinality of the above table ? (1)
(iii) Write the statements to : (2)
(a) Insert details of one salesman with appropriate data.
(b) Change the Region of salesman ‘SHYAM’ to ‘SOUTH’ in the table Salesperson.
OR (Option for part iii only)
(iii) Write the statement to : (2)
(a) Delete the record of salesman RISHABH, as he has left the company.
(b) Remove an attribute REGION from the table.
Advertisements
Go to Question: