SQL Assignment 1
Due: August 28, 2009
All queries must be well documented and all columns must have reasonable titles.
- Find the current date and time
- Find the square root of two
- Find the name of all customers living in Texas
- Find all of the information of customer with customer Id 538.
- Find the userid and name for customers with the last name Smith
- Find the userid and dates of customers buying more than 900 shares in one purchase
- Find the stock orders where the customer sold more than
600 shares and the price is over 100, or the customer bought more than 600
shares and the price is under 30.
- Find all of the stock order information with a price between
$50 and $51
- Find the names of all customers without a state
- Find all of the stock price dates where the difference between the high
and the low is more than 9