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

  Explain k-means clustering algorithm to group the homicides

In this assignment, analyze crime rates using data mining clustering techniques (K-means) to get an accurate prediction to enable police forces to get a clear picture of criminals and solve crimes.

  Creating use case to describe typical sales process

Create use case to describe a typical sales process. Then make a sequence diagram for use case.

  Create a context level dfd

Create a context level DFD. You should take your DFD to your tutorial for feedback before starting on the ER.

  Create a report that dumps the contents of a table

A screen shot of the first page of the contents of each table. Alternatively, you may create a report that dumps the contents of a table and submit a single page of that report.

  Draw dfd for placing order based on the e-r diagram

Draw a DFD (Context and Level 1) for placing an order based on the E-R diagram shown here.

  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.

  Write sql queries for the books database

Write SQL queries for the books database that perform each of the following tasks: Select all authors from the Authors table with the columns in the order lastName, firstName and authorID.

  What do you think is the wisdom of maintaining 2 models

what do you think is the wisdom of maintaining 2 models? The W3C has a Document Object Model as a recommendation. Do you think browsers should implement this model? If not, propose a model which you think would be suitable.

  Advantages and disadvantages of working with multiple tables

Write down the advantages and disadvantages of working with multiple tables? Write an example of situation where multiple tables would be suitable in the application.

  Design er schema to keep track of information of votes

Design an er schema for keeping track of information about votes taken in the U.S. House of Representatives during the current two year congressional session.

  Describes a suitable methodology from the literature

Describes a suitable methodology from the literature for the purpose of designing, constructing and testing of a commercial BIDW for a multinational company.

  Build relatively well normalized relational database

If we added hats in 3 sizes and 3 colors and 3 styles, discuss briefly how many additional tables you 'uld add to the design.

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