Write 10 advanced sql select statements

Assignment Help Basic Computer Science
Reference no: EM131610576

Write 10 advanced SQL SELECT statements

Write 10 queries (see assignment instruction for detailed requirements) to query the STUDENT schema you created for practice lab 1. 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 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: EM131610576

Questions Cloud

Explain why customer-centered design is important : Explain why customer-centered design is important. Explain why it is important to understand visitors to your site who are not your customers and visit
Define what was the situation five years after the crime : What was the situation five years after the crime, What is anthrax, How was anthrax used in the crimes
The effectiveness of current abstinence programs : I am taking HIV/AIDs class, we asked as group to do position paper, our topic is about arguing about effectiveness of current abstinence programs.
What is the molality of zn in the solid solution : Brass is a substitutional alloy consisting of a solution of copper and zinc. A particular sample of red brass consisting of 80.0% Cu and 20.0% Zn.
Write 10 advanced sql select statements : Write 10 queries (see assignment instruction for detailed requirements) to query the STUDENT schema you created for practice lab 1.
What is the effective cost of borrowing in case : Current practice is to factor all receivables immediately at a discount of 1.8 percent. What is the effective cost of borrowing in this case?
What types of physical tests would you recommend : Do you believe physical ability tests should given to individuals being considered for your type of work? What types of physical tests would you recommend?
Explain what costs would be included : Choose a well-known publicly traded company and explain what costs would be included in each of the three manufacturing cost categories.
Disjoint sets with a universe of n elements : Prove that if Union-by-Weight is used on disjoint sets with a universe of n elements, for all unions, the length of the deepest node is no more than log n.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Sequence of twenty numbers

Write an algorithm that adds up a sequence of twenty numbers and outputs the sum of the numbers as well as the average of the numbers.

  What constitutes a threat to a network

What is cyber warfare, What is a network and What constitutes a threat to a network?

  What is the quad representation of the decimal number 42

We have represented numbers in base-2 (binary) and in base-16 (hex). We are now ready for unsigned base-4, which we will call quad numbers. A quad digit can be 0, 1, 2, or 3.

  Program specifications for a simple business problem

Given a set of program specifications for a simple business problem requiring iteration, code and test a program that meets the specifications and employs best programming practices.

  Differentiate between parallel and serial busses

Question1 :  One large modern computer has a 48-bit memory address register. How much memory can this computer address? Question 2 : What is the function of registers in the fetch-execute instruction cycle? What is the purpose of the instruction regi..

  Research an employment law case

Using the Internet, select and research an employment law case no greater than five (5) years old. Write a three to four (3-4) page brief in which you: Summarize the issue of the case, and then explain the employment law that was violated.

  Restricting access to the use of communal property

Under what conditions would restricting access to the use of communal property, and thus, regulating the transformation of communal property into private property, be an efficient policy for utilizing property?

  Give an example of two tables that are not relations

Suppose that two columns in two different tables have the same column name. What convention is used to give each a unique name?

  Use intuitive arguments to justify these four heuristics

When the algebraic sign of the cost function with respect to a particular synaptic weight alternates for several consecutive iterations of the algorithm, the learning-rate parameter for that weight should be decreased.These four heuristics satisfy..

  Security risk mitigation plan assignment

Provide mitigation plans for each threat listed in the list of 11 below by completing the following: Explain the plan to prevent the threat from happening. Briefly explain the plan if the threat does happen.

  Discuss some of the various programming pitfalls and mistake

Explain why you believe the techniques do not transfer between VISUAL BASIC & C# programming languages.Give detailed example of your experiences.

  What are non-spherical disturbances

1. What are non-spherical disturbances? 2. What is panel data? How does it differ from cross-sectional data?

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