Click here to Skip to main content
15,891,762 members
Home / Discussions / Database
   

Database

 
AnswerRe: Right Outer Joins and performance Pin
Jörgen Andersson10-Dec-08 8:35
professionalJörgen Andersson10-Dec-08 8:35 
AnswerRe: Right Outer Joins and performance Pin
Wendelius10-Dec-08 8:54
mentorWendelius10-Dec-08 8:54 
GeneralRe: Right Outer Joins and performance [modified] Pin
dl4gbe10-Dec-08 16:36
dl4gbe10-Dec-08 16:36 
GeneralRe: Right Outer Joins and performance Pin
Wendelius11-Dec-08 5:41
mentorWendelius11-Dec-08 5:41 
QuestionUse a calculated value in multiple places in a query Pin
totig10-Dec-08 5:30
totig10-Dec-08 5:30 
AnswerRe: Use a calculated value in multiple places in a query Pin
Wendelius10-Dec-08 6:33
mentorWendelius10-Dec-08 6:33 
GeneralRe: Use a calculated value in multiple places in a query Pin
totig10-Dec-08 6:35
totig10-Dec-08 6:35 
GeneralRe: Use a calculated value in multiple places in a query Pin
Wendelius10-Dec-08 9:34
mentorWendelius10-Dec-08 9:34 
toticow wrote:
I was just kind of hoping there was a way to store the value in a temp variable on a row by row basis


That won't be possible (and wouldn't be efficient) since sql is set based language. What you were hoping for would be record based and this would be close to cursor handling (and of course could be implemented in an procedure using cursors). But you don't want to use cursors since (as Mycroft in this forum said) they are evil Smile | :)

Also have a look at other set based variations Ben Fair posted.

toticow wrote:
so thanks


You're welcome.

The need to optimize rises from a bad design.My articles[^]

GeneralRe: Use a calculated value in multiple places in a query Pin
Ben Fair10-Dec-08 9:17
Ben Fair10-Dec-08 9:17 
GeneralRe: Use a calculated value in multiple places in a query Pin
Wendelius10-Dec-08 9:26
mentorWendelius10-Dec-08 9:26 
GeneralRe: Use a calculated value in multiple places in a query Pin
Ben Fair10-Dec-08 9:41
Ben Fair10-Dec-08 9:41 
GeneralRe: Use a calculated value in multiple places in a query Pin
PIEBALDconsult10-Dec-08 15:49
mvePIEBALDconsult10-Dec-08 15:49 
GeneralRe: Use a calculated value in multiple places in a query Pin
Wendelius10-Dec-08 18:16
mentorWendelius10-Dec-08 18:16 
QuestionLimits in list length for IN clause Pin
Jörgen Andersson9-Dec-08 22:54
professionalJörgen Andersson9-Dec-08 22:54 
AnswerRe: Limits in list length for IN clause Pin
Wendelius10-Dec-08 4:27
mentorWendelius10-Dec-08 4:27 
GeneralRe: Limits in list length for IN clause Pin
Jörgen Andersson10-Dec-08 5:04
professionalJörgen Andersson10-Dec-08 5:04 
GeneralRe: Limits in list length for IN clause Pin
Wendelius10-Dec-08 5:30
mentorWendelius10-Dec-08 5:30 
GeneralRe: Limits in list length for IN clause Pin
Jörgen Andersson10-Dec-08 7:39
professionalJörgen Andersson10-Dec-08 7:39 
GeneralRe: Limits in list length for IN clause Pin
Wendelius10-Dec-08 9:22
mentorWendelius10-Dec-08 9:22 
GeneralRe: Limits in list length for IN clause Pin
Jörgen Andersson10-Dec-08 10:08
professionalJörgen Andersson10-Dec-08 10:08 
QuestionUpdate trigger for multiple rows Pin
amit sahu209-Dec-08 18:18
amit sahu209-Dec-08 18:18 
AnswerRe: Update trigger for multiple rows Pin
Howard Richards9-Dec-08 22:54
Howard Richards9-Dec-08 22:54 
GeneralRe: Update trigger for multiple rows Pin
amit sahu209-Dec-08 23:17
amit sahu209-Dec-08 23:17 
QuestionSQL Server 2005:Problem with full-text indexing Pin
rahulae9-Dec-08 13:37
rahulae9-Dec-08 13:37 
AnswerRe: SQL Server 2005:Problem with full-text indexing Pin
Howard Richards9-Dec-08 23:03
Howard Richards9-Dec-08 23:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.