Create a tables student that print names of students

Assignment Help Database Management System
Reference no: EM13913265

Create the following tables: student (sid, sname, sex, age, year, gpa) dept (dname, numphds) prof (pname, dname) course (dname, cno, cname) major (dname, sid) section (dname, cno, sectno, pname) enroll (sid, dname, cno, sectno, grade) Queries-

1. Print the names of professors who work in departments that have fewer than 50 PhD students.

2. Print the names of the students with the lowest GPA.

3. For each Computer Sciences class, print the class number, section number, and the average gpa of the students enrolled in the class.

4. Print the names and section numbers of all classes with more than six students enrolled in them.

5. Print the name(s) and sid(s) of the student(s) enrolled in the most classes.

6. Print the names of departments that have one or more majors who are under 18 years old.

7. Print the names and majors of students who are taking one of the College Geometry courses.

8. For those departments that have no major taking a College Geometry course print the department name and the number of PhD students in the department.

9. Print the names of students who are taking both a Computer Sciences course and a Mathematics course.

10. Print the age difference between the oldest and the youngest Computer sciences major.

11. For each department that has one or more majors with a GPA under 1.0, print the name of the department and the average GPA of its majors. 12. Print the ids, names and GPAs of the students who are currently taking all the Civil Engineering courses.

Reference no: EM13913265

Questions Cloud

It employs regular-dividend-plus-extras policy : In 2011 the Keenan Company paid dividends totaling $3,960,000 on net income of $18.8 million. Note that 2011 was a normal year and for the past 10 years, earnings have grown at a constant rate of 8%. It continues the 2011 dividend payout ratio. It em..
Describe production characteristics of three products : Describe the characteristics of products which would suggest it would be better to use ABC as an indirect cost allocation method over a traditional method such as direct labor hours.
Present value of the debt : In transaction, determine the present value of the debt.
What makes zipcar an attractive employer for which to work : What makes Zipcar an attractive employer for which to work? What do those doing the actual hiring at Zipcar feel are important characteristics to find in potential employees
Create a tables student that print names of students : Create the following tables: student (sid, sname, sex, age, year, gpa) that Print the names of the students with the lowest GPA.
The following information is from abc company : The following information is from ABC Company's general ledger: Beginning and ending inventories, respectively, for raw materials were $8,000 and $10,000 and for work in process were $20,000 and $22,000.
Discounted payback period for the investment project : What is the discounted payback period for the investment project that has the following cash flows, if the discount rate is 14 percent?
Depreciation on the equipment to produce the new board : Rolston Music Company is considering the sale of a new sound board used in recording studios. The new board would sell for $25,800, and the company expects to sell 1,430 per year. The company currently sells 1,930 units of its existing model per year..
The following cost behavior patterns describe anticipated : The following cost behavior patterns describe anticipated manufacturing costs for 2013: raw material, $7/unit; direct labor, $10/unit; and manufacturing overhead, $240,000 + $8/unit.

Reviews

Write a Review

Database Management System Questions & Answers

  Process the weather data with data mining techniques

Process the weather data for Auckland and Invercargill in the given dataset (monthly readings) and-focusing in particular on temperature related data-experiment with various data mining techniques

  Entity-relationship modelling techniques

Give you practical experience in using Entity-Relationship and Relational Database modelling techniques.

  Demonstrate academic and professional literacy

Demonstrate academic and professional literacy by collating theoretical and practical course material into a workable application through understanding concepts and their practical application using .NET.

  Managing information and databse

Write 7 page about managing information and databse

  Does the resulting relation have an mvd

Does the above have one or more functional dependency (do not list FDs by applying derivation rules)? If so, what is it? Show how you will remove it by decomposition.

  Build the prototype as a distributed system

You should document a UML design for the proposed system. This should include a description of: architecture, requirements and functionality, detailed system design.

  Triggers important in database systems

What are triggers used for, and why are they important in database systems? Provide an example of a situation where a trigger would be appropriate.

  Dba denormalized products database to enhance performance

The DBA denormalized some of the data in Premiere Products database to enhance performance, and one of the resulting tables is following.

  Create an er diagram for each of the descriptions

Create an ER diagram for each of the following descriptions: (a) Each company operates four departments, and each department belongs to one company. (b) Each department in part (a) employs one or more employees, and each employee works for one depa..

  Describe 4 software or hardware problems which will render

discuss 4 software or hardware problems that will render two hosts unable to use the tcpip protocol to communicate.

  What functional dependencies can you identify

Suppose you have a relation schema about teaching classes that has the following attributes: Class, Instructor, Time and Room - based on your understanding of this scenario, what functional dependencies can you identify that hold on this relation?

  If you cannot capture some constraints explain why

Consider the university database from Exercise 2.3 and the ER dia-gram you designed. Write SQL statements to create the corresponding relations and capture as many of the constraints as possible. If you cannot capture some constraints, explain why.

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