Click here to Skip to main content
15,888,527 members
Home / Discussions / Database
   

Database

 
AnswerRe: how to comlex databinding with access database Pin
Mycroft Holmes30-Jan-13 11:49
professionalMycroft Holmes30-Jan-13 11:49 
GeneralRe: how to comlex databinding with access database Pin
Achilles8430-Jan-13 20:49
Achilles8430-Jan-13 20:49 
GeneralRe: how to comlex databinding with access database Pin
Mycroft Holmes30-Jan-13 21:06
professionalMycroft Holmes30-Jan-13 21:06 
GeneralRe: how to comlex databinding with access database Pin
Achilles841-Feb-13 0:25
Achilles841-Feb-13 0:25 
QuestionEnd Case in a Variable Pin
berba30-Jan-13 8:47
berba30-Jan-13 8:47 
AnswerRe: End Case in a Variable Pin
Mycroft Holmes30-Jan-13 11:46
professionalMycroft Holmes30-Jan-13 11:46 
GeneralRe: End Case in a Variable Pin
berba30-Jan-13 18:02
berba30-Jan-13 18:02 
GeneralRe: End Case in a Variable Pin
Mycroft Holmes30-Jan-13 20:57
professionalMycroft Holmes30-Jan-13 20:57 
You are combining a select query and an assignment query, not allowed!

You need to nest your case statements as you need to test the case for each record, variable assignment is a once only operation (using a cursor spit would allow you to do the record by record processing).

This example test the value of flag but note that it must know what to expect in the nested case, your ... cannot be a random date, it must be a testable value!

SQL
SELECT Records, 
	CASE Flag WHEN 'FX' THEN CASE Records WHEN 0 THEN 'Failed' ELSE 'Ok' END
		WHEN 'MM' THEN CASE Records WHEN 0 THEN 'Failed' ELSE 'Ok' END 
		WHEN 'TZ' THEN CASE Records WHEN 0 THEN 'Failed' ELSE 'Ok' END END 
FROM ProcessLog PL

Never underestimate the power of human stupidity
RAH

QuestionWhat happens with auto-incremented value on rollback? Pin
piticcotoc29-Jan-13 23:27
piticcotoc29-Jan-13 23:27 
AnswerRe: What happens with auto-incremented value on rollback? Pin
Jörgen Andersson30-Jan-13 1:04
professionalJörgen Andersson30-Jan-13 1:04 
GeneralRe: What happens with auto-incremented value on rollback? Pin
piticcotoc30-Jan-13 3:02
piticcotoc30-Jan-13 3:02 
GeneralRe: What happens with auto-incremented value on rollback? Pin
R. Giskard Reventlov30-Jan-13 5:33
R. Giskard Reventlov30-Jan-13 5:33 
GeneralRe: What happens with auto-incremented value on rollback? Pin
piticcotoc30-Jan-13 5:43
piticcotoc30-Jan-13 5:43 
GeneralRe: What happens with auto-incremented value on rollback? Pin
Simon_Whale30-Jan-13 5:49
Simon_Whale30-Jan-13 5:49 
GeneralRe: What happens with auto-incremented value on rollback? Pin
R. Giskard Reventlov30-Jan-13 5:55
R. Giskard Reventlov30-Jan-13 5:55 
GeneralRe: What happens with auto-incremented value on rollback? Pin
piticcotoc30-Jan-13 21:43
piticcotoc30-Jan-13 21:43 
AnswerRe: What happens with auto-incremented value on rollback? Pin
Eddy Vluggen30-Jan-13 22:50
professionalEddy Vluggen30-Jan-13 22:50 
GeneralRe: What happens with auto-incremented value on rollback? Pin
piticcotoc30-Jan-13 23:17
piticcotoc30-Jan-13 23:17 
NewsRe: What happens with auto-incremented value on rollback? Pin
Eddy Vluggen31-Jan-13 3:16
professionalEddy Vluggen31-Jan-13 3:16 
GeneralRe: What happens with auto-incremented value on rollback? Pin
R. Giskard Reventlov31-Jan-13 5:18
R. Giskard Reventlov31-Jan-13 5:18 
GeneralRe: What happens with auto-incremented value on rollback? Pin
PIEBALDconsult30-Jan-13 10:29
mvePIEBALDconsult30-Jan-13 10:29 
GeneralRe: What happens with auto-incremented value on rollback? Pin
piticcotoc30-Jan-13 22:09
piticcotoc30-Jan-13 22:09 
GeneralRe: What happens with auto-incremented value on rollback? Pin
pmpdesign30-Jan-13 19:46
pmpdesign30-Jan-13 19:46 
GeneralRe: What happens with auto-incremented value on rollback? Pin
Jörgen Andersson30-Jan-13 7:37
professionalJörgen Andersson30-Jan-13 7:37 
AnswerRe: What happens with auto-incremented value on rollback? Pin
Shameel30-Jan-13 3:15
professionalShameel30-Jan-13 3:15 

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.