×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-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!

*Tek-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

Display records between two dates

Display records between two dates

Display records between two dates

(OP)
Hi all,

When I try to display records between two dates 01/01/2010 and 03/01/2010, It is displaying data for 01/01/2010,01/02/2009,01/02/20 10,01/03/2009,
01/03/2010.

It is additionally displaying 2009 data which I dont want to display.Please help to solve this problem.

I am using following query

SELECT
a.DETECTORID,
:param1,:param2,:param3,
b.TOTALVOLUME,
to_char(a.UPDATETIME,'MM/DD/YY YY') as UPDATETIME
from traffic_data_arc a left outer join volume_data_arc b on a.traffic_id = b.traffic_data_id and a.server = b.server
where POLLINTERVAL= 3
and DETECTORID like concat(concat('%',:param1),'%' )
and to_char(a.UPDATETIME,'MM/DD/YY YY') between to_char(:param2,'MM/DD/YYYY') and to_char(:param3,'MM/DD/YYYY')

Please help

Rgds,
natbal  

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 Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

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

Click Here to join Tek-Tips and talk with other members! Already a Member? Login


Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close