Rdbms Lab Questions
Rdbms Lab Questions
1. Create a table student with the following fields (roll no, name,
class, dob, address, mark)with suitable data types. Develop SQL
query to create, insert, select.
2. Develop SQL query to delete, update, truncate, drop.
3. Create a table Client-master with the following fields (client_no,
name, address, city, state, pin code, remarks, bal_due) with suitable
data types.
a. Create another table supplier_table from client_master.
Select all the fields and rename client_no with supplier_no and name
with supplier_name.
b. Insert data into supplier_master from client_master.
c. Delete the selected row in the client_master.
11. Create a table employee with the eno as primary key and with the
following fields: ename, job_type, manager, hire_date, dno,
commission, salary and set dno as a foreign key. Create reference
table department with the dno as primary key and dname .
a. Query to display Employee Name, Job, Hire Date, Employee
Number; for each employee with the Employee Number appearing first.
e. Query to display the Employee No. And Name for all employees
who earn more than the average salary.