Click here to Skip to main content
16,008,719 members
Home / Discussions / Database
   

Database

 
Questionusing BETWEEN in sql2005 Pin
toink toink9-Jul-06 21:29
toink toink9-Jul-06 21:29 
I have an sql statement comparing dates in the Where clause.
This is my code:

[CODE]
CONVERT(NVARCHAR, D.Spd_deldateans, 101) between @DATE1 AND @DATE2[/CODE]

The problem with the statement, is that, it doesn't show any records when one of the parameters is blank or null. How would it be able to show records giving value only to either of the parameters?
AnswerRe: using BETWEEN in sql2005 Pin
Colin Angus Mackay9-Jul-06 23:39
Colin Angus Mackay9-Jul-06 23:39 
Questionhow to use now() function in the Access when I write SQL Pin
KSCsoft9-Jul-06 3:33
KSCsoft9-Jul-06 3:33 
AnswerRe: how to use now() function in the Access when I write SQL Pin
kumarprabhakar7410-Jul-06 1:14
kumarprabhakar7410-Jul-06 1:14 
AnswerRe: how to use now() function in the Access when I write SQL Pin
kumarprabhakar7410-Jul-06 1:15
kumarprabhakar7410-Jul-06 1:15 
QuestionData Source Reconciliation (Sybase) Pin
SSLaks9-Jul-06 1:41
SSLaks9-Jul-06 1:41 
Questionplease help me!!! Pin
kicap8-Jul-06 17:29
kicap8-Jul-06 17:29 
AnswerRe: please help me!!! Pin
Paul Conrad8-Jul-06 19:11
professionalPaul Conrad8-Jul-06 19:11 
AnswerRe: please help me!!! Pin
Eric Dahlvang10-Jul-06 3:26
Eric Dahlvang10-Jul-06 3:26 
Questionhow to update dataset after session cache? Pin
Ed 548-Jul-06 12:40
Ed 548-Jul-06 12:40 
AnswerRe: how to update dataset after session cache? Pin
Igor Sukhov9-Jul-06 0:24
Igor Sukhov9-Jul-06 0:24 
GeneralRe: how to update dataset after session cache? Pin
Ed 5410-Jul-06 8:35
Ed 5410-Jul-06 8:35 
QuestionAbout DataType in the access Pin
KSCsoft8-Jul-06 5:04
KSCsoft8-Jul-06 5:04 
AnswerRe: About DataType in the access Pin
Rob Graham8-Jul-06 5:27
Rob Graham8-Jul-06 5:27 
Questiontransaction Pin
md_refay8-Jul-06 3:27
md_refay8-Jul-06 3:27 
AnswerRe: transaction Pin
Rob Graham8-Jul-06 5:28
Rob Graham8-Jul-06 5:28 
QuestionGroup By Question Pin
Chris McGlothen7-Jul-06 12:03
Chris McGlothen7-Jul-06 12:03 
AnswerRe: Group By Question Pin
Asif Sayed7-Jul-06 17:33
Asif Sayed7-Jul-06 17:33 
GeneralRe: Group By Question Pin
Chris McGlothen10-Jul-06 4:26
Chris McGlothen10-Jul-06 4:26 
AnswerRe: Group By Question Pin
Colin Angus Mackay7-Jul-06 23:22
Colin Angus Mackay7-Jul-06 23:22 
GeneralRe: Group By Question Pin
Chris McGlothen10-Jul-06 4:23
Chris McGlothen10-Jul-06 4:23 
QuestionSQL database administration levels Pin
GETEL - General Telecom7-Jul-06 9:24
GETEL - General Telecom7-Jul-06 9:24 
AnswerRe: SQL database administration levels Pin
Colin Angus Mackay7-Jul-06 9:47
Colin Angus Mackay7-Jul-06 9:47 
GeneralRe: SQL database administration levels Pin
Paul Conrad7-Jul-06 14:39
professionalPaul Conrad7-Jul-06 14:39 
GeneralRe: SQL database administration levels Pin
Colin Angus Mackay7-Jul-06 23:16
Colin Angus Mackay7-Jul-06 23:16 

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.