Click here to Skip to main content
15,910,123 members
Home / Discussions / Database
   

Database

 
Questionhow to search amharic unicode data from sql server? Pin
abiniyam12-Feb-09 2:26
abiniyam12-Feb-09 2:26 
AnswerRe: how to search amharic unicode data from sql server? Pin
Wendelius12-Feb-09 3:03
mentorWendelius12-Feb-09 3:03 
QuestionCan i insert "Dec-08" in Sql server 2005 database table column having Datatype "DateTime" Pin
Dattatraya K12-Feb-09 2:09
Dattatraya K12-Feb-09 2:09 
AnswerRe: Can i insert "Dec-08" in Sql server 2005 database table column having Datatype "DateTime" Pin
Wendelius12-Feb-09 3:00
mentorWendelius12-Feb-09 3:00 
GeneralRe: Can i insert "Dec-08" in Sql server 2005 database table column having Datatype "DateTime" Pin
Dattatraya K12-Feb-09 3:05
Dattatraya K12-Feb-09 3:05 
GeneralRe: Can i insert "Dec-08" in Sql server 2005 database table column having Datatype "DateTime" Pin
Wendelius12-Feb-09 4:07
mentorWendelius12-Feb-09 4:07 
QuestionHelp with a very complex query Pin
www.Developerof.NET12-Feb-09 0:54
www.Developerof.NET12-Feb-09 0:54 
AnswerRe: Help with a very complex query Pin
Wendelius12-Feb-09 4:28
mentorWendelius12-Feb-09 4:28 
It's quite hard to say the exact solution with such small amount of data, but could you simply add the conditions to the inline view and use case to differentiate good, expired and damaged amounts. If I understood the idea correctly you would use double condition in case. Something like:
WHEN RECON_TYPE = 'CR' THEN ...
...
WHEN RECON_TYPE = 'DR' AND RECON_CODE NOT IN (8000, 9000) THEN ...
...
WHEN RECON_TYPE = 'DR' AND RECON_CODE = 8000 THEN ...
...
WHEN RECON_TYPE = 'DR' AND RECON_CODE = 9000 THEN ...
...

Also if you have the possibility to re-check the E/R-model, I think there would be easier ways to handle the data than how it's currently done.

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

QuestionAdd 100 in null Pin
.NET- India 11-Feb-09 21:59
.NET- India 11-Feb-09 21:59 
AnswerRe: Add 100 in null Pin
Wendelius11-Feb-09 22:22
mentorWendelius11-Feb-09 22:22 
AnswerRe: Add 100 in null Pin
Rob Philpott11-Feb-09 22:22
Rob Philpott11-Feb-09 22:22 
QuestionSql Reporting services Pin
member2711-Feb-09 20:54
member2711-Feb-09 20:54 
AnswerRe: Sql Reporting services Pin
Wendelius11-Feb-09 20:59
mentorWendelius11-Feb-09 20:59 
GeneralRe: Sql Reporting services Pin
member2712-Feb-09 0:44
member2712-Feb-09 0:44 
GeneralRe: Sql Reporting services Pin
Wendelius12-Feb-09 4:53
mentorWendelius12-Feb-09 4:53 
QuestionRegarding StoredProcedure Pin
chinni111-Feb-09 19:33
chinni111-Feb-09 19:33 
AnswerRe: Regarding StoredProcedure Pin
Wendelius11-Feb-09 20:00
mentorWendelius11-Feb-09 20:00 
QuestionSQL server 2008 Pin
NidhiKanu11-Feb-09 19:28
professionalNidhiKanu11-Feb-09 19:28 
AnswerRe: SQL server 2008 Pin
Wendelius11-Feb-09 19:58
mentorWendelius11-Feb-09 19:58 
GeneralRe: SQL server 2008 Pin
NidhiKanu11-Feb-09 20:06
professionalNidhiKanu11-Feb-09 20:06 
GeneralRe: SQL server 2008 Pin
Wendelius11-Feb-09 20:12
mentorWendelius11-Feb-09 20:12 
GeneralRe: SQL server 2008 Pin
NidhiKanu11-Feb-09 20:19
professionalNidhiKanu11-Feb-09 20:19 
GeneralRe: SQL server 2008 Pin
Wendelius11-Feb-09 20:37
mentorWendelius11-Feb-09 20:37 
QuestionMSSQL how do I get the schema setup Pin
alex.barylski11-Feb-09 14:26
alex.barylski11-Feb-09 14:26 
GeneralRe: MSSQL how do I get the schema setup Pin
Luc Pattyn11-Feb-09 14:46
sitebuilderLuc Pattyn11-Feb-09 14:46 

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.