Database Technologies_Lab Exam_Question Paper
Database Technologies_Lab Exam_Question Paper
INSTRUCTIONS:
• All Questions are compulsory.
• Create one folder on your machine rename it with your PRN (Pls use complete PRN)
• Copy all the solution files of all questions in the above created folder
• After copying all the files right click on main folder select option "Add to Achieve" and click on radio
button in front of zip option.
• It will create zip folder of your PRN. This will be your final folder to upload.
• Submissions : Word file containing queries only (Output not required)
• Please note before uploading zip folder make sure you have copied all your relevant files in
the respective folders. Once you upload the final folder you will not be able to re upload it.
• Kindly ensure before creating zip file, make sure all the required files should be closed to
avoid any corruption of the zip file.
• Zip File should be renamed with FULL PRN No. of the
candidate. (For example: 210540181001.zip)
Q1) Write a query to display department name, name (first_name, last_name), hiredate, salary of the
manager for all managers whose experience is more than 15 years. [2 Marks]
Q2) Create a report to display the manager number and the salary of the lowest-paid employee for that
manager. Exclude anyone whose manager is not known. Exclude any groups where the minimum salary is $6,000
or less. Sort the output in descending order of salary. [2 Marks]
Q5) Create an index on the month values of the hire_date column in the employees table. [2 Marks]
Q6) Create A View On The Employees Table With Empno , Empname, Empsalary [1 Mark each]
Q7) Write a query in SQL to display the job title, department name, full name (first and last name ) of
employee, and starting date for all the jobs which started on or after 1st January, 1993 and ending with on or
before 31 August, 1997. [2 Marks]
Q8) Write a query in SQL to display full name(first and last name), job title, starting and ending date of last
jobs for those employees who worked without a commission percentage. [2 Marks]
Q9) Write a query in SQL to display the first name of all employees and the first name of their manager
including those who do not work under any manager. [2 Marks]
Q10) Write a query in SQL to display those employees who contain a letter z to their first name and also
display their last name, department, city, and state province. [2 Marks]
Q11) Write a query in SQL to display all departments including those where it does not have any employees.
[2 Marks]
Q12) Write a query in SQL to display the first and last name and salary for those employees who earn less
than the employee whose number is 182. [2 Marks]
Q13) Write a query in SQL to display the first name of all employees including the first name of their
manager. [2 Marks]