dbTalk Databases Forums  

What happens to unused common table expressions?

comp.databases.ingres comp.databases.ingres


Discuss What happens to unused common table expressions? in the comp.databases.ingres forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Roy Hann
 
Posts: n/a

Default What happens to unused common table expressions? - 01-04-2012 , 01:14 PM






I could just try this to see, but I'm feeling lazy and someone probably
knows the answer.

If I write a query with one or more common table expressions to which I
don't actually refer in the query, do they just get pruned off or do
they get executed regardless?

--
Roy

UK Ingres User Association Conference 2012 will be on Tuesday June 19 2012.
The latest information is available from www.uk-iua.org.uk.

Reply With Quote
  #2  
Old   
Karl Schendel
 
Posts: n/a

Default Re: [Info-Ingres] What happens to unused common table expressions? - 01-04-2012 , 05:07 PM






On Jan 4, 2012, at 2:14 PM, Roy Hann wrote:

Quote:
I could just try this to see, but I'm feeling lazy and someone probably
knows the answer.

If I write a query with one or more common table expressions to which I
don't actually refer in the query, do they just get pruned off or do
they get executed regardless?
I'm guessing they get pruned off, but I'd have to try it to find out.
I'm lazy too.

I trust your holidays were merry ... ours were generally quite nice.

Karl

Reply With Quote
  #3  
Old   
Martin Bowes
 
Posts: n/a

Default Re: [Info-Ingres] What happens to unused common table expressions? - 01-05-2012 , 02:26 AM



Example query?

Marty

-----Original Message-----
From: Roy Hann [mailto:specially (AT) processed (DOT) almost.meat]
Sent: 04 January 2012 19:14
To: info-ingres (AT) kettleriverconsulting (DOT) com
Subject: [Info-Ingres] What happens to unused common table expressions?

I could just try this to see, but I'm feeling lazy and someone probably
knows the answer.

If I write a query with one or more common table expressions to which I
don't actually refer in the query, do they just get pruned off or do
they get executed regardless?

--
Roy

UK Ingres User Association Conference 2012 will be on Tuesday June 19 2012.
The latest information is available from www.uk-iua.org.uk.


_______________________________________________
Info-Ingres mailing list
Info-Ingres (AT) kettleriverconsulting (DOT) com
http://ext-cando.kettleriverconsulti...fo/info-ingres

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.