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

  Explaining how a relational data solution

Write a two-page executive summary for your boss explaining how a relational data solution can be applied to a current business problem or area for improvement. Assume that your boss knows nothing about relational database theory.

  Development of an er diagram and database implementation

Development of an ER Diagram and Database Implementation- To give you practical experience in using Entity-Relationship and Relational Database modelling techniques

  Identify the primary keys and creating foreign keys

In class practice: Turn each ER diagram into a database diagram by identify the primary keys and creating foreign keys. Insert new columns or tables as needed. Also, if necessary, specify what must be done to enforce maximum and minimum cardinalit..

  Develop a uml class diagram that illustrates the data items

Develop a UML class diagram that illustrates the data items for your program. List the decisions the program must make. References to the data items in the previous step should be used where appropriate

  For each table, identify a superkey and a secondary key.

for each table identify a super key and a foreign key

  Design a flowchart for a program

Design a flowchart for a program that declares an array of 10 characters. Program should count and print number of times a special character, (your choice, let say ‘a') has been found in the array.

  Generate 4096 data samples from a chirp pattern

(1) Generate 4096 data samples from a chirp pattern. One may extend sampling size from 4096 to million to mimic real big data.

  Create a crow''s foot erd using a specialization hierarchy

Given the following business scenario, create a Crow's Foot ERD using a specialization hierarchy if appropriate. Tiny Hospital keeps information on patients and hospital rooms

  Design a set of 3nf tables for your database scenario

Draw an ER diagram for your database scenario. Design a set of 3NF tables for your database scenario.

  Define what is meant by a process in a process model

Define what is meant by a process in a process model. How should a process be named? What information about a process should be stored in the CASE repository?

  Write a reference-based implementation of a queue

Write a reference-based implementation of a queue that uses a linear linked list to represent the items in the queue. You will need both a head reference and a tail reference.

  Explain the security mechanisms available for a database

Be typed, double spaced, using Times New Roman font (size 12), with one-inch margins on all sides; citations and references must follow APA or school-specific format. Check with your professor for any additional instructions.

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