Question
Consider the following database of student enrollment in course and books adopted for course Student(regno,name,major,bdate) Course (courseno,cname,dept) Enroll(regnk,coyrseno,sem,marks) Book_adoption (courseno,sem,book_isbn) Text(book_isbn,book_title,publisher,author) 1. Create the above
Consider the following database of student enrollment in course and books adopted for course
Student(regno,name,major,bdate)
Course (courseno,cname,dept)
Enroll(regnk,coyrseno,sem,marks)
Book_adoption (courseno,sem,book_isbn)
Text(book_isbn,book_title,publisher,author)
1. Create the above table by properly specifying primary key and foreign key and enter at least5 tuples for each relation
2. add new text book to database and make this book to be adopted by some department
3. procedure a list of text books (include courseno,book_isbn,book_title) in alphabetical order for courses offered by "cs" department that use more than 2 books
4. list any department that has all its book published by specific publisher
Step by Step Solution
3.48 Rating (151 Votes )
There are 3 Steps involved in it
Step: 1
1 CREATE TABLE STUDENT regno varchar10 name varchar10 major varchar10 bdate date constraint spk PRIM...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started