Write 10 basic SQL statements

Write 10 SQL statements against the STUDENT schema you created for practice lab 1. Your statements should run error-free and should be valid. Submit two separate files: one plain text file (.txt or .sql file) with your statements only; and the other document (doc/docx/pdf) include both your statements and your query results (copy and paste text or screen shots). The instructor and TA should be able to run your plain text source file as script and generate the same output as shown in your result document.

  1. Display all information about all courses
  2. Add a new course “Relational Database Systems” with course number 651. Use your user name as created_by/modified_by and current date as created_date/modified_date
  3. List the course number for “Database System Principles”
  4. Set “Database System Principles” as the prerequisite for “Relational Database Systems”
  5. List all courses that have “Database System Principles” as prerequisite
  6. List total number of courses that have no prerequisite
  7. Delete course “Relational Database Systems”
  8. Display total number of courses
  9. Lower cost of all courses by 100
  10. List all course cost (show course description and cost only) by the order of cost from highest to lowest

"Get 15% discount on your first 3 orders with us"
Use the following coupon
FIRST15

Order Now