Information System Management File
Information System Management File
PROFESSIONAL STUDIES
Practical File
Batch : 2020-2023
Solution : a.
Solution : b.
Assignment 2: Select Queries for table Test1
a. Write an SQL query to display all the records
b. Write an SQL query to display all the records where age >40
c. Write an SQL query to display Fname, Age from the table
d. Write an SQL query to display Fname, Age, Gift where Age > 35 from the table
e. Write an SQL query to display all record where Gift > 200 and Age >20
f. Write an SQL query to display all record where Gift > 200 or Age >20
Solution : a.
Solution : b.
Solution : c.
Solution : d.
Solution : e.
Solution : f.
Assignment 3: Queries for aggregate functions for table Test1
a. Write SQL query to add the age of all records.
b. Write a query to average of the cost of gifts.
c. Write a query to display the name and age of the youngest member
d. Write a query to count the number of candidates whose age in more than 30.
e. Write a query to find the name and cost of the costliest gift.
Solution : a.
Solution : b.
Solution : c.
Solution : d.
Solution : e.
c. Find names for all employees who work for the RD01 department.
d. How many employees work in department starting from RD.
e. What is the maximum and minimum of the salaries.
f. Name the employees and their department whose salaries are greater than 12000.
g. Find the number of employees in each department.
h. List the employees in increasing order of their salaries.
i. Modify the table so that Susan is assigned to AD01 department.
j. Name the employee in department RD03 who lives in Park Avenue.
k. Find the Average salary.
l. Count the number of employees.
Solution : a.
Solution : b.
Solution : c.
Solution : d.
Solution : e.
Solution : f.
Solution : g.
Solution : h.
Solution : i.
Solution : j.
Solution : k.
Solution : l.
Assignment 5: Constraints
c. Write an SQL query to display the table in ascending order of their names
d. Write a SQL query that returns the average salary using the alias “Average salary”
e. Write a SQL query to display the records of employees whose names start with letter ‘P’ or ‘H’
Solution : a
Solution : b.
Solution : c.
Solution : d.
Solution : e.
Solution : a.
Solution : b.
Solution : d.
Solution : e.