Database Management
Database Management
MANAGEMENT
Question-1:
Create a Database named INSTITUTE
Query:
Question-2:
Create a table named FACULTY with the following structure.
Table FACULTY
Query:
Output:
Question-3:
Create a table named COURSES with the following structure.
Table : COURSES
Query:
Output:
Question-4:
Insert following data records into FACULTY table and COURSES table.
FACULTY
COURSES
Query:
Question-5:
To display all records from FACULTY table
Query:
Question-7:
To display all records from FACULTY table whose Hire date is more than 05-OCT-2001
Question-8:
To display F_ID, Fname, Cname of those faculties who charged more than 15000 as fees.
Query:
Question-9:
Display faculty id and the count of number of courses handled by each faculty from courses
table
Query:
Question-10:
Display all records FACULTY table order by First Name of the faculty in descending order
Query:
Question-12:
To increase the fees of Dreamweaver course by 500.
Query:
Question-14:
Alter FACULTY table to add a new field to Phone Number varchar(15)
Query:
Question-16:
Display records from FACULTY table where Last name starts with ‘M’
Query:
Question-18:
Display total and average fees from COURSES table.
Query:
Question-19:
Display Faculty names from FACULTY table who handle/teach more than one
Course(Nested Query)
Question-20:
Display all records from FACULTY table whose phone number is NULL
Query:
Question-21:
Show the structure of FACULTY table and COURSES table
Query:
Question-23:
Delete all records from COURSES table
Query:
Output:
Question-24:
Revoke the last delete operation
Query:
Question-26:
Write the outputs of the SQL queries (a) to (d) and write the SQL queries for (e) to (h) based
on the relations SCHOOL and ADMIN given below:
ADMIN
e) Display Code, Teachers name , Designation and experience from school table and admin
table whose experience is more than 10 years
Query:
h) Increase the number periods by 2 for all the teachers handling PHYSICS
Query: