Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

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.

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M9717510
  • Price:- $35

Priced at Now at $35, Verified Solution

Have any Question?


Related Questions in DBMS

In sql developer onlydeliverables include sql scripts and

In SQL Developer ONLY! Deliverables Include SQL scripts and screenshot of the results: D1. Create the following three user-defined roles that are shown in the table below and assign them the specified permissions for the ...

Instructionsfor decades relational databases remained

Instructions For decades, relational databases remained essentially unchanged; data was segmented into specific chunks for columns, slots, and repositories, also called structured data. However, in this Internet of Thing ...

Database design and development assignment -assessment task

Database Design and Development Assignment - Assessment task - 1. Normalization a) Map the ERD, from the sample solution, into a set of relations in at least Third Normal Form (3NF). You must ensure that your relations m ...

Question 1 describe 1nf 2nf 3nf2 explain why 4nf is a

Question: 1: Describe 1NF, 2NF, 3NF. 2: Explain why 4NF is a normal form more desirable than BCNF. The response must be typed, single spaced, must be in times new roman font (size 12) and must follow the APA format.

Backgrounda new training organization called abc

Background A new training organization called ABC TechTraining is opening soon and they have approached you to help design their new database. They have just completed the refurbishment of the premises and are now lookin ...

Question team project submission - submit to the unit 4

Question: Team Project Submission - Submit to the Unit 4 Group Project Area This version of the capstone project assignment is FOR GRADING this week. Submit to the group area the document containing completed Sections On ...

Suppose that you have designed a database for morgan

Suppose that you have designed a database for Morgan Importing that has the following tables: EMPLOYEE (EmployeeID, LastName, FirstName, Department, Phone, Fax, EmailAddress) STORE (StoreName, City, Country, Phone, Fax, ...

Your taskyou have been commissioned to develop a database

Your task You have been commissioned to develop a database system that is capable of keeping records for FU's table tennis matches from now on. The database needs to keep a record of: - All team information, including pl ...

This is a starting out with visual basic programming

This is a starting out with visual basic programming problem, meaning its a basic programming nothing advanced. Question: Add a linq statement to the combo box text-changed event to dispaly the city field of the selected ...

Database and information retrieval assignment - data

Database and Information Retrieval Assignment - Data Privacy Essay Task - Write an essay (aim for 750 words) that addresses issues associated with data proivacy. Use the Australian Privacy Principles - discussed in class ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As