@@ -0,0 +1 @@ | |||
SELECT order_id, order_date, ship_date FROM orders WHERE ship_date IS NULL; |
@@ -0,0 +1,2 @@ | |||
SELECT NOW() AS today_unformatted, | |||
DATE_FORMAT(NOW(), '%d-%M-%Y') AS today_formatted; |
@@ -0,0 +1 @@ | |||
SELECT '100 (dollars)' AS price, '.07 (7 percent)' AS tax_rate, 100 * 0.07 AS tax_amount, (100 +(100*0.07)) AS total; |
@@ -0,0 +1,8 @@ | |||
SELECT c.category_name as Category, | |||
p.product_name as Product, | |||
p.list_price as Price | |||
FROM | |||
products p | |||
INNER JOIN | |||
categories c ON p.category_id = c.category_id | |||
ORDER BY category_name, product_name ASC; |
@@ -0,0 +1,14 @@ | |||
SELECT | |||
c.first_name AS First, | |||
c.last_name AS Last, | |||
a.line1 AS line1, | |||
a.city AS city, | |||
a.state AS state, | |||
a.zip_code AS Address | |||
FROM | |||
customers c | |||
INNER JOIN | |||
addresses a ON c.customer_id = a.customer_id | |||
WHERE | |||
c.email_address = 'allan.sherwood@yahoo.com' | |||
ORDER BY Last, First; |