Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Query Not givan relevent result

Status
Not open for further replies.

dearhemantha

Computer
Sep 22, 2005
1
I have a sql database I want to generate a report which is I am suplying date rage in there year is not taken for rane query is below

SELECT COUNT(*) AS Expr1
FROM WHIRE_Candidate
WHERE (UploadStatus = 1) AND (CONVERT(char(10), KeyedDate, 101) BETWEEN '06/01/2005' AND '09/30/2005') AND (UserId = '1')

hear i am getting 1000 count but if i change the query date range '08/01/1999' AND '09/30/2005'

count reduce why is that

thank you
hemantha
 
Replies continue below

Recommended for you

06/01/2005 is June 01, 2005
08/01/2005 is August 01, 2005

There is less data from August to September than from June to September.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor