dbTalk Databases Forums  

same reseult set with less column

comp.databases.oracle.misc comp.databases.oracle.misc


Discuss same reseult set with less column in the comp.databases.oracle.misc forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
dt1649651@yahoo.com
 
Posts: n/a

Default same reseult set with less column - 09-26-2008 , 08:48 AM






I am trying to get the same resultset with an original query but one
last column less.

For example the original query is "select x,y,z from table1 where
condition1".

How can I get the resultset of "select x,y from table1 where
condition1" without knowing in advance the original query.

Thanks for your help.

DT


Reply With Quote
  #2  
Old   
Shakespeare
 
Posts: n/a

Default Re: same reseult set with less column - 09-26-2008 , 09:06 AM







<dt1649651 (AT) yahoo (DOT) com> schreef in bericht
news:2cd18536-4ae7-4b4d-ad4e-e10bd3f8876e (AT) 25g2000hsx (DOT) googlegroups.com...
Quote:
I am trying to get the same resultset with an original query but one
last column less.

For example the original query is "select x,y,z from table1 where
condition1".

How can I get the resultset of "select x,y from table1 where
condition1" without knowing in advance the original query.

Thanks for your help.

DT

If you don't have any access to the original query, you could try to trace
your session and see what it does, or investigate the SGA

Shakespeare




Reply With Quote
  #3  
Old   
Shakespeare
 
Posts: n/a

Default Re: same reseult set with less column - 09-26-2008 , 09:06 AM




<dt1649651 (AT) yahoo (DOT) com> schreef in bericht
news:2cd18536-4ae7-4b4d-ad4e-e10bd3f8876e (AT) 25g2000hsx (DOT) googlegroups.com...
Quote:
I am trying to get the same resultset with an original query but one
last column less.

For example the original query is "select x,y,z from table1 where
condition1".

How can I get the resultset of "select x,y from table1 where
condition1" without knowing in advance the original query.

Thanks for your help.

DT

If you don't have any access to the original query, you could try to trace
your session and see what it does, or investigate the SGA

Shakespeare




Reply With Quote
  #4  
Old   
Shakespeare
 
Posts: n/a

Default Re: same reseult set with less column - 09-26-2008 , 09:06 AM




<dt1649651 (AT) yahoo (DOT) com> schreef in bericht
news:2cd18536-4ae7-4b4d-ad4e-e10bd3f8876e (AT) 25g2000hsx (DOT) googlegroups.com...
Quote:
I am trying to get the same resultset with an original query but one
last column less.

For example the original query is "select x,y,z from table1 where
condition1".

How can I get the resultset of "select x,y from table1 where
condition1" without knowing in advance the original query.

Thanks for your help.

DT

If you don't have any access to the original query, you could try to trace
your session and see what it does, or investigate the SGA

Shakespeare




Reply With Quote
  #5  
Old   
Shakespeare
 
Posts: n/a

Default Re: same reseult set with less column - 09-26-2008 , 09:06 AM




<dt1649651 (AT) yahoo (DOT) com> schreef in bericht
news:2cd18536-4ae7-4b4d-ad4e-e10bd3f8876e (AT) 25g2000hsx (DOT) googlegroups.com...
Quote:
I am trying to get the same resultset with an original query but one
last column less.

For example the original query is "select x,y,z from table1 where
condition1".

How can I get the resultset of "select x,y from table1 where
condition1" without knowing in advance the original query.

Thanks for your help.

DT

If you don't have any access to the original query, you could try to trace
your session and see what it does, or investigate the SGA

Shakespeare




Reply With Quote
  #6  
Old   
Ed Prochak
 
Posts: n/a

Default Re: same reseult set with less column - 09-26-2008 , 09:09 AM



On Sep 26, 8:48*am, "dt1649... (AT) yahoo (DOT) com" <dt1649... (AT) yahoo (DOT) com> wrote:
Quote:
I am trying to get the same resultset *with an original query but one
last column less.

For example the original query is "select x,y,z from table1 where
condition1".

How can I get the resultset of "select x,y from table1 where
condition1" without knowing in advance the original query.

Thanks for your help.

DT
What kind of business requirement drives this request?

Given: you do not know the original query until run time.
Implies: The original query is passed to you as text.
Therefore:
The only possible solution I can see is to parse the text.

Ed


Reply With Quote
  #7  
Old   
Ed Prochak
 
Posts: n/a

Default Re: same reseult set with less column - 09-26-2008 , 09:09 AM



On Sep 26, 8:48*am, "dt1649... (AT) yahoo (DOT) com" <dt1649... (AT) yahoo (DOT) com> wrote:
Quote:
I am trying to get the same resultset *with an original query but one
last column less.

For example the original query is "select x,y,z from table1 where
condition1".

How can I get the resultset of "select x,y from table1 where
condition1" without knowing in advance the original query.

Thanks for your help.

DT
What kind of business requirement drives this request?

Given: you do not know the original query until run time.
Implies: The original query is passed to you as text.
Therefore:
The only possible solution I can see is to parse the text.

Ed


Reply With Quote
  #8  
Old   
Ed Prochak
 
Posts: n/a

Default Re: same reseult set with less column - 09-26-2008 , 09:09 AM



On Sep 26, 8:48*am, "dt1649... (AT) yahoo (DOT) com" <dt1649... (AT) yahoo (DOT) com> wrote:
Quote:
I am trying to get the same resultset *with an original query but one
last column less.

For example the original query is "select x,y,z from table1 where
condition1".

How can I get the resultset of "select x,y from table1 where
condition1" without knowing in advance the original query.

Thanks for your help.

DT
What kind of business requirement drives this request?

Given: you do not know the original query until run time.
Implies: The original query is passed to you as text.
Therefore:
The only possible solution I can see is to parse the text.

Ed


Reply With Quote
  #9  
Old   
Ed Prochak
 
Posts: n/a

Default Re: same reseult set with less column - 09-26-2008 , 09:09 AM



On Sep 26, 8:48*am, "dt1649... (AT) yahoo (DOT) com" <dt1649... (AT) yahoo (DOT) com> wrote:
Quote:
I am trying to get the same resultset *with an original query but one
last column less.

For example the original query is "select x,y,z from table1 where
condition1".

How can I get the resultset of "select x,y from table1 where
condition1" without knowing in advance the original query.

Thanks for your help.

DT
What kind of business requirement drives this request?

Given: you do not know the original query until run time.
Implies: The original query is passed to you as text.
Therefore:
The only possible solution I can see is to parse the text.

Ed


Reply With Quote
  #10  
Old   
gazzag
 
Posts: n/a

Default Re: same reseult set with less column - 09-26-2008 , 10:33 AM



On 26 Sep, 15:09, Ed Prochak <edproc... (AT) gmail (DOT) com> wrote:
Quote:
What kind of business requirement drives this request?

Given: you do not know the original query until run time.
Implies: The original query is passed to you as text.
Therefore:
The only possible solution I can see is to parse the text.

* Ed
I think it smacks of application-generated dynamic SQL. *shudders*

-g


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.