1.
Create table Employeeinfo with 10 records
● Write a query to fetch the number of employees working in the department ‘HR’.
● Write a query to find the names of employees that begin with ‘S’
● Write a query to retrieve the EmpFname and EmpLname in a single column as
“FullName”. The first name and the last name must be separated with space.
EmployeeInfo Table:
EmpID EmpFname Ename Department Project Address DOB Gender
2. Create Table employee with following details
● Write the SQL query to get the third maximum salary of an employee from a table named employees.
● Write the SQL query to get the Sal in Ascending order.
employee_name Department Project Address salary
3. Create table Employeeinfo with 10 recordsEmployeePosition
● Write a query to find all the employees whose salary is between 50000 to 100000.
● Write the SQL query for all aggregate functions
table Employeeinfo:
EmpI EmpFn Ename Department Project Address DOB Gender
D ame
EmpIDEmpPosition DateOfJoining Salary
EmployeePosition :
4. Create table Studentinfo with 10 records
●
table Studentinfo:
stdID stdnam Department Address Gender
e
● Write a query to find
all the students whose department is computer and Gender is Female.
● Write the SQL query to find stdname start with ‘S’ OR department is mech but student should not be
female.
5. Create table Studentinfo with 10 records add city name as
‘Pune’,Mumbai’,’Delhi’,’Hyderabad’,’Chennai’,
●
table
stdID stdnam Department City cast Fees Gender Studentinfo:
● Write a query to find all the students' fees according to their city.
● Write the SQL query to find students whose fees are between 100000 to 200000 and belong to
hyderabad.
6. Create table Studentinfo with 10 records add city name as
‘Pune’,Mumbai’,’Delhi’,’Hyderabad’,’Chennai’,
●
table
stdID stdnam Department City cast Fees Gender Studentinfo:
e
● Write a query to find all the details of the students' fees in ascending order and their name
should be in capital letters.
● Write a query to find all the details of the students' fees are more than 20000 and less than 80000.
7. Create table Studentinfo with 10 records
table Studentinfo:
stdID stdnam Department marks Fees Gender
e
● Write a query
to find all the students whose marks are 25 and 75.
● Write the SQL query for all aggregate functions for marks.
8.Create table of Employee info with 10 records (6 Columns)
● List the details of the emps in asc order of the Deptnos and desc of Jobs?
● Display unique Jobs from EMP table?
9.Create table of Employee info with 10 records
(Empid,ename,comm,sal,dept,deptno,address)
● Display all the details of the emps whose Comm. Is more than their Sal.
● 16. List the emp who are working for the Deptno 10 or20.
10.Create table of Employee info with 10 records
(Empid,ename,comm,sal,dept,deptno,address)
● List the emps Who Annual sal ranging from 22000 and 45000.
● List the Enames those are starting with ‘S’ and with five characters.
● List the Enames those are having five characters in their Names.
11.MongoDB Queries: Design and Develop MongoDB Queries using CRUD operations. (Use
CRUD operations, SAVE method, logical operators etc.).
12.MongoDB - Aggregation and Indexing: Design and Develop MongoDB Queries using
aggregation and indexing with suitable example using MongoDB.
13.MongoDB - Map reduces operations: Implement Map reduces operation with suitable
example using MongoDB.
14. Database Connectivity: Write a program to implement MongoDB database connectivity
with any front end language to implement Database navigation operations (add, delete, edit
etc.)
15. Database Trigger (All Types: Row level and Statement level triggers, Before and After
Triggers). Write a database trigger on Library table. The System should keep track of the
records that are being updated or deleted. The old value of updated or deleted records
should be added in Library_Audit table.