Cs Project
Cs Project
Cs Project
DBMS ASSIGNMENTS
PART A
1|Page
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
INDEX
2 07 – 12
ACTIVITY – 2: (SELECT CLAUSE,
ARITHMETIC OPERATORS)
2|Page
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
Table : Course
Name Number Credithours Department
Intro to CS CS11 5 CS
Data Structure CS12 5 CS
Discrete Mathematics Math13 2 Math
Database CS14 4 CS
Table : Section
Identifier Number Year Instructor
100 Math2410 18 Kannawut
90 CS1310 19 Gulf
82 CS3320 19 Mew
72 Math2410 19 Archirt
3|Page
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
4|Page
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
5|Page
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
6|Page
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
EMPSALARY
EMPID SALARY BENEFITS DESIGNATION
2005 30000 5000 Manager
2006 40000 10000 Salesman
2007 45000 15000 Director
2008 50000 20000 Clerk
8. Add new column PHONE_NO to EMPLOYEE and update the Calculate records.
9. List employee names , who have joined before 23-May-12 and after 18-Jan-09.
7|Page
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
10. Generate Salary slip with Name, Salary, Benefits ,HRA-50%,DA-30%, PF-12% , gross ,Order
the result in decending order of the gross.
8|Page
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
9|Page
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
10 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
11 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
UPDATING RECORDS:
12 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
Table : Issued
Book_Id Quantity_Issued
BN001 7
BN002 10
MP40 12
P90 10
13 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
CREATING TABLE
14 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
15 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
16 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
17 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
18 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
Table : Equipment_Details
19 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
20 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
21 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
4.To list the Item Name in ascending order of the date of purchase where
quantity is more than 20.
22 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
5. To count the number , Average of Cost per item purchased before 31-12-2017.
23 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
8. To display the Item Name of those equipment whose quantity is more than 20
24 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
10. To list the Item Name , which are within the warranty period till present date.
25 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
26 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
27 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
28 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
29 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
30 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
31 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
32 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
33 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
34 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
35 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
Activity 7: (Views)
Database : Railway Reservation System.
Create following table and insert tuples with suitable constraints.
Table : Availability
36 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
37 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
SHOWING OF TRAIN_DETAILS
SHOWING OF AVAILABILITY
38 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
1. Create View Sleeper to display train no, start place, destination which have
sleeper class and perform the following
a.) Insert new record.
b.) Update destination=’Ahemdabad’ where train no = ‘NW2750’.
c.) Delete a record which have train no=’NE2550’.
39 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
40 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
41 | P a g e
XII COMPUTER SCIENCE : 2022-223 DIVYANSHU RAJ (3842)
42 | P a g e