Write ten sql statements against the student schema

Assignment Help Database Management System
Reference no: EM131443049

Database Scripts (Using SQL developer)

Part 1 (10 scripts, keep separate from part 2)

Write 10 SQL statements against the STUDENT schema that is in zip file. Your statements should run error-free and should be valid. Submit two separate files: one plain text file (.txt or .sql file) with your statements only; and the other document (doc/docx/pdf) include both your statements and your query results (copy and paste text or screen shots). I should be able to run your plain text source file as script and generate the same output as shown in your result document.

Display all information about all courses

Add a new course "Relational Database Systems" with course number 651. Use your user name as created_by/modified_by and current date as created_date/modified_date

List the course number for "Database System Principles"

Set "Database System Principles" as the prerequisite for "Relational Database Systems"

List all courses that have "Database System Principles" as prerequisite

List total number of courses that have no prerequisite

Delete course "Relational Database Systems"

Display total number of courses

Lower cost of all courses by 100

List all course cost (show course description and cost only) by the order of cost from highest to lowest

Part 2 (10 scripts, keep separate from part 1)

Write Ten SQL SELECT statements to query the STUDENT schema provided. 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). I should be able to run your plain text source file as script and generate the same output as shown in your result document.

Show the number of students whose zip is 07070.

List all students (display student_id, first name, last name, and employer) who live in Columbus, OH.

Show the zip, state and city that have > 5 students as residents.

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.

Show the number of students enrolled in the 'Intro to Unix' course.

List all students (display student_id, first name, last name, and employer) who took courses taught by instructor 'Anita Morris'.

List all distinct courses (display instructor name, course_no and description) taught by 'Anita Morris'.

For all students who took 'Intro to Unix', calculate the highest, lowest, and average midterm exam grade.

Show which courses have >  10 students enrolled. Display course_no, description and number of students enrolled.

List any student who has enrolled in the same course multiple times. Display student name, course description, and enrollment count.

Attachment:- documents.zip

Reference no: EM131443049

Questions Cloud

Selling attractive home-office furniture to customers : Well-Built Furniture had a banner year selling attractive home-office furniture to customers in a large metropolitan area. At a monthly executive meeting, sales rep Harry presented his idea to develop a new service: For an additional cost, custome..
What was finleys net cash provided by operating activities : ACCT 504- What was Finley's net cash provided by operating activities? What is the total NET amount of property, plant, and equipment that will appear on the balance sheet?
Determine whether that motivation will be satisfied : Econ 1311: Data Analysis Assignment. Consider the stated goal of the tax policy described. Using a demand and supply diagram, determine whether that motivation will be satisfied if Demand is perfectly inelastic
Which cost curve represent curves : Use the graph to answer the following questions. a. Curve A represents which cost curve? b. Curve B represents which cost curve? c. Curve C represents which cost curve? d. Curve D represents which cost curve?
Write ten sql statements against the student schema : Write 10 SQL statements against the STUDENT schema that is in zip file. Your statements should run error-free and should be valid. Submit two separate files: one plain text file (.txt or .sql file) with your statements only; and the other document..
Discuss how vat system works by using relevant examples : Discuss how VAT system works by using relevant examples and list and explain the VAT supply categories; provide relevant examples of each category.
Elements in integrated marketing communication campaigns : Sales promotion vehicles are often key elements in integrated marketing communication campaigns. Browse the Web sites of the following support organizations for the sales promotion field and answer the questions for EACH site. This exercise is des..
Dicuss output range for current production of buffalo bill : Buffalo Bill has a potato chip company, Buffalo's chips. He is currently losing money on every bag of chips he sells. Mrs. Bill, who has just completed an economics class, tells Buffalo Bill he could make a profit if he adds more machines and prod..
Why business can be good at solving social problems : Watch the video Michael Porter: Why business can be good at solving social problems. Post 1) what you garnered from the video 2) what social problem you feel business can solve at home or abroad and how this could be accomplished.

Reviews

Write a Review

Database Management System Questions & Answers

  Identifying all attributes and decide primary key of invoice

Considering the following example of Invoice, you will design relational database by following the step suggested. Please, answer each step. Step1: Identifying all attributes and decide primary key of INVOICE relation. Step2: Identifying all (minima..

  Normalize the following table

Normalize the following table upto and including the 3NF. Submit a 1 page printout of only the final set of normalized tables in Data Architect. Just use Data Architect to do the tables. No need for E-R, mapping, relationships etc. Just tables. State..

  Provide a dynamic view of your supply chain

In your role as the database administrator for X-Tex, a small but successful company that designs and manufactures high tech fabrics, you have been asked to help optimize a query that will provide a dynamic view of your supply chain

  Explain the speed of the search operation

Describe a mechanism to access the telephone customer records by telephone #. Assume that we have a huge data in hand, say a million records or so.

  Write a memorandum to sam jones

Write a memorandum to Sam Jones (CIO) and present your research findings. Your memorandum should be no longer than 500 words.

  Write a second select statement that uses

Write a SELECT statement that returns three columns: EmailAddress, OrderID, and the order total for each customer.

  Problem 1suppose you have a relation schema about teaching

problem 1suppose you have a relation schema about teaching classes that has the following attributes class instructor

  Find the enames of managers who manage the departments

Find the enames of managers who manage the departments with the largest budget. Find the managerids of managers who manage only departments with budgets greater than $1,000,000.

  Draw a complete entity relationship model

Discuss any FOUR reports that would be generated from the data model - Draw a complete Entity Relationship (ER) model using data model notation that you are familiar.

  Identify industries that are currently using common data

Identify at least two industries that are currently using common data exchange and data management trends. Rank the success of each implementation based on the ease of implementation, ease of use, and costs.

  Isom database assignment

You are provided with a case which will be used for the assignments dealing with design and implementation of database.

  Which is not a factor to consider in software evaluation

Peer reviewers are the key participants in which activity?

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