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

  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