Click here to Skip to main content
15,890,741 members
Home / Discussions / Database
   

Database

 
AnswerRe: AnsiNulls and QuatedIdentifiers default values [RESOLVED] Pin
eli150219795-Nov-12 22:19
eli150219795-Nov-12 22:19 
Questionexporting Table to Excel file by TSQL Problem Pin
mhd.sbt4-Nov-12 20:28
mhd.sbt4-Nov-12 20:28 
AnswerRe: exporting Table to Excel file by TSQL Problem Pin
Eddy Vluggen4-Nov-12 23:48
professionalEddy Vluggen4-Nov-12 23:48 
GeneralRe: exporting Table to Excel file by TSQL Problem Pin
mhd.sbt5-Nov-12 19:39
mhd.sbt5-Nov-12 19:39 
GeneralRe: exporting Table to Excel file by TSQL Problem Pin
Eddy Vluggen5-Nov-12 23:41
professionalEddy Vluggen5-Nov-12 23:41 
GeneralRe: exporting Table to Excel file by TSQL Problem Pin
mhd.sbt6-Nov-12 2:13
mhd.sbt6-Nov-12 2:13 
GeneralRe: exporting Table to Excel file by TSQL Problem Pin
Eddy Vluggen6-Nov-12 2:21
professionalEddy Vluggen6-Nov-12 2:21 
QuestionCase statement in where clouse with date compare Pin
digvijay dobhal31-Oct-12 23:27
digvijay dobhal31-Oct-12 23:27 
Dear seniors,
How I can use case statement in where clause…..
Below query raised syntax error.
@MyeffectiveDate
Select * from Mytable where ((EffectiveDate <= @ MyeffectiveDate AND
CASE WHEN BillingTerminationDate = NULL THEN
(terminationDate is null or BillingTerminationDate > =@ MyeffectiveDate)
ELSE BillingTerminationDate > =@ MyeffectiveDate)

OR IsAdjustment=1)


WHAT EXACLY I WANT
If(BillingTerminationDate is null) then where clause should used ” (terminationDate is null or BillingTerminationDate > =@ MyeffectiveDate)” statement.
Other wise used
BillingTerminationDate > =@ MyeffectiveDate statement.
Waiting for your need full reply.
Thanks in advance.
AnswerRe: Case statement in where clouse with date compare Pin
Richard Deeming1-Nov-12 2:55
mveRichard Deeming1-Nov-12 2:55 
GeneralRe: Case statement in where clouse with date compare Pin
digvijay dobhal1-Nov-12 20:24
digvijay dobhal1-Nov-12 20:24 
GeneralRe: Case statement in where clouse with date compare Pin
Richard Deeming2-Nov-12 2:33
mveRichard Deeming2-Nov-12 2:33 
GeneralRe: Case statement in where clouse with date compare Pin
digvijay dobhal5-Nov-12 2:51
digvijay dobhal5-Nov-12 2:51 
AnswerRe: Case statement in where clouse with date compare Pin
Jörgen Andersson1-Nov-12 3:08
professionalJörgen Andersson1-Nov-12 3:08 
AnswerRe: Case statement in where clouse with date compare Pin
J4amieC1-Nov-12 22:58
J4amieC1-Nov-12 22:58 
QuestionQuery in SQL Server (machines that are now in specific project) Pin
Elina.Ma31-Oct-12 2:40
Elina.Ma31-Oct-12 2:40 
AnswerRe: Query in SQL Server (machines that are now in specific project) Pin
Eddy Vluggen31-Oct-12 2:52
professionalEddy Vluggen31-Oct-12 2:52 
GeneralRe: Query in SQL Server (machines that are now in specific project) Pin
Elina.Ma31-Oct-12 3:12
Elina.Ma31-Oct-12 3:12 
AnswerRe: Query in SQL Server (machines that are now in specific project) Pin
Eddy Vluggen31-Oct-12 3:19
professionalEddy Vluggen31-Oct-12 3:19 
AnswerRe: Query in SQL Server (machines that are now in specific project) PinPopular
Richard Deeming31-Oct-12 3:28
mveRichard Deeming31-Oct-12 3:28 
GeneralRe: Query in SQL Server (machines that are now in specific project) Pin
Herman<T>.Instance2-Nov-12 5:01
Herman<T>.Instance2-Nov-12 5:01 
QuestionGet databases mapped to login Pin
Danzy8331-Oct-12 1:59
Danzy8331-Oct-12 1:59 
AnswerRe: Get databases mapped to login Pin
Eddy Vluggen31-Oct-12 2:14
professionalEddy Vluggen31-Oct-12 2:14 
GeneralRe: Get databases mapped to login Pin
Danzy8331-Oct-12 2:25
Danzy8331-Oct-12 2:25 
GeneralRe: Get databases mapped to login Pin
Eddy Vluggen31-Oct-12 2:42
professionalEddy Vluggen31-Oct-12 2:42 
QuestionADO broken in W7 SP1 Pin
hairy_hats30-Oct-12 6:19
hairy_hats30-Oct-12 6:19 

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.