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

Database

 
AnswerRe: Pivot table Pin
Mycroft Holmes26-Apr-10 14:40
professionalMycroft Holmes26-Apr-10 14:40 
GeneralRe: Pivot table Pin
amina8927-Apr-10 8:45
amina8927-Apr-10 8:45 
GeneralRe: Pivot table Pin
Mycroft Holmes27-Apr-10 12:41
professionalMycroft Holmes27-Apr-10 12:41 
QuestionQuerying on null datetime Pin
www.Developerof.NET26-Apr-10 3:44
www.Developerof.NET26-Apr-10 3:44 
AnswerRe: Querying on null datetime Pin
loyal ginger26-Apr-10 3:54
loyal ginger26-Apr-10 3:54 
AnswerRe: Querying on null datetime Pin
Luc Pattyn26-Apr-10 4:08
sitebuilderLuc Pattyn26-Apr-10 4:08 
AnswerRe: Querying on null datetime Pin
Luc Pattyn26-Apr-10 4:15
sitebuilderLuc Pattyn26-Apr-10 4:15 
AnswerRe: Querying on null datetime Pin
Peace ON26-Apr-10 4:17
Peace ON26-Apr-10 4:17 
There are two things you can do in this case.

1. Either you can check the null value of @frmdate and @todate at programming level and then
fire queries accordingly.

2. You can write the same condition in Stored procedure and fire query conditionally.

But, by using single query it is not possible.
Because when the @frmdate and @todate is null it will always consider those
fields with value and ignore rows having null in OrderDate column, there are
reason for such behavior.

1. Either between is evaluating while there is value in OrderDate column and
ignoring row while it is null.

Hope I will clear your problem.
Jinal Desai

AnswerRe: Querying on null datetime Pin
PIEBALDconsult26-Apr-10 4:24
mvePIEBALDconsult26-Apr-10 4:24 
GeneralRe: Querying on null datetime Pin
www.Developerof.NET26-Apr-10 20:41
www.Developerof.NET26-Apr-10 20:41 
AnswerRe: Querying on null datetime Pin
Peace ON26-Apr-10 4:26
Peace ON26-Apr-10 4:26 
QuestionDatabase Mail AS Exchange? Pin
Jassim Rahma24-Apr-10 23:08
Jassim Rahma24-Apr-10 23:08 
AnswerRe: Database Mail AS Exchange? Pin
Mycroft Holmes24-Apr-10 23:40
professionalMycroft Holmes24-Apr-10 23:40 
AnswerRe: Database Mail AS Exchange? Pin
Md. Marufuzzaman24-Apr-10 23:56
professionalMd. Marufuzzaman24-Apr-10 23:56 
QuestionCan't Query with = ISNULL? Pin
#realJSOP23-Apr-10 5:16
professional#realJSOP23-Apr-10 5:16 
AnswerRe: Can't Query with = ISNULL? Pin
Simon_Whale23-Apr-10 5:26
Simon_Whale23-Apr-10 5:26 
GeneralRe: Can't Query with = ISNULL? Pin
Luc Pattyn23-Apr-10 5:28
sitebuilderLuc Pattyn23-Apr-10 5:28 
GeneralRe: Can't Query with = ISNULL? Pin
Simon_Whale23-Apr-10 5:30
Simon_Whale23-Apr-10 5:30 
GeneralRe: Can't Query with = ISNULL? Pin
Md. Marufuzzaman24-Apr-10 1:52
professionalMd. Marufuzzaman24-Apr-10 1:52 
GeneralRe: Can't Query with = ISNULL? Pin
Mycroft Holmes24-Apr-10 13:16
professionalMycroft Holmes24-Apr-10 13:16 
GeneralRe: Can't Query with = ISNULL? Pin
Md. Marufuzzaman24-Apr-10 18:40
professionalMd. Marufuzzaman24-Apr-10 18:40 
AnswerRe: Can't Query with = ISNULL? Pin
Luc Pattyn23-Apr-10 5:27
sitebuilderLuc Pattyn23-Apr-10 5:27 
GeneralRe: Can't Query with = ISNULL? Pin
Corporal Agarn23-Apr-10 8:55
professionalCorporal Agarn23-Apr-10 8:55 
QuestionADO.NET almost nullable column Pin
Yoyosch23-Apr-10 4:36
Yoyosch23-Apr-10 4:36 
AnswerRe: ADO.NET almost nullable column PinPopular
J4amieC23-Apr-10 4:43
J4amieC23-Apr-10 4:43 

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.