Question: For this assignment, you will use the university database discussed in the book. If you have not already done so, you can download the scripts
For this assignment, you will use the university database discussed in the book. If you have not already done so, you can download the scripts to create the database and populate it by data by following the links: Book website, Laboratory Material, Sample Tables. Then, click on the link DDL to download the code for creating the tables and on the link SQL code for creating small relations to download the code for populating the tables with data. If you are using Oracle, use the start command to run these files from your Oracle account. If you are using PostgreSQL, use the \i command to run the scripts.
Solve the following questions using either Oracle or PostgreSQL. Please indicate as a comment at the top of your file what DBMS you used. Make sure to upload an electronic copy of your solution to Blackboard. Name the file hw6.sql.
- Find the number of students in each department. Rename the second attribute in the output as number_students. This means the schema of the output is (dept_name, number_students).
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
