- Consider a structure named Student with attributes as SID, NAME, BRANCH, SEMESTER, ADDRESS.
Write a program in C/C++ and perform the following operations using the concept of files. a. Insert a new student b. Modify the address of the student based on SID c. Delete a student d. List all the students e. List all the students of CSE branch f. List all the students of CSE branch and reside in Kuvempunagar.
- Create a table for the structure Student with attributes as SID, NAME, BRANCH, SEMESTER, ADDRESS, PHONE, EMAIL, Insert at least 10 tuples and perform the following operations using SQL. a. Insert a new student b. Modify the address of the student based on SID c. Delete a student d. List all the students e. List all the students of CSE branch f. List all the students of CSE branch and reside in Kuvempunagar.
- Consider the database schemas given below. Write ER diagram and schema diagram, create tables, enter data, alter tables, add/drop constraints, and perform delete/update operations.
SAILORS
sid
(int): Sailor IDsname
(string): Sailor's Namerating
(int): Ratingage
(int): Age
BOAT
bid
(int): Boat IDbname
(string): Boat Namecolor
(string): Boat Color
RESERVERS
sid
(int): Sailor IDbid
(int): Boat IDdate
(date): Reservation Date
PERSON
driver id#
(string): Driver IDname
(string): Nameaddress
(string): Address
CAR
regno
(string): Registration Numbermodel
(string): Car Modelyear
(int): Car Year
ACCIDENT
report_number
(int): Accident Report Numberacc_date
(date): Accident Datelocation
(string): Accident Location
OWNS
driver id#
(string): Driver IDregno
(string): Registration Number
PARTICIPATED
driver id#
(string): Driver IDregno
(string): Registration Numberreport_number
(int): Report Numberdamage_amount
(int): Damage Amount
Customer
Cust#
(int): Customer Numbercname
(string): Customer Namecity
(string): City
Order
order#
(int): Order Numberodate
(date): Order Datecust#
(int): Customer Numberorder-amt
(int): Order Amount
Order-item
order#
(int): Order NumberItem#
(int): Item Numberqty
(int): Quantity
Item
item#
(int): Item Numberunitprice
(int): Unit Price
Shipment
order#
(int): Order Numberwarehouse#
(int): Warehouse Numbership-date
(date): Shipment Date
Warehouse
warehouse#
(int): Warehouse Numbercity
(string): City
STUDENT
regno
(string): Registration Numbername
(string): Namemajor
(string): Majorbdate
(date): Birth Date
COURSE
course#
(int): Course Numbercname
(string): Course Namedept
(string): Department
ENROLL
regno
(string): Registration Numbercourse#
(int): Course Numbersem
(int): Semestermarks
(int): Marks
BOOK-ADOPTION
course#
(int): Course Numbersem
(int): Semesterbook-ISBN
(int): Book ISBN
TEXT
book-ISBN
(int): Book ISBNbook-title
(string): Book Titlepublisher
(string): Publisherauthor
(string): Author
EMPLOYEE
SSN
(string): Social Security NumberName
(string): Employee NameAddress
(string): AddressSex
(string): GenderSalary
(int): SalarySuperSSN
(string): Supervisor's Social Security NumberDNo
(int): Department Number
DEPARTMENT
DNo
(int): Department NumberDName
(string): Department NameMgrSSN
(string): Manager's Social Security NumberMgrStartDate
(date): Manager's Start Date
DLOCATION
DNo
(int): Department NumberDLoc
(string): Location
PROJECT
PNo
(int): Project NumberPName
(string): Project NamePLocation
(string): Project LocationDNo
(int): Department Number
WORKS_ON
SSN
(string): Social Security NumberPNo
(int): Project NumberHours
(int): Work Hours
- Write valid DML statements to retrieve tuples from the databases. The queries may contain appropriate DML and DCL commands, such as select with like, between, where clause, order by, set operations, exists and not exists, join operations, aggregate functions, group by, group by having, nested and correlated nested queries, grant, and revoke permissions.
- Views: Creation and manipulating content.
- Triggers: Creation and execution of database triggers on every insert, delete, and update operation.