0% found this document useful (0 votes)
4 views

Database Technologies_Lab Exam_Question Paper

The document is an examination question paper for the e-DAC program, focusing on Database Technologies, dated May 2021. It includes instructions for submission, a series of SQL and MongoDB queries, and tasks related to database management. The exam consists of 14 questions, with varying marks assigned to each question, totaling a maximum of 40 marks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

Database Technologies_Lab Exam_Question Paper

The document is an examination question paper for the e-DAC program, focusing on Database Technologies, dated May 2021. It includes instructions for submission, a series of SQL and MongoDB queries, and tasks related to database management. The exam consists of 14 questions, with varying marks assigned to each question, totaling a maximum of 40 marks.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

ACTS, Head Quarters, Pune

EXAMINATION QUESTION PAPER


e-DAC, May 2021

EXAM Type : Main Module Name : Database Technologies SET: A


DATE: 24 /8/2021 Duration: 2hrs Max. Marks: 40

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]

Q3) Write SELECT statement to achieve the following: [1 mark each]


1. Display the Employee’s ID, Column with concatenation of First Name and Last Name, Salary who is
living in ‘London’.
2. Display the Employee’s Last name whose name starts with ‘s’.
3. Find the Employee Joining date on the first Monday in October month.
4. Display the Employee name and city in capital letters.
5. Display the department and their max salary of the same department.

Q4) Delete duplicate rows using an intermediate table. [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]

1. Update The Salary Of Employee Id = 105;


2. Delete The Row Of The Employee Id = 106;
3. Update The Employee Department Id Of The Employeeid = 108 Observe The Parent Table Employees
TCM / DI / 33 - Rev 00 Page 1 of 2
ACTS, Head Quarters, Pune

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]

Q14) Mongo Question [2 Marks each]

1) Sort the records in ascending order of age.


2) Display the records of gender Male.
3) Display the records whose age is 57 years.
4) Display employees who are not earning any commission or have salaries higher than 12000. Display
output in ascending order of department id and descending order of salary.
5) Update employee id to 210 for an employee with first name Steve and last name Rogers. Ensure a new
record is created if the employee does not exist in collection

TCM / DI / 33 - Rev 00 Page 2 of 2

You might also like