Exercise 2: 1. First - Name John 2. Sales - Date Order - Id Product - Id Sales - Date JAN
Exercise 2: 1. First - Name John 2. Sales - Date Order - Id Product - Id Sales - Date JAN
1. Produce a list of rows showing all columns from the SALES table where total amount
greater than 1000.
2. Produce a list of rows showing all columns from the SALES table where total amount is
not equal to 44.
3. Produce a list of rows showing all columns from the SALES table where quantity is less
than or equal to 10.
4. Produce a list of rows showing all columns from the SALES table where sales date is equal
to 9th February 2015
5. Produce a list of rows showing all columns from the PRODUCT table where color is equal
to RED.
6. Produce a list of rows showing all columns from the SALES table where total amount is
greater than sales amount
Copy and paste the below SQL’s in SQL Developer and run
them, You will get errors and try to correct those errors.
Correct the above SQL statement by enclosing JOHN in single quotations. Remember a
character value should be enclosed in single quotations.
2) You will get an error “ ORA-00904: "JAN": invalid identifier ” when you run below SQL
statement.