Click here to Skip to main content
15,909,091 members
Home / Discussions / Database
   

Database

 
AnswerRe: alternative to rewire CASE WHEN in query Pin
Herman<T>.Instance26-Jul-10 3:55
Herman<T>.Instance26-Jul-10 3:55 
AnswerRe: alternative to rewire CASE WHEN in query Pin
scottgp26-Jul-10 6:06
professionalscottgp26-Jul-10 6:06 
GeneralRe: alternative to rewire CASE WHEN in query Pin
prachidalwadi26-Jul-10 17:12
prachidalwadi26-Jul-10 17:12 
GeneralRe: alternative to rewire CASE WHEN in query Pin
scottgp27-Jul-10 1:40
professionalscottgp27-Jul-10 1:40 
GeneralRe: alternative to rewire CASE WHEN in query Pin
prachidalwadi3-Aug-10 19:36
prachidalwadi3-Aug-10 19:36 
GeneralRe: alternative to rewire CASE WHEN in query Pin
Herman<T>.Instance28-Jul-10 3:38
Herman<T>.Instance28-Jul-10 3:38 
AnswerRe: alternative to rewire CASE WHEN in query Pin
PIEBALDconsult26-Jul-10 8:05
mvePIEBALDconsult26-Jul-10 8:05 
AnswerRe: alternative to rewire CASE WHEN in query Pin
Jörgen Andersson27-Jul-10 21:31
professionalJörgen Andersson27-Jul-10 21:31 
I suppose that the nulls are there because of the left joins, you refer to in your answer to Scott, and therefore is nothing you can do anything about.
But how about the zero length strings, do they serve a purpose?
If not, you can add a check to the columns that disallows zero length strings at inserts and then you can remove that check in the query, which should speed it up a bit.

Alternatively swap to Oracle where you can use a Function Based Index which would speed up things immensely.
Like: Create index PM_PRODUCTCODE_EXIST_IDX ON PRODUCT_MASTER(Product_Kid,CASE WHEN (Product_Code = '' OR Product_Code IS NULL) THEN '-' ELSE Product_Master.Product_Code END);

"When did ignorance become a point of view" - Dilbert

QuestionMessage Removed Pin
25-Jul-10 1:24
bapu288925-Jul-10 1:24 
AnswerRe: SQL INSERT ISSUE Pin
Matt U.25-Jul-10 6:23
Matt U.25-Jul-10 6:23 
AnswerRe: SQL INSERT ISSUE Pin
Stoffy197225-Jul-10 7:13
Stoffy197225-Jul-10 7:13 
QuestionRe: SQL INSERT ISSUE Pin
bapu288925-Jul-10 21:15
bapu288925-Jul-10 21:15 
AnswerRe: SQL INSERT ISSUE Pin
PIEBALDconsult26-Jul-10 8:24
mvePIEBALDconsult26-Jul-10 8:24 
AnswerRe: SQL INSERT ISSUE Pin
Stoffy197226-Jul-10 8:35
Stoffy197226-Jul-10 8:35 
GeneralRe: SQL INSERT ISSUE Pin
bapu288926-Jul-10 21:23
bapu288926-Jul-10 21:23 
AnswerHow to ask a question Pin
Luc Pattyn26-Jul-10 23:34
sitebuilderLuc Pattyn26-Jul-10 23:34 
QuestionInstall SQL 2008 r2 express with my application Pin
bonzaiholding24-Jul-10 22:29
bonzaiholding24-Jul-10 22:29 
AnswerRe: Install SQL 2008 r2 express with my application Repost Pin
Richard MacCutchan25-Jul-10 1:40
mveRichard MacCutchan25-Jul-10 1:40 
Answercross-post Pin
Luc Pattyn25-Jul-10 2:18
sitebuilderLuc Pattyn25-Jul-10 2:18 
Question[MS SQL SERVER] Create constraints in a cyclic relations Pin
Lutosław23-Jul-10 23:32
Lutosław23-Jul-10 23:32 
Questionanother query Pin
reza assar23-Jul-10 21:40
reza assar23-Jul-10 21:40 
AnswerRe: another query Pin
Goutam Patra23-Jul-10 22:58
professionalGoutam Patra23-Jul-10 22:58 
GeneralRe: another query Pin
reza assar24-Jul-10 1:03
reza assar24-Jul-10 1:03 
Questionquery Pin
reza assar23-Jul-10 21:32
reza assar23-Jul-10 21:32 
AnswerRe: query Pin
Goutam Patra23-Jul-10 22:57
professionalGoutam Patra23-Jul-10 22:57 

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.