Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3
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) Display the records. 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 1000. b) Insert 5 records in the above table. c) Display the customers whose balance ranges from 2500 to 10000. 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) Create a trigger to execute when a record in a table Department is updated using pl/Sql block. 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. Design the forms to implement the Payroll Processing and implement the navigation operations.
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 pay slip 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 and fees should always > 15000 b) Insert 5 records in the above table. c) Create a explicit cursor using pl/sql code to update the student fees. 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 10, Quantity. b) Insert 5 records in the above table. c) Display the average price of the items in the table. B. Generate the pay slip for all employees.
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. Design the forms to implement the Marksheet Processing and implement the addition of a student. .
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 25000,Department. b) Insert 5 records in the above table. c) Increase the salary of the teachers by 20% 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 records that consists of orders whose quantity >100. 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 Bookno 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 >250. B. Design the forms for Marksheet Processing and implement the Update of a student record. 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 25. B. Design the forms for the Marksheet Processing and implement the update 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 10. 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 10. 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 A,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. Design the forms for the Marksheet Processing and implement the navigation operations
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 100. 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