You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
7 lines
352 B
SQL
7 lines
352 B
SQL
/*Write a SQL statement to display either those orders which are not issued on date 2012-09-10 and issued by the
|
|
salesman whose ID is 505 and below or those orders which purchase amount is 1000.00 and below.*/
|
|
SELECT *
|
|
FROM orders
|
|
WHERE NOT ((ord_date ='2012-09-10'
|
|
AND salesman_id>505)
|
|
OR purch_amt>1000.00); |