Home » SQL & PL/SQL » SQL & PL/SQL » SQL QUES
SQL QUES [message #377] Fri, 08 February 2002 06:15 Go to next message
Neke_73
Messages: 1
Registered: February 2002
Junior Member
Why won't the following statement execute?

select ci.order_item_id "Order Item ID", ci.conc_spec_id, ci.num_substances, ci.testset_id, ci.reservation_id,
ci.bill_of_material_id, co.bom_type, cs.container_set_id from cos_order_item ci, cos_order_item_cont_set cs,
cos_order co where ci.order_item_id = cs.order_item_id and
co.order_id=ci.order_id
if co.bom_type = well
then select ci.bill_of_material_id from cos_order_item_cont_set
else co.bom_type = "null"
end if;
Re: SQL QUES [message #378 is a reply to message #377] Fri, 08 February 2002 06:49 Go to previous messageGo to next message
pratap kumar tripathy
Messages: 660
Registered: January 2002
Senior Member
there is no into clause

select ci.order_item_id "Order Item ID", ci.conc_spec_id, ci.num_substances, ci.testset_id, ci.reservation_id,
ci.bill_of_material_id, co.bom_type, cs.container_set_id from cos_order_item ci, cos_order_item_cont_set cs,
cos_order co
into .........into_list goes here.........
where ci.order_item_id = cs.order_item_id and
co.order_id=ci.order_id
Re: SQL QUERY QUES [message #1381 is a reply to message #377] Thu, 25 April 2002 01:27 Go to previous messageGo to next message
sujata
Messages: 2
Registered: April 2002
Junior Member
Pl. send me some sql query questions along with answer.the queries can be based upon the default emp & dept table.
sujata
Re: SQL QUERY QUES [message #1383 is a reply to message #377] Thu, 25 April 2002 01:38 Go to previous message
sujata
Messages: 2
Registered: April 2002
Junior Member
Pl. send me some sql query questions along with answer.the queries can be based upon the default emp & dept table.
sujata
Previous Topic: Is it oracle, java or me??
Next Topic: Need help
Goto Forum:
  


Current Time: Thu Apr 25 14:50:25 CDT 2024