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

  Find the sum of all credits that history major have

Find the most classes taken by students and Find the facility by facility id who teach math class and display the student's ID for all students enrolled in math course by Byrne.

  Write sql queries

Write SQL queries for the following relations LANGUAGE (langNo, langName) NATION (nationNo, nationName)

  Write statement which creates table named part

Write the statement which creates table named Part, with Id field as an int idendity PK, a SupplierId int field, a Description string field of size 25, a Count int field, a Class string field

  Describe and explain oracle date and time format in details

Describe and explain Oracle Date and Time Format in details. Provide some Functions used for Date and Time and give some syntax example of their usage. Expand your examples to include some Arithmetic used with Oracle Date.

  Assignments of sql programming

Question 1: Identify the potential sales and department store transactions that can be stored within the database. Question 2: Design a database solution and the potential business rules that could be used to house the sales transactions of the depa..

  Additional attributes department and datehired

Now, write a class called Employee that inherits from the Person class.  This class should have the additional attributes Department and DateHired.  Be sure to include Accessor and Mutator methods as well as __init__ and __str__.

  What is column aliases

For Assignment week 1, answer the following questions. Save your answer to a word document on your desktop (please save as word 2003 format), and submit your results.

  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?

  Write a script that uses two variables

Write a script that uses two variables to store (1) the count of all of the products in the Products table and (2) the average list price for those products. If the product count is greater than or equal to

  Run the lab_03_01.sql script

Run the lab_03_01.sql script in the attached file to create the SAL_HISTORY table. Display the structure of the SAL_HISTORY table.

  Needed to fix something in account

Assume an IT technician was working on your machine because they needed to fix something in your account, and you shared your credentials with them so they could do their work.

  Prepare sql queries to find the customers

Prepare SQL queries to find the customers who have reserved only 4-door cars.

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