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 / suman rana

select * from order_line
where ( (itemnum between 1 and 200) or itemnum >100)
and not (cost in (1000,2000,3000) or ordernum = 1000)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain constraining triggers.

593


How to store only time; not date and time?

555


What is coalesce function?

565


How can you tell how much space is left on a given file system and how much space each of the file systems subdirectories take-up?

2387


Explain the features of oracle?

590






What privilege is needed for a user to insert rows to tables in another schema?

556


What is Data Dictionary Cache in Oracle?

655


What are the predefined tablespaces in a database?

554


How do I manually create a database in oracle?

536


From the following identify the non schema object: packages, triggers, public synonyms, tables and indexes.

581


How to open a cursor variable?

602


State and explain the different types of data models?

527


What do you know about normalization? Explain in detail?

495


How we can able to import our own template (users designed MS-Word templates) which has many tabular columns; need to pass some values generate by Oracle-reports9i? Actually need to import more than 400 MS-Word templates into Oracle Reports-9i to minimize layout design in Reports.

1608


Give syntax for SQL and ORACLE joins.

626