Question: 1. 3 pts] Write a SQL statement that creates a table named Course and has three attributes named CourselD. CourseName. and InstructorlD. CourselD is the
1. 3 pts] Write a SQL statement that creates a table named "Course" and has three attributes named "CourselD". "CourseName". and InstructorlD". "CourselD" is the primary key of the table and "InstructorlD" is a foreign key from the Instructor table. Course CourseID, Course Name, InstructorlD) Instructor (InstID, InstName, salary) 2. [2 pts Write a SQL statement that inserts one record to the above "Course" table. 3. [2 pts Write a SQL statement that updates a value of one of the attributes of the above Course" table 4. 3 pts] Write a query in English for the following SQL statement: select ql. from (select customer id, count( ordercount from cust order group by customer id)q (select max(count") highest from cust order group by customer id) 2 where ql.ordercount q2.highest
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
