
<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>
Details
-
File Typepdf
-
Upload Time-
-
Content LanguagesEnglish
-
Upload UserAnonymous/Not logged-in
-
File Pages2 Page
-
File Size-