Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng 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
Joined
Sep 22, 2005
Messages
1
Location
LK
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
 
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

Back
Top