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, 23.06.2019 14:30
Choose the answers that best complete each sentence. on average,are more expensive than other kinds of postsecondary schools. the cost of room and board includes. to save money, some students attend auniversity in their home state.
Answers: 2
question
Computers and Technology, 23.06.2019 15:10
What role did women fill during world war ii?
Answers: 1
question
Computers and Technology, 24.06.2019 12:50
When is it most apprpriate for a development team to change the definition of done
Answers: 1
question
Computers and Technology, 24.06.2019 13:10
Write a program that has a conversation with the user. the program must ask for both strings and numbers as input. the program must ask for at least 4 different inputs from the user. the program must reuse at least 3 inputs in what it displays on the screen. the program must perform some form of arithmetic operation on the numbers the user inputs. turn in your .py file as well as a screenshot of your program's output. include comments in your code to explain how it works an example program run might look like (have fun with this and be creative): ‘what is your name? ’ “josh” ‘, josh. what is your favorite color? ’ “green” ‘mine too. do you also like ice cream? ’ “no” ‘josh, how old are you? ’ “40” ‘ and how many siblings do you have? ’’ “3” ‘that means you are one of 4 kid(s). is green the favorite color of anyone else in your house? ’
Answers: 3
You know the right answer?
CREATE TABLE Student_T (StudentID NUMBER NOT NULL,

StudentName VARCHAR2(25),

Questions
question
Computers and Technology, 02.01.2020 20:31
question
Mathematics, 02.01.2020 20:31
question
History, 02.01.2020 20:31
question
Business, 02.01.2020 20:31
Questions on the website: 13722361