| write a pro*C program [message #309045] |
Wed, 26 March 2008 05:15  |
user71408 Messages: 230 Registered: November 2007 Location: NE |
Senior Member |

|
|
Hi all,
I have sql query as follows. Please write a pro*c program for the following query.
select
sp1.cost_change
||','|| sp1.cost_change_desc
||','|| sp1.reason
||','|| to_char(sp1.active_date,'DD-MON-YYYY HH24:MI:SS')
||','|| sp1.status
||','|| sp1.cost_change_origin
||','|| to_char(sp1.create_date,'DD-MON-YYYY HH24:MI:SS')
||','|| sp1.create_id
||','|| to_char(sp1.approval_date,'DD-MON-YYYY HH24:MI:SS')
||','|| sp1.approval_id
from supp_prods sp1
where sp1.cost_change in (select sp.cost_change
from supp_stat dcp,
sup_detail spd,
sup_prd sp
where sp.active_date = to_date('02-feb-2008 00:00:00','DD-MON-YYYY HH24:MI:SS')
and sp.cost_change = spd.cost_change
and spd.item = dcp.item
and spd.supplier = dcp.supplier
and sp.origin_country_id = dcp.origin_country_id
and sp.unit_cost = dcp.unit_cost)
Can any one please help me to write the pro*c code for this.
Thank you.
Kris
|
|
|
| Re: write a pro*C program [message #309052 is a reply to message #309045 ] |
Wed, 26 March 2008 05:29   |
Michel Cadot Messages: 15238 Registered: March 2007 Location: Nanterre, France, http://... |
Senior Member |
|
|
Pro*C/C++ Programmer's Guide
How many time do you expect we will still go on trying to help you if you continue to refuse to read the documentation.
Regards
Michel
[Updated on: Wed, 26 March 2008 05:30]
|
|
|
|
| Re: write a pro*C program [message #309058 is a reply to message #309056 ] |
Wed, 26 March 2008 06:02   |
Michel Cadot Messages: 15238 Registered: March 2007 Location: Nanterre, France, http://... |
Senior Member |
|
|
This is in the doc.
Regards
Michel
|
|
|
| Re: write a pro*C program [message #309062 is a reply to message #309056 ] |
Wed, 26 March 2008 06:13  |
Littlefoot Messages: 5640 Registered: June 2005 Location: Croatia, Europe |
Senior Member |
|
|
Did you check the syntax? Because, if your code looks like your messages (see below), no wonder it won't work.
| A few words from user71408's last message |
compuloing, proble, u, cratting, proc, folloe
|
|
|
|