Dtabase Question

NOTES

Instructions

Don't use plagiarized sources. Get Your Custom Essay on
Dtabase Question
From as low as $9/Page
Order Essay

From Resources under Main Menu in Interact 2 go to Assignment 4 Folder

Copy sqlite3.exe file from the Assignment 4 Folder into a folder in your machine

 

Copy a4.txt from the Assignment 4 Folder into the folder in your machine where your SQLite file is located

 

From the SQLite Command Prompt execute the a4.txt script. To do this, at the SQLite Command Line type .read a4.txt [to create the tables you will use to answer this assignment’s questions]

 

At the SQLite Command Line type .headers on

 

At the SQLite Command Line type .mode column

 

Write and run SQL statements to complete the following tasks (Each Query : 1.5 (0.75 query+ 0.75 for screenshot) Marks)

  1. Show sums of line units for each invoice.
  2. Show the details of the products that do not have a value for the attribute v_code.
  3. Show the details of the invoices whose subtotal is greater than 24 but less than 76.
  4. Show the details of the invoice who has the minimum subtotal.
  5. Show the codes and names of the vendors who supplied products.
  6. Using EXCEPT show the codes of the vendors who did not supply any products.
  7. Using ‘NOT IN’ show the codes and names of the vendors who did not supply any products.
  8. List the names and codes of vendors and the number of products each vendor has supplied, i.e. vendor XXX has supplied xxx products, and vendor YYY has supplied yyy products etc.
  9. Show the details of the employees who are located in area code 615.
  10. Using inner join, list the details of the products whose line price is greater than 99.

You are required to submit:

 

  1.     The SQL statements for each query, which should be copied from your SQLite3 Command Line and pasted into your submission file. If you type .echo on at the SQLite3 Command Line, SQLite will output your SQL statement with the results of the query making it easy to copy and paste both.
  2.     The screenshots of the results of the SQL statements which are to be copied from your SQLite3 Command Line and pasted into your submission file immediately after you execute the SQL query. If you used an output file please submit only the output file.

The Homework Writings
Order NOW For A 10% Discount!
Pages (550 words)
Approximate price: -

Our Advantages

Plagiarism Free Papers

All our papers are original and written from scratch. We will email you a plagiarism report alongside your completed paper once done.

Free Revisions

All papers are submitted ahead of time. We do this to allow you time to point out any area you would need revision on, and help you for free.

Title-page

A title page preceeds all your paper content. Here, you put all your personal information and this we give out for free.

Bibliography

Without a reference/bibliography page, any academic paper is incomplete and doesnt qualify for grading. We also offer this for free.

Originality & Security

At thehomeworkwritings.com, we take confidentiality seriously and all your personal information is stored safely and do not share it with third parties for any reasons whatsoever. Our work is original and we send plagiarism reports alongside every paper.

24/7 Customer Support

Our agents are online 24/7. Feel free to contact us through email or talk to our live agents.

Try it now!

Calculate the price of your order

We'll send you the first draft for approval by at
Total price:
$0.00

How it works?

Follow these simple steps to get your paper done

Place your order

Fill in the order form and provide all details of your assignment.

Proceed with the payment

Choose the payment system that suits you most.

Receive the final file

Once your paper is ready, we will email it to you.

Our Services

We work around the clock to see best customer experience.

Pricing

Flexible Pricing

Our prices are pocket friendly and you can do partial payments. When that is not enough, we have a free enquiry service.

Communication

Admission help & Client-Writer Contact

When you need to elaborate something further to your writer, we provide that button.

Deadlines

Paper Submission

We take deadlines seriously and our papers are submitted ahead of time. We are happy to assist you in case of any adjustments needed.

Reviews

Customer Feedback

Your feedback, good or bad is of great concern to us and we take it very seriously. We are, therefore, constantly adjusting our policies to ensure best customer/writer experience.