Write a SQL statement for each of the following questions based on the above tables (50 Points).
Question:
Write a SQL statement for each of the following questions based on the above tables (50 Points).
1) Create “Enrollment” table.
2) Change the credits of “Database” course from 2 to 3.
3) List the course titles (not Course_No) and grades John Doe had taken.
4) Calculate average of Café Balance, and name new field as Average Balance.
5) Create a roster for “Database” course (list student ID, last name, first name, major, and status for each student enrolled the course).
6) Find number of students for each major, and name new field as No of Student.
7) Insert a new student data. You choose the data.
8) Delete the student date you inserted in Question 7).
9) List student ID, first name, last name, major, course no, course title, who got the grade A.
10) List student ID, first name, and last name whose café balance is $54, $434, OR $23. Use IN operator.
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill