Click here to Skip to main content
15,901,205 members
Home / Discussions / Database
   

Database

 
GeneralRe: This May Be A Stupid Question But... Pin
Roger Wright2-Aug-10 17:18
professionalRoger Wright2-Aug-10 17:18 
GeneralRe: This May Be A Stupid Question But... Pin
Roger Wright3-Aug-10 20:16
professionalRoger Wright3-Aug-10 20:16 
Questionquery takes long time! Pin
Jassim Rahma30-Jul-10 4:34
Jassim Rahma30-Jul-10 4:34 
AnswerRe: query takes long time! Pin
dan!sh 30-Jul-10 4:49
professional dan!sh 30-Jul-10 4:49 
AnswerRe: query takes long time! Pin
Eddy Vluggen30-Jul-10 5:07
professionalEddy Vluggen30-Jul-10 5:07 
GeneralRe: query takes long time! Pin
Jassim Rahma30-Jul-10 5:43
Jassim Rahma30-Jul-10 5:43 
GeneralRe: query takes long time! Pin
Eddy Vluggen30-Jul-10 6:04
professionalEddy Vluggen30-Jul-10 6:04 
GeneralRe: query takes long time! Pin
David Skelly30-Jul-10 6:12
David Skelly30-Jul-10 6:12 
Why not just do this?

WHERE icd_code LIKE 'R%'


Isn't that the same thing as LEFT(icd_code, 1)? I don't know whether the query optimiser is smart enough to reduce the two queries down to the same thing or not. Using LIKE would definitely result in the optimiser considering using an index on icd_code if there is one. I don't know whether the query optimiser considers using an index for LEFT or not.
GeneralRe: query takes long time! Pin
Eddy Vluggen30-Jul-10 6:29
professionalEddy Vluggen30-Jul-10 6:29 
AnswerRe: query takes long time! Pin
PIEBALDconsult30-Jul-10 19:13
mvePIEBALDconsult30-Jul-10 19:13 
QuestionRetrieve the value from Dynamic Sql Pin
.NET- India 30-Jul-10 2:36
.NET- India 30-Jul-10 2:36 
AnswerRe: Retrieve the value from Dynamic Sql Pin
dan!sh 30-Jul-10 3:12
professional dan!sh 30-Jul-10 3:12 
QuestionSelecting Recent row Pin
T.RATHA KRISHNAN30-Jul-10 1:41
T.RATHA KRISHNAN30-Jul-10 1:41 
AnswerRe: Selecting Recent row Pin
R. Giskard Reventlov30-Jul-10 1:43
R. Giskard Reventlov30-Jul-10 1:43 
GeneralRe: Selecting Recent row Pin
T.RATHA KRISHNAN30-Jul-10 1:52
T.RATHA KRISHNAN30-Jul-10 1:52 
GeneralRe: Selecting Recent row Pin
R. Giskard Reventlov30-Jul-10 1:55
R. Giskard Reventlov30-Jul-10 1:55 
AnswerRe: Selecting Recent row Pin
Chris Meech30-Jul-10 1:51
Chris Meech30-Jul-10 1:51 
AnswerRe: Selecting Recent row Pin
Roger Wright30-Jul-10 20:21
professionalRoger Wright30-Jul-10 20:21 
QuestionMaking with values of two rows, two entries in a new table. Pin
neus8330-Jul-10 1:17
neus8330-Jul-10 1:17 
AnswerRe: Making with values of two rows, two entries in a new table. Pin
Corporal Agarn30-Jul-10 6:09
professionalCorporal Agarn30-Jul-10 6:09 
AnswerRe: Making with values of two rows, two entries in a new table. Pin
Jörgen Andersson30-Jul-10 6:11
professionalJörgen Andersson30-Jul-10 6:11 
GeneralRe: Making with values of two rows, two entries in a new table. Pin
neus832-Aug-10 5:56
neus832-Aug-10 5:56 
QuestionVariable value in SQL Query Pin
T.RATHA KRISHNAN29-Jul-10 23:51
T.RATHA KRISHNAN29-Jul-10 23:51 
AnswerRe: Variable value in SQL Query Pin
J4amieC30-Jul-10 0:04
J4amieC30-Jul-10 0:04 
GeneralRe: Variable value in SQL Query Pin
T.RATHA KRISHNAN30-Jul-10 0:25
T.RATHA KRISHNAN30-Jul-10 0:25 

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.