MIS 309 Database Systems SQL Practice Assignment 4

MIS 309 Database Systems SQL Practice Assignment 4

<p>MIS 309 Database Systems SQL Practice – Assignment 4</p><p>Given the following table Store_Information</p><p>Store_Name Sales Date Los Angeles $1500 Jan-05-2006 San Diego $250 Jan-07-2006 Los Angeles $300 Jan-08-2006 Boston $700 Jan-08-2006</p><p>1. Find all data in this table.</p><p>2. Find all store names in this table.</p><p>3. Find stores with sales above $1,000.</p><p>4. Find all stores with sales greater than $1,000 or all stores with sales less than $500 but greater than $275.</p><p>5. Find all records for the Los Angeles and the San Diego stores (use IN).</p><p>6. Find all stores whose name contains 'AN'. MIS 309 Database Systems SQL Practice – Assignment 4</p><p>Given the following table Store_Information</p><p>Store_Name Sales Date Los Angeles $1500 Jan-05-2006 San Diego $250 Jan-07-2006 Los Angeles $300 Jan-08-2006 Boston $700 Jan-08-2006</p><p>7. Find all of the unique store names in this table.</p><p>8. Calculate the sum of all sales from this table.</p><p>9. Calculate the total sales for each store.</p><p>10. Find only the stores with sales over $1,500. (Use HAVING)</p><p>11. Also given the table Internet_Sales </p><p>Date Sales Jan-07-2006 $250 Jan-10-2006 $535 Jan-11-2006 $320 Jan-12-2006 $750</p><p>Find all dates where there is a sales transaction.</p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    2 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us