The purpose of this assignment is to give you practice with

Assignment Help Database Management System
Reference no: EM13347893

The purpose of this assignment is to give you practice with creating database structure using SQL and using the INSERT command to add data.

Read the University Archaeology Museum case. Then use the appropriate command-line client software with Postgres or mySQL to create the database structures necessary for the tables in this document. (They represent only a portion of the tables necessary for the complete museum database.)

Name your database museum. Please also adhere to column names and data types as specified in this document. (This will make it possible for me to use my own database when grading Assignment 7.)

Once you have created the tables, load them with the data provided.

Hand in output that lists your tables, their columns, and the test data. How you get the first two depends on the DBMS you are using:

  • PostgreSQL: Issue the following two commands. Paste the output into a Word or plain text document to submit.
    • SELECT table_name FROM information_schema.tables WHERE table_schema = 'public';
    • SELECT column_name FROM information_schema.columns WHERE table_name = 'table_name';
  • MySQL: Issue the following two commands. Paste the output into a Word or plain text document to submit.
    • SHOW TABLES
    • DESCRIBE table_name

Then issue SELECT * FROM table_name for each table in the database. Paste the output into the Word or plain text document.

Please keep in mind that you will need this database to complete assignment 6. Therefore, it is important that you create it and populate the tables correctly.

Shorthand: \d table_name

Using the database you created for Assignment 5, develop and test the command-line SQL syntax to perform the data retrieval requests described below. Turn in your query and the output table by copying the output of your SQL command processor and pasting it into a Word or text document.

  1. List the grant sources and award amounts for all grants awarded to principle researcher #001.
  2. List the names of all researchers who received grants of more than $100,000.
  3. List the contents of purchase order #000003, including the name of each item, how many were ordered, the unit cost, and the line cost (unit cost * quantity).
  4. List the first and last names of the people working on dig #004.
  5. Display the total cost of the items on purchase order #000003.
  6. List the names of the vendors with whom an order for a single item costing over $1000 has been placed.
  7. List the name of the principle researcher for each grant to which "Archaeology Supply Co." has sold something.
  8. List all the employees who are not assigned to any dig.
  9. List all grants to which "Charter Airlines" has not sold supplies.

Reference no: EM13347893

Questions Cloud

1 the scenarioyou have been asked to prepare a feasibility : 1. the scenarioyou have been asked to prepare a feasibility study and an initial design to enable a large holiday
The goal is to create a project that would let a user : the goal is to create a project that would let a user compute area and perimeter of a polygon. restrict the type of
Prepare an original argument about an issue around which : prepare an original argument about an issue around which there is some legitimate debate. you will need to start by
Question 1ziegler-nichols open loop tuningoften when : question 1ziegler-nichols open loop tuningoften when working with a faster loop many people will opt only for a pi
The purpose of this assignment is to give you practice with : the purpose of this assignment is to give you practice with creating database structure using sql and using the insert
You must illustrate your answers with real examples showing : you must illustrate your answers with real examples showing evidence of research outside of the textbook.question
Question a one of your old english lit professors has been : question a one of your old english lit professors has been elected governor of baxter a cute little new england state
Your organization city rehab has been approached by an mco : your organization city rehab has been approached by an mco looking for an exclusive arrangement for the rehabilitation
Imagine that you work for fema or the department of : imagine that you work for f.e.m.a. or the department of homeland security.in light of the problems brought up by

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