×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

SQL Query Not givan relevent result

SQL Query Not givan relevent result

SQL Query Not givan relevent result

(OP)
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

RE: SQL Query Not givan relevent result

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.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources