Find a list of courses where the percentage of students

Assignment Help Database Management System
Reference no: EM132080153

You need help with this two quieries in sql.

here are the tables

students(sid,name,age,gpa) // sid is the primary key

courses(cid,deptid, description) // cid,deptid is the primary key

professors(ssn,name,address,phone,deptid) // ssn is the primary key

enrollment(sid,cid,section,grade) cid makes reference to the courses table. // sid, cid, and section is the primary key

teaches(cid,section,ssn). cid, section makes reference to the enrollment table // cid, section is the primary key

a. List of professors that work for departments with more than 20 faculty members and that offer more large sections than small and medium sections combined. Assume that small sections have less than 30 students, medium sections have at least 30 students but less than 80, and large sections have at least 80 students.

b. Find a list of courses (sections) where the percentage of students with D or F is greater than average.

Reference no: EM132080153

Questions Cloud

Increase in the quantity demanded : An "increase in the quantity demanded" means that a. the demand curve has shifted to the right
Draw a plan view of the front panel : ENGINEERING DESIGN - DESIGN PROJECT - Teesside University - An analogue/digital circuit trainer is required for open learning students to use to build circuits
Describe a competitive market : Identify whether or not each of the following scenarios describes a competitive market, along with the correct explanation of why or why not.
Demand schedule or law of demand : A graph showing the relationship between the price of a good and the amount that buyers are willing to and able to purchase at a variety of prices
Find a list of courses where the percentage of students : List of professors that work for departments with more than 20 faculty members and that offer more large sections than small and medium sections combined.
What is the income velocity of money in freedonia : The money supply is growing at 12% per year and real income, Y, is growing at 4% per year.
Price of a chinese-made car : Which does an increase in the price of a Chinese-made car that is popular among U.S. consumers show up in?
Write a program that transmits a series of characters : Write a program that transmits a series of characters (in C).The sequence will consist of "AlphaNumber", where Alpha is meant to be a letter.
To create and add the customer record to the database : Program should use a function, generateRecord, to create and add the customer record to the database (a dict that stores customers' information).

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