Dbmsfile Final1
Dbmsfile Final1
Create the Student table, Register table and Program table. Student table (Roll no. as primary key,
Name as not null, city) Program table (Program ID as primary key, Program Name as not null,
Program Fee not less than 10000, Department) Register table (Program ID and Roll no. as primary
composite key)
Display the details of students who are registered in the "MCA" program.
.Display the list of all students, who are registered in at least one program.
Display the details of programs that have fees greater than the average fee.
Display the details of students who have not registered in any course
Display the names of programs in which a maximum number of students are registered
Display the names of programs in which a minimum number of students are registered.
Find out the second minimum salary of an employee without using limit, dense range, and order by
clause.
Find out the third maximum salary of an employee without using limit, dense range, and order by
clause.
Display the names and salaries of employees who earn more than the average salary of their
department.
Display the names of employees who are older than their colleagues in the same department.
Display the name of the city as "destination" for customers who have placed orders.
Display the details of employees along with their corresponding department names.
Print the names of employees who are not assigned to any department.
Display the names of employees along with their department names for those who
are not assigned to any department.
Print the employee names and their corresponding department names for employees
with a salary greater than 25,000. (Using right join).
Display the names of departments along with the names of employees who are older
than 30 years.