DATABASE - Answer 1-4 Answer 1-4 only Given the following samples of larger tabl
ID: 3851593 • Letter: D
Question
DATABASE - Answer 1-4
Answer 1-4 only
Given the following samples of larger tables, give the queries for the problems below STUDENT Name StudentID Class Major CS Brown Class is 1 for Freshman, 2 for Sophomore, 3 for Junior and 4 for Seniors COURSE Credit hours CourselD Name Department CS101 intro. to Computer Science CS191 Discrete Struct I 3 CS282 Assembly Language 4 OBOE 101 OBOA Freshman Oboe SECTION SectionID Course ID Semester Year Faculty ID 2014 OBOE 101 BBishop 781 CS101 541 2014 KBingham 2014 552 CS101 BHare CS101 2014 BHare 448 662 CS191 FS 2014 XLiuExplanation / Answer
1-
create table Student(name varchar, id int PRIMARY KEY, class int,major varchar);
2-
create table Course(coursid varchar PRIMARY KEY, name varchar NOT NULL, credit_hours int, department varchar);
3-
ALTER table definedtable(pcourse_id int ,courseid int FOREIGN KEY REFERENCES Customer_Detail(c_id)
PRIMARY KEY (pcourse_id,courseid));
4-
SELECT name,
studentid,
from Student WHERE major=CS;
Thanking You
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.