Select statements to query the student schema

Assignment Help PL-SQL Programming
Reference no: EM131147936

Write Ten SQL SELECT statements to query the STUDENT schema you created for practice lab 2. Your Select Statements should run error-free and should be valid.

Submit two separate files: one plain text file (.txt or .sql file) with your SELECT statements only; and the other document (doc/docx/pdf) include both your SELECT 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. Show the number of students whose zip is 07070.

2. List all students (display student_id, first name, last name, and employer) who live in Columbus, OH.

3. Show the zip, state and city that have > 5 students as residents.

4. List all students (display student_id, first name, last name, and registration date) who registered on or before 2/13/2007 but have not enrolled in any course.

5. Show the number of students enrolled in the ‘Intro to Unix' course.

6. List all students (display student_id, first name, last name, and employer) who took courses taught by instructor 'Anita Morris'.

7. List all distinct courses (display instructor name, course_no and description) taught by 'Anita Morris'.

8. For all students who took ‘Intro to Unix', calculate the highest, lowest, and average midterm exam grade.

9. Show which courses have > 10 students enrolled. Display course_no, description and number of students enrolled.

10. List any student who has enrolled in the same course multiple times. Display student name, course description, and enrollment count.

Reference no: EM131147936

Questions Cloud

Analysis and evaluation of business and financial performanc : Write An Analysis and Evaluation of the Business and Financial Performance of Oman Oil Marketing Company, over a Three-Year
What assessment questions should sandy ask : Julie's emotional responses are characteristic of post-traumatic stress disorder. What are three potential nursing diagnoses for Julie? What non-pharmacological interventions might Sandy use to help Julie?
Consider motivation techniques and mentoring : Learning Activity 2 - Theme 2 The manager must be able to solve problems, communicate, and lead teams toward the completion of a task. Scenario: You are the manager of the northern branch of the Laurel City bowling alleys. Discuss how you would appro..
How could future training be improved : How could future training be improved, including the explanation of chemical hazards without specifically addressing each chemical
Select statements to query the student schema : Write Ten SQL SELECT statements to query the STUDENT schema you created for practice lab 2. Your Select Statements should run error-free and should be valid.
Estimate the diameter of the smaller pipe : Both small pipes have the same length and pressure drop. If all flows are turbulent, at ReD near 104 , estimate the diameter of the smaller pipe.
What regulations should be considered when making a decision : What regulations should be considered when making a decision about each issue? Provide an ethical solution for each issue that you introduced.
How you will tailor evidence-based interventions to meaning : Discuss how you will tailor evidence-based interventions to the meaning of "health" as defined by your patient. What will be included in your creative approach to care under the Circle of Caring Model?
Solve for the flow rates using the actual friction factors : Assuming that ƒ≈ 0.019, find the flow rate (which results in a cubic polynomial). Explain why there are two legitimate solutions.

Reviews

Write a Review

PL-SQL Programming Questions & Answers

  Query to show customers were missing for existing orders

As DBA, your manager called a meeting and asked why there are so many orders for customers that don't exist in the customer table. Write query which would shows which customers were missing for existing orders. Use a join or a subquery.

  Statement to display the sku, sku_description

write an sql statement to display the SKU, SKU_Description, WareHouse ID, and QuantityOnHand for all products having a QuantityOnOrder equal to 0. Sort the results in descending order by WareHouse ID and in ascending order by SKU

  Create the needed tables in the sql server environment

Create and submit a screenshot of your database diagram based on the tables, and generate the data definition language (DDL) for each table.

  Add three rows to the downloads

Add three rows to the Downloads table: one row for user 1 and product 2; one for user 2 and product 1; and one for user 2 and product 2. Use the GETDATE function to insert the current date and time into the DownloadDate column.

  Sql query into a relational algebra statement

Turn this SQL query into a relational algebra statement? SELECT Request.reqfor, Ordering.invamt, Ordering.invnbr, Ordering.invdat

  Create simple reports in an oracle database

laboratory provides practice in the use of SQL commands to create simple reports in an Oracle database

  Write a xquery which returns all concert titles

Write a XQuery which returns all concert titles whose type is chamber orchestra where average ticket price is at least $50.

  Write a select statement that answers the problem

Write a SELECT statement that answers this problem - Which products have a list price that's greater than the average list price for all products?

  Find persons telephone number in shortest amount of time

Given an alphabetically sorted list of 500,000 people's names and telephone numbers, describe an algorithm that you could implement that would allow you to find a given person's telephone number in the shortest amount of time.

  Script that creates and calls a stored

Write a script that creates and calls a stored procedure named spInsertProduct that inserts a row into the Products table. This stored procedure should accept five parameters

  Write sql statement to produce single column

Write an SQL statement to produce a single column called ItemLocation that combines the SKU_Description,the phrase "is located in."

  Explaining sql insert statement to insert new row in cds

Write down a SQL insert statement to insert new row in "CDS" table.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd