List all students and courses they are registered for

Assignment Help Database Management System
Reference no: EM131347127

Assignment

CUSTOMER (CustomerNumber, CustomerName, Phone)

COURSE (CourseNumber, Course, CourseDate, Fee)

ENROLLMENT (CustomerNumber, CourseNumber, AmountPaid)

where

CustomerNumber in ENROLLMENT must exist in CustomerNumber in CUSTOMER

CourseNumber in ENROLLMENT must exist in CourseNumber in COURSE

Write SQL queries to produce the following results:

1) List all students and courses they are registered for. Include, in this order, CustomerNumber, CustomerName, Phone, CourseNumber, and AmountPaid.

2) List the total amount paid for each course starting after July 4, 2009. Include, in this order, CourseNumber, CourseName, and total amount paid for that course.

3) List the average amount paid for each customer. Include, in this order, CustomerName and average amount paid by that customer.

4) List all students registered in the Adv. Pastels starting on October 1, 2009. Include, in this order, CourseName, CourseDate, Fee, CustomerName, and Phone.

Reference no: EM131347127

Questions Cloud

What recommendations can you make to assist the company : Is Lobo using the lowest cost combination of workers to produce its targeted output? If not, what recommendations can you make to assist the company?
Determine the maximum theoretical reaction efficiency : Determine the maximum theoretical reaction efficiency, open circuit voltage, and maximum theoretical work output per mole of hydrogen consumed.
Explain approach you will take to ensure adequate nutrition : You are the registered nurse performing a health assessment on a newborn infant. From the functional health pattern portion of the assessment, you learn the mother is reluctant to breastfeed her baby. How do you respond? Explain the approach you w..
What is the bond yield to maturity : A bond's market price is $1,200. It has a $ 1,000 par value, will mature in 14 years, and has a coupon interest rate of 9 percent annual interest, but makes its interest payments semiannually. What is the bond's yield to maturity? What happens to the..
List all students and courses they are registered for : List all students and courses they are registered for. Include, in this order, CustomerNumber, CustomerName, Phone, CourseNumber, and AmountPaid.
Write a response about the given post : Breastfeeding an infant has numerous advantages. It ensures a child is protected from dangerous infections improving the child's immune system. Some of the nutrients in the colostrum such as calcium enable the infant to have strong and healthy bon..
What was the size of the team you were on in the development : What was the size of the team you were on in the Development (CapOne), and what is the size of your current team you're in (USAtoday)?
Determine the approximate percentage change in output : Discuss some of the methodological and measurement problems one might encounter in using time-series data to estimate the parameters of this model.
Write a response about the given post : Working as a nurse in the post-partum unit at my hospital may cause some issues. Me being a male nurse may put some patients in an awkward situation. Some patients may not feel comfortable talking about these issues with a male. And even if the..

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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