| PRO*C [message #305348] |
Mon, 10 March 2008 08:54  |
user71408 Messages: 230 Registered: November 2007 Location: NE |
Senior Member |

|
|
Hi All,
I have 2 sql queries as follows. using those two queries I want to write a PRO*C program. I am new to PRO*C. So can you please help me to write this Program
queries
delete
from detail d1
where d1.c_change in (select h.c_change
from support isc,
detail cpd,
head h
where h.actdate = to_date('12-dec-2008 00:00:00','DD-MON-YYYY HH24:MI:SS')
and h.c_change = d.cost_change
and cpd.item = isc.item
and cpd.supplier = isc.supplier
and cpd.country = isc.id
and cpd.cost = isc.cost)
delete
from head h
where h.act = to_date('12-dec-2008 00:00:00','DD-MON-YYYY HH24:MI:SS')
and not exists (select 1
from detail cpd
where cpd.cost_change = h.cost_change)
Please tell me how to write pro*c program for this...
Thank you.
|
|
|
| Re: PRO*C [message #305349 is a reply to message #305348 ] |
Mon, 10 March 2008 08:57   |
ThomasG Messages: 620 Registered: April 2005 Location: Heilbronn, Germany |
Senior Member |
|
|
Hi all,
I have just purchased a parachute from ebay. I'm about to jump now. Any last minute advice I should be aware off?
Thank you.
Hint : Take some sort of course before jumping, or at least read a tutorial and then come back when you have a specific question.
|
|
|
|
|
|
| Re: PRO*C [message #305358 is a reply to message #305356 ] |
Mon, 10 March 2008 09:14   |
Frank Naude Messages: 3657 Registered: January 2002 |
Senior Member |
|
|
EXEC SQL DELETE FROM head h
WHERE h.act = to_date('12-dec-2008 00:00:00','DD-MON-YYYY HH24:MI:SS')
AND not exists (select 1
from detail cpd
where cpd.cost_change = h.cost_change);
|
|
|
|
|
|
|
| Re: PRO*C [message #305530 is a reply to message #305520 ] |
Tue, 11 March 2008 03:36   |
Michel Cadot Messages: 15238 Registered: March 2007 Location: Nanterre, France, http://... |
Senior Member |
|
|
This is clearly explained in documentation.
Regards
Michel
|
|
|
|
|
| Re: PRO*C [message #305646 is a reply to message #305607 ] |
Tue, 11 March 2008 08:06   |
Michel Cadot Messages: 15238 Registered: March 2007 Location: Nanterre, France, http://... |
Senior Member |
|
|
| Quote: | I am getting the following error
|
When?
Regards
Michel
|
|
|
|
|
|
|
|
|
|
| Re: PRO*C [message #305819 is a reply to message #305815 ] |
Wed, 12 March 2008 02:30   |
Michel Cadot Messages: 15238 Registered: March 2007 Location: Nanterre, France, http://... |
Senior Member |
|
|
There are demo programs and demo makefile in $ORACLE_HOME/precomp/demo/proc (or the like), study them, use them.
I can't help if you don't have the basics.
Regards
Michel
|
|
|
|
| Re: PRO*C [message #305833 is a reply to message #305828 ] |
Wed, 12 March 2008 02:56   |
Michel Cadot Messages: 15238 Registered: March 2007 Location: Nanterre, France, http://... |
Senior Member |
|
|
It depends on how you compile, with which options and which environment.
Too many questions.
Regards
Michel
|
|
|
| Re: PRO*C [message #305836 is a reply to message #305833 ] |
Wed, 12 March 2008 03:02  |
user71408 Messages: 230 Registered: November 2007 Location: NE |
Senior Member |

|
|
i got ssk_sample.c and ssk_sample.lis. then i run it at
$ssk_sample.pc
there I am getting the error.
I am doing this one in development side..
any more.. please ask me...
Thank u
[Updated on: Wed, 12 March 2008 03:02]
|
|
|