Click here to Skip to main content
15,887,596 members
Home / Discussions / Database
   

Database

 
AnswerRe: Login failed. The login is from an untrusted domain and cannot be used with Windows authentication. Pin
liviucatrina13-Apr-10 4:24
liviucatrina13-Apr-10 4:24 
GeneralSQL IF statement Pin
DBLearner15-Apr-09 8:31
DBLearner15-Apr-09 8:31 
GeneralRe: SQL IF statement Pin
Luc 64801115-Apr-09 8:47
Luc 64801115-Apr-09 8:47 
GeneralRe: SQL IF statement Pin
DBLearner15-Apr-09 9:00
DBLearner15-Apr-09 9:00 
GeneralRe: SQL IF statement Pin
Luc 64801115-Apr-09 9:02
Luc 64801115-Apr-09 9:02 
GeneralRe: SQL IF statement Pin
Ashfield15-Apr-09 9:47
Ashfield15-Apr-09 9:47 
GeneralRe: SQL IF statement Pin
DBLearner17-Apr-09 1:08
DBLearner17-Apr-09 1:08 
GeneralRe: SQL IF statement Pin
Ashfield17-Apr-09 1:49
Ashfield17-Apr-09 1:49 
You can use it anywhere, I'm not sure what you mean by Flat SQL - T-SQL is T-SQL, which runs trhe same in stored procs as out of them - the only execeptions are triggers and functions which are more restrictive.

select NonEoM = case <br />
when  [Receive side type] = 'floating' and [Receive Convention] = 'EOM' then 0 <br />
when  [Pay side type] = 'floating' and [Pay Convention] = 'EOM' then 0 <br />
else 1 end<br />
from table1 


Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP

QuestionAny shorter way to total this? Pin
Muammar©14-Apr-09 21:10
Muammar©14-Apr-09 21:10 
AnswerRe: Any shorter way to total this? Pin
Giorgi Dalakishvili14-Apr-09 21:30
mentorGiorgi Dalakishvili14-Apr-09 21:30 
GeneralRe: Any shorter way to total this? Pin
Muammar©15-Apr-09 0:03
Muammar©15-Apr-09 0:03 
GeneralRe: Any shorter way to total this? Pin
Eddy Vluggen15-Apr-09 0:28
professionalEddy Vluggen15-Apr-09 0:28 
GeneralRe: Any shorter way to total this? Pin
Muammar©15-Apr-09 0:44
Muammar©15-Apr-09 0:44 
AnswerRe: Any shorter way to total this? [modified] Pin
Eddy Vluggen15-Apr-09 2:50
professionalEddy Vluggen15-Apr-09 2:50 
GeneralRe: Any shorter way to total this? Pin
Muammar©15-Apr-09 10:36
Muammar©15-Apr-09 10:36 
AnswerRe: Any shorter way to total this? Pin
Mycroft Holmes15-Apr-09 1:21
professionalMycroft Holmes15-Apr-09 1:21 
GeneralRe: Any shorter way to total this? Pin
Muammar©15-Apr-09 10:30
Muammar©15-Apr-09 10:30 
AnswerRe: Any shorter way to total this? Pin
i.j.russell15-Apr-09 9:06
i.j.russell15-Apr-09 9:06 
GeneralRe: Any shorter way to total this? Pin
Muammar©15-Apr-09 10:30
Muammar©15-Apr-09 10:30 
QuestionRewrite recursive proc so we can do this in UDF instead? (and more efficient) Pin
devvvy14-Apr-09 18:02
devvvy14-Apr-09 18:02 
AnswerRe: Rewrite recursive proc so we can do this in UDF instead? (and more efficient) Pin
Ashfield14-Apr-09 21:00
Ashfield14-Apr-09 21:00 
GeneralGot recursive CTE sql but... two more questions. Pin
devvvy15-Apr-09 0:07
devvvy15-Apr-09 0:07 
GeneralRe: Got recursive CTE sql but... two more questions. Pin
Giorgi Dalakishvili15-Apr-09 1:13
mentorGiorgi Dalakishvili15-Apr-09 1:13 
GeneralRe: Got recursive CTE sql but... two more questions. Pin
i.j.russell15-Apr-09 9:10
i.j.russell15-Apr-09 9:10 
GeneralRe: Got recursive CTE sql but... two more questions. Pin
devvvy15-Apr-09 13:25
devvvy15-Apr-09 13: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.