View previous topic :: View next topic |
Author |
Message |
satyenderd Beginner
Joined: 26 Aug 2005 Posts: 144 Topics: 73
|
Posted: Tue Aug 05, 2008 11:31 am Post subject: Unload the data from imagecopies using joins or sub-queires. |
|
|
Hi all,
The following is the scenario.
I have to unload the data from the production. But as I am not supposed to hit a query in production, is it is possible to write a sub-query or join on Imagecopies to unload the data.
for example:
SELECT *
FROM
TABLE1
WHERE RDNDTE IN
(SELECT
RDNDTE
FROM
TABLE2
WHERE DATE(RDNDTE) >= CURRENT DATE - 5 YEARS);
Please let me know, if there are any chances of executing a query on this kind of scenario.
Thanks in advance to all. _________________ Satya |
|
Back to top |
|
 |
jsharon1248 Intermediate
Joined: 08 Aug 2007 Posts: 291 Topics: 2 Location: Chicago
|
Posted: Wed Aug 06, 2008 11:38 am Post subject: |
|
|
The UNLOAD from image copy supports limited query-like functionality via the WHEN clause in the FROM-TABLE spec. The WHEN is not processed by the optimizer. The UNLOAD utility will not allow a sub-select in the FROM-TABLE spec. |
|
Back to top |
|
 |
CraigG Intermediate
Joined: 02 May 2007 Posts: 202 Topics: 0 Location: Viginia, USA
|
Posted: Wed Aug 06, 2008 11:56 am Post subject: |
|
|
Are you expecting an answer more to your liking from this site. |
|
Back to top |
|
 |
jsharon1248 Intermediate
Joined: 08 Aug 2007 Posts: 291 Topics: 2 Location: Chicago
|
Posted: Wed Aug 06, 2008 11:59 am Post subject: |
|
|
CraigG
How did my response compare to the other site? Better or worse? |
|
Back to top |
|
 |
|
|