SQL_Questions_with_Images
SQL_Questions_with_Images
1. Write the SQL query to create the "Participant" table with the given structure.
2. Write the command to display the tables created in a database and the command to view
the structure of the table.
4. OR
i) Write the SQL Query to display the records of the ENT department.
ii) Write the SQL Query to update the experience of all doctors by 1.
iii) Write the SQL Query to display "Name" and "Dept" in ascending order and then by
"Experience" in descending order.
iv) Write the SQL Query to add a Primary Key to the column "ID" in the existing table.
a) Write a SQL query to display the name of the oldest employee first, then the 2nd oldest,
and so on.
b) Which of the following commands will display all sales where the date of joining is after
31st March 2018?
i) Select * from Sales where dateofjoin >= "31-03-2018";
ii) Select * from Sales where dojoin >= "2018-03-31";
iii) Select * from Sales where dojoin > "2018-03-31";
iv) Select * from Sales where dojoin > "2018/03/31";
c) Write a query to display "Area," "Ename" as "Employee," and "Amount*0.01" as "PF" for
employees in "East" or "West" areas.
d) Write a SQL query to delete the record of the employee with Ecode 102.
Participant Table Structure