Question

please unique answer, no handwriting, for safeAssign Pilgirism submission.API style In DBMS, what would you use...

please unique answer, no handwriting, for safeAssign Pilgirism submission.API style

In DBMS, what would you use to obtain information about the current logical structure of the database? How this information is recorded in the DBMS and who is responsible to maintain it?

Question Two

Consider the following schema:

Student(id, name)

Registration(id, code)

Course(code, instructor)

  1. Explain how we can violate the foreign key constraint from the id attribute of Registration to the Student relation.
  2. Give the following queries in the relational algebra.

       1-What are the names of students registered in IT244?            

2-What are the names of students registered in both IT244 and CS141

3-What are the names of students who are taking a subject not taught by Philips?

  1. For each of the following relational algebra queries, write in English what they mean.

1. Πinstructorcode=IT446 or code=IT230(Course))                 

2. Πnamecode=IT446 (Student ⋈ Registration)) ⊔ Πnamecode=IT441(Student ⋈ Registration))

Homework Answers

Answer #1

If you have any doubts, please give me comment..

A)

Let me take Student table have some ids i.e 101, 102, 103, 104. Then if we want to insert tuples into Register table other than which are existed in Student table. Suppose if we want to insert Student registration of 105, then it violates the foreign key constraint, because student id 105 doesn't exists in Student.

B)

1)

2)

3)

C)

1) Find the name of instructors, who teach course code IT446 or IT230.

2) Find the name of the students, who registered subjects IT446 or IT441

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Please reference the STUDENT TABLE & Business Rules to answer parts a, b & c of...
Please reference the STUDENT TABLE & Business Rules to answer parts a, b & c of question 1: Using the table description and business rules on the following page, answer the following: Identify the Primary Key of the table as it is currently shown. Identify all of the functional dependencies. Draw the dependency diagram for the initial table showing all dependencies. Business Rules: Only one class is taught for each Course ID. Students may take up to 4 Courses. Each...
14.19. Suppose that we have the following requirements for a university database that is used to...
14.19. Suppose that we have the following requirements for a university database that is used to keep track of students’ transcripts: a. The university keeps track of each student’s name (Sname), student number (Snum), Social Security number (Ssn), current address (Sc_addr) and phone (Sc_phone), permanent address (Sp_addr) and phone (Sp_phone), birth date (Bdate), sex (Sex), class (Class) (‘freshman’, ‘sophomore’, … , ‘graduate’), major department (Major_code), minor department (Minor_code) (if any), and degree program (Prog) (‘b.a.’, ‘b.s.’, … , ‘ph.d.’). Both...
Question 2 (5 Marks) What can you say about the relationships between Courses and Subject, and...
Question 2 What can you say about the relationships between Courses and Subject, and Courses and Students? Will there be any problems in creating a Relational Database from your ER diagram? If there is, then describe how you will address this and re-draw the ER diagram. Question 3 Create the DDL statements to create the tables described in your modifies ER diagram in Question 2. Question 4 In your Database you created in Question 3, assume there is a student...
You are tasked to design the ER diagram for the database for the 3S clothing store....
You are tasked to design the ER diagram for the database for the 3S clothing store. Data requirements are as given below. • Information about 3S employees includes a unique employee ID, and his/her name and position. • Each customer of 3S is identified by a customer ID, and has a name. • Information about the suppliers of 3S include a unique name, and a contact phone number. • Clothes stocked by 3S are described by a product code, size,...
Develop an application to support course administration. Read the following detailed description of this application, and...
Develop an application to support course administration. Read the following detailed description of this application, and complete the tasks listed below. *. A course has a unique course number and title, and is assigned to one or more areas of the Computer Science program. Each course has an instructor, at least one teaching or research assistant, an online conference whiteboard, a time (interval), and a capacity (maximum number of participants). A course need not be offered each term, but the...
You have to create a Library Borrowing System based on the following requirements: When new books...
You have to create a Library Borrowing System based on the following requirements: When new books arrive, these books must be cataloged into the system by a librarian (i.e., entered in the system). Information on a book should include book ID, title, author ID, ISBN, and edition. The system should capture author names so that users can search for an author. The library may carry multiple books by the same author, and an author can have multiple books in the...
SQL DATABASE Task 4 [1.5 marks] Create Index (0.5 marks) Currently, the database only contains a...
SQL DATABASE Task 4 [1.5 marks] Create Index (0.5 marks) Currently, the database only contains a small number of records. However, the data contained within it is expected to grow significantly in the future. Creating indexes on commonly searched columns is a way performance issues can be minimized. Write a command to create an index on student_name column of the student table. Create view – 1 mark Write a command to create a view to list the student ID and...
Assignment: What are the main arguments in the article? Please answer within 5 hours. It is...
Assignment: What are the main arguments in the article? Please answer within 5 hours. It is extremely urgent!!!!!!!!!!!!!!!!!!!!!!!! --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- BIOETHICS. Bioethics as a field is relatively new, emerging only in the late 1960s, though many of the questions it addresses are as old as medicine itself. When Hippocrates wrote his now famous dictum Primum non nocere (First, do no harm), he was grappling with one of the core issues still facing human medicine, namely, the role and duty of the...
What topics are covered in the following article? Please answer within 5 hours. It is extremely...
What topics are covered in the following article? Please answer within 5 hours. It is extremely urgent!!!!!!!!!!!!!!!!!!!!!!!! --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- BIOETHICS. Bioethics as a field is relatively new, emerging only in the late 1960s, though many of the questions it addresses are as old as medicine itself. When Hippocrates wrote his now famous dictum Primum non nocere (First, do no harm), he was grappling with one of the core issues still facing human medicine, namely, the role and duty of the physician....
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT