rvk7895 commited on
Commit
205f843
1 Parent(s): f0ab63d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +4 -4
README.md CHANGED
@@ -185,9 +185,9 @@ CREATE TABLE Shipment_Items (
185
  ```
186
 
187
  ### Questions
188
- What is the most popular payment method?
189
  ```sql
190
- SELECT payment_method_code FROM Customer_Payment_Methods GROUP BY payment_method_code ORDER BY count(*) DESC LIMIT 1;
191
  ```
192
 
193
  What are the product price and the product size of the products whose price is above average?
@@ -195,9 +195,9 @@ What are the product price and the product size of the products whose price is a
195
  SELECT product_price , product_size FROM products WHERE product_price > (SELECT avg(product_price) FROM products)
196
  ```
197
 
198
- What is the most uncommon order status?
199
  ```sql
200
- SELECT order_status_code FROM orders GROUP BY order_status_code ORDER BY count(*) ASC LIMIT 1;
201
  ```
202
 
203
  ### Team
 
185
  ```
186
 
187
  ### Questions
188
+ hat are the email address, town and county of the customers who are of the least common gender?
189
  ```sql
190
+ SELECT email_address , town_city , county FROM customers GROUP BY gender_code ORDER BY count(*) ASC LIMIT 1
191
  ```
192
 
193
  What are the product price and the product size of the products whose price is above average?
 
195
  SELECT product_price , product_size FROM products WHERE product_price > (SELECT avg(product_price) FROM products)
196
  ```
197
 
198
+ Which customers did not make any orders? List the first name, middle initial and last name.
199
  ```sql
200
+ SELECT T1.customer_first_name , T1.customer_middle_initial , T1.customer_last_name FROM Customers AS T1 WHERE T1.customer_id NOT IN (SELECT T2.customer_id FROM Orders AS T2)
201
  ```
202
 
203
  ### Team