Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
29 views

Dbms Practical Question

nil

Uploaded by

Mrs.Minu Meera M
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
29 views

Dbms Practical Question

nil

Uploaded by

Mrs.Minu Meera M
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

1. A.

Write Sql queries for the following:


a) Create employee table with the required fields along with the appropriate constraints.
b) Insert 5 records in the above table.
c) Write the Pl/Sql code to print the Multiplication table
B. Design the forms to implement the Payroll Processing and implement the addition of an Employee

2. A. Write Sql queries for the following:


a) Create a table customer with the fields namely custid which is uniquely identifies each customer,
custname,cust_type whose default value is ‘s’, balance should always be above 500.
b) Insert 5 records in the above table.
c)Display the customers whose balance ranges from 500 to 2000.
B. Design the forms to implement the Payroll Processing and implement the Deletion of an Employee.

3. A. Write Sql queries for the following:


a) Create a table patient with the fields PID that uniquely identifies each patient, Pname,Dr_name,
Wardno, Fees.
b) Insert 5 records in the above table.
c) Display the highest fees to be paid by the patient.
B. Design the forms to implement the Payroll Processing and implement the updating of an Employee.

4. A. Write Sql queries for the following:


a) Create a table Department with the fields Deptid that uniquely identifies each
department,Dname should always contain value,No_of_staff,Basic_salary default value 5000.
b) Insert 5 records in the above table.
c) Write the Pl/Sql code to print the factorial of the number.
B. Design the forms to implement the Payroll Processing and implement the addition of an Employee

5. A. Write Sql queries for the following:


a) Create a table Courses with the fields Courseid that uniquely identifies each Course, Cname
should always contain value, Course_Fee, Duration default 5 months.
b) Insert 5 records in the above table.
c) Increment the Course _Fee by 50% whose duration is above 5.
B. Design the forms to implement the Payroll Processing and implement the updation of an
Employee.

6. A. Write Sql queries for the following:


a) Create a table Movies with the fields Movie that uniquely identifies each Movie, name should
always contain value, rating default 5, Language.
b) Insert 5 records in the above table.
c) Display only Tamil language movie
B. Write the Pl/Sql code to update the employee salary by 500 in the employee table.
7. A. Write Sql queries for the following:
a) Create a table Matches with the fields Mid that uniquely identifies each Match, Venue should
always contain value, Days default A, Date_of_play.
b) Insert 5 records in the above table.
c) Delete the above table.
B. Generate the Report card for all employees.

8. A. Write Sql queries for the following:


a) Create a table Employee with the fields Empid that uniquely identifies each Employee,Ename
should always contain value, Deptno,Date-of_join default system date,Basic_Pay should be >0.
b) Insert 5 records in the above table.
c) Add a field named date of birth (DOB) to the above table.
B. Design the forms to implement the Marksheet Processing and implement the navigation
operations

9. A. Write Sql queries for the following:


a) Create a table Student with the fields Rollno that uniquely identifies each Student,Sname
should always contain value, Course default ‘BCA’, Semester.
b) Insert 5 records in the above table.
c) Display the system date.
B. Design the forms to implement the Marksheet Processing and implement the navigation
operations

10. A. Write Sql queries for the following:


a) Create a table Item with the fields Itemcode that uniquely identifies each Item, Iname should
always contain value, Price default A0, Quantity.
b) Insert 5 records in the above table.
c) Display the average price of the items in the table.
B. Create a explicit cursor using pl/sql code to display the customer details whose address is
“Chennai”.

11. A. Write Sql queries for the following:


a) Create a table Shop with the fields Shop_id that uniquely identifies each Shop, Shop_name
should always contain value, Shop_owner, Shop_rent default 5000.
b) Insert 5 records in the above table.
c) Display the average of Shop_rent from the above table.
B. Create a trigger to execute when a record in a table is updated using pl/Sql block.

12 A. Write Sql queries for the following:


a) Create a table Teacher with the fields Tno that uniquely identifies each Teacher, Tname should
always contain value, Taddress, Salary should be below B5000,Department.
b) Insert 5 records in the above table.
c) Increase the salary of the teachers by B0% whose department is Language.
B. Design the forms to implement the Marksheet Processing and implement the Deletion of a student
13. A. Write Sql queries for the following:
a) Create Order table with fields Order no, Order_date,Partno, Quantity along with the
appropriate constraints.
b) Insert 5 records in the above table.
c) Display the orders whose quantity >10.
B. Design the forms to implement the Marksheet Processing and implement the Deletion of a
student

14. A. Write Sql queries for the following:


a) Create a table Books with the fields Bookkno that uniquely identifies each Book, Bname should
always contain value, Author, Cost whose value should always be greater than 100.
b) Insert 5 records in the above table.
c) Display the books whose price is >50.
B. Design the forms for Marksheet Processing and implement the Deletion of a student

15. A.Write Sql queries for the following:


a) Create a table Voter with the fields Voter_id that uniquely identifies each Voter, Voter name
should always contain value, Vcity, Age default 18.
b) Insert 5 records in the above table.
c) Display the no of voters whose age is below 15.
B. Design the forms for the Marksheet Processing and implement the updating of a student.

16. A.Write Sql queries for the following:


a) Create a table Supplier with the fields Sno that uniquely identifies each Supplier,Sname should
always contain value, City,Item_name,Price above A0.
b) Remove the records where the city is Delhi.
c) Display the Bangalore suppliers alone.
B. Generate the Report card for all students

17. A.Write Sql queries for the following:


a) Create a table Staff with the fields Staff_no that uniquely identifies each staff in the table,
Staff_name should always contain value, Designation default ‘Associate’, Department.
b) Insert 5 records in the above table.
c) Display the unique designation from the Staff table.
B. Design the forms for the Marksheet Processing and implement the navigation operations

18. A.Write Sql queries for the following:


a) Create a table Player with the fields Pcode that uniquely identifies each Player in the table,
Pname should always contain value, Game, Ranking default A.
b) Insert 5 records in the above table.
c) Add a new field namely coach_name to the player table.
B. Generate the Report card for all students
19.A.Write Sql queries for the following:
a) Create a table Flight with the fields FI_no that uniquely identifies each Flight in the table,
No_of_flights value above 1,Airlines default ‘Indian Airlines’,Fare.
b) Insert 5 records in the above table.
c) Display the minimum fare charged by Indian Airlines from the flight table.
B. Create a trigger to execute when a record in a table is updated using pl/Sql block.

20. A Write Sql queries for the following:


a) Create a table Clinic with the fields Token_no,Patient_name should always contain value,
Date_of_ Consultation default system date, Fees whose value should always be greater than 400.
b) Insert 5 records in the above table.
c) Decrease the Fees by 25% for all the records whose Date_of_Consultation is before March 30,
2013.
B. Design the forms to implement the Payroll Processing and implement the addition of an
Employee

You might also like