I am working on a SQL query and need help with it. I'm using an Oracle database.
The DAILY_SALES
table holds daily sales amount of each store and each customer; it has following 4 columns:
- STORE_NUMBER`
- CUSTOMER_NUMBER
- TRANSACTION_DATE
- SALES_AMOUNT
Will the following SQL query be able to find out all stores that had more than 20000 dollars in sales in the year of 2013?
Select * from DAILY_SALES where SALES_AMOUNT>20000 and TRANSACTION_DATE is in between (Jan1,2013 and Dec31,2013)
You want to display only these three columns with these restriction:
I think the code above will work for you.