subject
Computers and Technology, 20.09.2020 16:01 cat706

CREATE TABLE Student_T (StudentID NUMBER NOT NULL,

StudentName VARCHAR2(25),

CONSTRAINT Student_PK PRIMARY KEY (StudentID));

CREATE TABLE Faculty_T

(FacultyID NUMBER NOT NULL,

FacultyName VARCHAR2(25),

CONSTRAINT Faculty_PK PRIMARY KEY (FacultyID));

CREATE TABLE Course_T

(CourseID CHAR(8) NOT NULL,

CourseName VARCHAR2(15),

CONSTRAINT Course_PK PRIMARY KEY (CourseID));

CREATE TABLE Section_T

(SectionNo NUMBER NOT NULL,

Semester CHAR(7) NOT NULL,

CourseID CHAR(8),

CONSTRAINT Section_PK

PRIMARY KEY(CourseID, SectionNo, Semester),

CONSTRAINT Section_FK FOREIGN KEY (CourseID)

REFERENCES Course_T (CourseID));

CREATE TABLE Qualified

(FacultyID NUMBER NOT NULL ,

CourseID CHAR(8) NOT NULL,

DateQualified DATE,

CONSTRAINT IsQualified_PK PRIMARY KEY (FacultyID, CourseID),

CONSTRAINT QualifiedFaculty_FK FOREIGN KEY (FacultyID) REFERENCES Faculty_T (FacultyID),

CONSTRAINT QualifiedCourse_FK FOREIGN KEY (CourseID) REFERENCES Course_T (CourseID));

CREATE TABLE Registration_T

(StudentID NUMBER NOT NULL,

SectionNo NUMBER NOT NULL,

Semester CHAR(7) NOT NULL,

CONSTRAINT IsRegistered_PK PRIMARY KEY (StudentID, SectionNo, Semester),

CONSTRAINT StudentIsRegistered_FK FOREIGN KEY(StudentID)

REFERENCES Student_T(StudentID),

CONSTRAINT CourseIsRegistered_FK

FOREIGN KEY (SectionNo, Semester)

REFERENCES Section_T(SectionID, Semester));

Required:

a. Write SQL queries to answer the following questions:
b. Which students have an ID number that is less than 50000?
c. What is the name of the faculty member whose ID is 4756?
d. What is the smallest section number used in the first semester of 2008?
e. How many students are enrolled in Section 2714 in the first semester of 2008?
f. Which faculty members have qualified to teach a course since 1993? List the faculty ID, course and date of qualification.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 17:00
How should you set the ohms adjust control on a multitester of analog vom, for resistance measurements?
Answers: 1
question
Computers and Technology, 22.06.2019 01:50
Click on this link toopens a new window. bring up a flowchart in a new browser window. based on this flowchart, would a d-link 3347 gateway with an xbox 360 multiplayer problem be in scope or out of scope
Answers: 2
question
Computers and Technology, 22.06.2019 18:10
Assume that to_the_power_of is a function that expects two int parameters and returns the value of the first parameter raised to the power of the second parameter. write a statement that calls to_the_power_of to compute the value of cube_side raised to the power of 3 and that associates this value with cube_volume.
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
To become an audio technician, the most successful tactics might include the following. (select all that apply). learning how to persuade other people gaining different types of experience in audio technology learning as much as possible about art history establishing a reputation as a reliable professional
Answers: 1
You know the right answer?
CREATE TABLE Student_T (StudentID NUMBER NOT NULL,

StudentName VARCHAR2(25),

Questions
question
Mathematics, 14.05.2021 01:20
question
Biology, 14.05.2021 01:20
question
Business, 14.05.2021 01:20
question
Business, 14.05.2021 01:20
question
Mathematics, 14.05.2021 01:20
Questions on the website: 13722360