Click here to Skip to main content
15,904,153 members
Home / Discussions / Database
   

Database

 
AnswerRe: Database design question Pin
Eddy Vluggen29-Mar-10 7:01
professionalEddy Vluggen29-Mar-10 7:01 
AnswerRe: Database design question Pin
programmervb.netc++29-Mar-10 8:53
programmervb.netc++29-Mar-10 8:53 
AnswerRe: Database design question Pin
PIEBALDconsult29-Mar-10 18:12
mvePIEBALDconsult29-Mar-10 18:12 
GeneralRe: Database design question Pin
Alivemau530-Mar-10 10:44
Alivemau530-Mar-10 10:44 
GeneralRe: Database design question Pin
PIEBALDconsult30-Mar-10 12:09
mvePIEBALDconsult30-Mar-10 12:09 
Questionhow to check this date is 6 months or 1 year for given condition Pin
developerit29-Mar-10 3:55
developerit29-Mar-10 3:55 
AnswerRe: how to check this date is 6 months or 1 year for given condition Pin
Eddy Vluggen29-Mar-10 7:08
professionalEddy Vluggen29-Mar-10 7:08 
QuestionSQL Query Pin
dabuskol29-Mar-10 2:10
dabuskol29-Mar-10 2:10 
Most of the time there are two/three record in the table.
How can you do it in SQL

IF Status = 1 or status = 0 THEN Desc = "In Progress"
TabID Status

T1 1
T1 0

If Status = 1 or status = 1 THEN Desc = "Ok"
TabID Status

T1 1
T1 1

If status = 0 or status = 0 THEN Desc = "failed"
TabID Status
T1 0
T1 0

Select should give me 1 row only

My example is not correct, kindly enhance.
select tabid, GroupDesc = case when groupstatus = '1' or groupstatus = '0'  then 'In Progress' 
                   else 'Ok' end
from tab1
where tabid = T1

Dabsukol

AnswerRe: SQL Query Pin
Michael J. Eber29-Mar-10 11:26
Michael J. Eber29-Mar-10 11:26 
QuestionIs this query bad.....? Pin
Hum Dum29-Mar-10 1:18
Hum Dum29-Mar-10 1:18 
AnswerRe: Is this query bad.....? Pin
PSK_29-Mar-10 1:30
PSK_29-Mar-10 1:30 
GeneralRe: Is this query bad.....? Pin
programmervb.netc++29-Mar-10 9:24
programmervb.netc++29-Mar-10 9:24 
GeneralRe: Is this query bad.....? Pin
PSK_29-Mar-10 17:26
PSK_29-Mar-10 17:26 
AnswerRe: Is this query bad.....? Pin
Don Burton29-Mar-10 9:25
Don Burton29-Mar-10 9:25 
QuestionTables in database. Pin
MathewPV29-Mar-10 0:57
MathewPV29-Mar-10 0:57 
AnswerRe: Tables in database. Pin
R. Giskard Reventlov29-Mar-10 1:56
R. Giskard Reventlov29-Mar-10 1:56 
AnswerRe: Tables in database. Pin
programmervb.netc++29-Mar-10 9:25
programmervb.netc++29-Mar-10 9:25 
QuestionHelp with Data Type mismatch in criteria expression Pin
T210228-Mar-10 15:42
T210228-Mar-10 15:42 
AnswerRe: Help with Data Type mismatch in criteria expression Pin
Luc Pattyn28-Mar-10 16:44
sitebuilderLuc Pattyn28-Mar-10 16:44 
GeneralRe: Help with Data Type mismatch in criteria expression Pin
T210228-Mar-10 16:47
T210228-Mar-10 16:47 
GeneralRe: Help with Data Type mismatch in criteria expression Pin
Luc Pattyn28-Mar-10 16:57
sitebuilderLuc Pattyn28-Mar-10 16:57 
GeneralRe: Help with Data Type mismatch in criteria expression Pin
T210228-Mar-10 17:04
T210228-Mar-10 17:04 
AnswerRe: Help with Data Type mismatch in criteria expression Pin
Mycroft Holmes28-Mar-10 19:32
professionalMycroft Holmes28-Mar-10 19:32 
GeneralRe: Help with Data Type mismatch in criteria expression [modified] Pin
T210228-Mar-10 19:36
T210228-Mar-10 19:36 
GeneralRe: Help with Data Type mismatch in criteria expression Pin
Mycroft Holmes28-Mar-10 19:50
professionalMycroft Holmes28-Mar-10 19:50 

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.