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.

Answers were Sorted based on User's Feedback



5. Display full details from the ORDER_LINE table where the item number is (first condition) betwee..

Answer / 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

5. Display full details from the ORDER_LINE table where the item number is (first condition) betwee..

Answer / murali

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

Is This Answer Correct ?    1 Yes 1 No

5. Display full details from the ORDER_LINE table where the item number is (first condition) betwee..

Answer / 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

More Oracle General Interview Questions

How to run the anonymous block again?

0 Answers  


How to retrieve values from data fields in record variables?

0 Answers  


How to enter a new row into a table interactively?

0 Answers  


What is system global area (sga) in oracle?

0 Answers  


Is it possible to split the print reviewer into more than one region ?

0 Answers   Oracle,






How do I decide when to use right joins/left joins or inner joins or how to determine which table is on which side?

0 Answers  


Explain self joins in oracle?

0 Answers  


What is the quickest way to fetch the data from a table?

0 Answers  


material view and view disadvantages?

0 Answers  


How to write date and time interval literals in oracle?

0 Answers  


How to write a query with a left outer join in oracle?

0 Answers  


write a query to dispaly those name who is more than one in student table? example- in a student table sandeep kumar comes 4 times, rakesh kumar comes 2 times, ajit kumar comes 1 times so query will display sandeep kumar and rakesh kumar single times.

11 Answers   Wipro,


Categories
  • Oracle General Interview Questions Oracle General (1789)
  • Oracle DBA (Database Administration) Interview Questions Oracle DBA (Database Administration) (261)
  • Oracle Call Interface (OCI) Interview Questions Oracle Call Interface (OCI) (10)
  • Oracle Architecture Interview Questions Oracle Architecture (90)
  • Oracle Security Interview Questions Oracle Security (38)
  • Oracle Forms Reports Interview Questions Oracle Forms Reports (510)
  • Oracle Data Integrator (ODI) Interview Questions Oracle Data Integrator (ODI) (120)
  • Oracle ETL Interview Questions Oracle ETL (15)
  • Oracle RAC Interview Questions Oracle RAC (93)
  • Oracle D2K Interview Questions Oracle D2K (72)
  • Oracle AllOther Interview Questions Oracle AllOther (241)