Computers and Technology
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.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 13:00, jairus34
We as humans write math expression in infix notation, e. g. 5 + 2 (the operators are written in-between the operands). in a computer’s language, however, it is preferred to have the operators on the right side of the operands, i. e. 5 2 +. for more complex expressions that include parenthesis and multiple operators, a compiler has to convert the expression into postfix first and then evaluate the resulting postfix. write a program that takes an “infix” expression as input, uses stacks to convert it into postfix expression, and finally evaluates it. it must support the following operations: + - / * ^ % (example infix expression: (7 - 3) / (2 + 2)postfix expression: 7 3 - 2 2 + /result: 1guidelines: 1. you will need to use stacks in three placesa. one for the parenthesis check [char stack]b. one during infix to postfix [char stack]c. one during evaluation [int stack]for a and b above, you can use same array and same push, pop method as both ofthem are char. but for evaluation you have int stack and you might consider to createanother push pop method to handle it. maybe push_int, pop_int, etc. or find otherstrategy to utilize existing push pop method2. you can create a function for obtaining operator priority. that function should take anoperator as input and return its priority as an integer. this function will you a lot andreduce repeated code3. during evaluation you will need to convert char into integer. example for single digit: char c = '5'; int x = c - '0';
Answers: 2
image
Computers and Technology, 22.06.2019 17:00, shimmerandshine1
Aisha has finished working on a word processing document that contains 15 pages. she has added some special elements in the first three pages, page 9 and 10, and page 15 from the document. she wants to print only these pages to see how they look. which option is the correct way to represent (in the print dialog box) the pages that aisha wants to print
Answers: 3
image
Computers and Technology, 23.06.2019 01:00, leo4687
Complete the sentence about a presentation delivery method
Answers: 2
image
Computers and Technology, 23.06.2019 06:30, scoutbuffy2512
On early television stations, what typically filled the screen from around 11pm until 6am? test dummies test patterns tests testing colors
Answers: 1
Do you know the correct answer?
CREATE TABLE Student_T (StudentID NUMBER NOT NULL,

StudentName VARCHAR2(25),

Questions in other subjects:

Konu
Chemistry, 25.01.2022 02:50
Konu
History, 25.01.2022 02:50