5. Display full details from the ORDER_LINE table where the
item number is (first condition) between 1 and 200 (no > or
< operators) OR the item number is greater than 1000 AND
(second condition) the item cost is not in the list 1000,
2000, 3000 OR the order number is not equal to 1000.
Answer Posted / girija.112
select *
from order_line
where item_number between 1 and 200
or item_number > 1000
intersect
select *
from order_line
where order_number not in (1000,2000,3000)
or order_number <> 1000
| Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is bulk load in oracle?
What are oracle functions?
How many types of tables are there in oracle?
What is the effect of setting the value "all_rows" for optimizer_goal parameter of the alter session command? What are the factors that affect optimizer in choosing an optimization approach?
what is reindexing?
How can I introduce multiple conditions in like operator?
How to use group functions in the select clause using oracle?
What is the difference difference between $ORACLE_HOME and $ORACLE_BASE.
List out the types of joins.
How to put more than 1000 values into an oracle in clause?
How can I combine multiple rows into a comma-delimited list in oracle?
How to open and close an explicit cursor in oracle?
What is sequence?
What are the predefined tablespaces in a database?
Give syntax for SQL and ORACLE joins.