0% found this document useful (0 votes)
2 views

DBMS Program List

Uploaded by

ayushidixit248
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

DBMS Program List

Uploaded by

ayushidixit248
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

PRACTICAL PROGRAM LIST

1. Employee (name varchar(20), id int, age int, address varchar(30))


a. Create the database company.
b. Create the employee table and insert the 6 records in table.
c. How will you delete all records from the table
d. How will you find those employees who have maximum age.

2. Employee (name varchar(20), id int, age int, address varchar(30))


a. Create the database company.
b. Create the employee table and insert the 6 records in table.
c. Find the name of those employees whose name end with ‘L’.
d. Add salary column and find the average salary of employees .

3. Employee (name varchar(20), id int, age int, address varchar(30))


a. Create the database company.
b. Create the employee table and insert the 6 records in table.
c. Add a field name experience in employee table
d. Put the values in experience for every employee in the table.

4. Employee (name varchar(20), id int, age int, address varchar(30))


a. Create the database company.
b. Create the employee table and insert the 6 records in table.
c. Find the name of those employees who have ‘it’ as substring in name.
d. Find the minimum aged employee.

5. Employee (name varchar(20), id int, age int, address varchar(30))


a. Create the database company.
b. Create the employee table and insert the 6 records in table.
c. Make the default constraint with in the table.
d. Add a salary and find those employees who have salary between 20000 to
35000.

6. Student (name varchar(20), rollno int, age int, phy int, che int, bio int)
a. Create the database college.
b. Create the student table and insert the 6 records in table.
c. Find the name of those students who have passed in all subjects.
d. Find the name of those students who failed in all 3 subjects.

7. Customer (id int, name varchar(20), age int , address varchar(30))


a. Create the database shop.
b. Create the customer table and insert the 6 records in table.
c. Find all those customers whose name start with ‘S’ & end with ‘L’.
d. Make the age of customers in descending order.

8. Customer (id int, name varchar(20), age int, address varchar(30))


a. Create the database shop.
b. Create the customer table using check constraint and insert the 6 records in table.
c. How to make a primary key in the customer table.
d. Find the length of any name in customer table.

9. Customer (id int, name varchar(20), age int , address varchar(30))


a. Create the database shop.
b. Create the student table and insert the 5 records in table.
c. Use the default constraint in the name of customer.
d. Truncate the customer table.

10. Customer (id int, name varchar(20), age int, address varchar(30))
a. Create the database shop.
b. Create the customer table and insert the 6 records in table.
c. Make the table ascending order with age.
d. Find the customer name in upper case.

11. Student (name varchar(20), rollno int, age int, phy int, che int, bio int)
a. Create the database college.
b. Create the student table and insert the 6 records in table.
c. Select those students name whose age below 26 & living in ‘Agra’.
d. Create a view of the student table with age and roll no field.

12. Student (name varchar(20), rollno int, age int, phy int , che int , bio int)
a. Create the database college.
b. Create the student table and insert the 6 records in table.
c. How will you use rollback in deletion?
d. Count the number of students in the table?
13. Student (name varchar(20), rollno int, age int, phy int, che int , bio int)
a. Create the database college.
b. Create the student table and insert the 6 records in table.
c. Create an index on table student.
d. Delete a column in student table.

14. Student (name varchar(20), rollno int, age int, phy int, che int, bio int)
a. Create the database college.
b. Create the student table and insert the 6 records in table.
c. Add a primary key on column rollno with ALTER.
d. Update the age of any student in the given table.

15. Student (name varchar(20) , rollno int, age int, phy int, che int, bio int)
a. Create the database college.
b. Create the student table and insert the 6 records in table.
c. Delete those student record whose name start from ‘S’.
d. Select those student name whose age in between 25 and 35.

You might also like