cancel
Showing results for 
Search instead for 
Did you mean: 

`Date` between `when` and `when + 3 days`.. How to Implement.

Former Member
0 Kudos

Post Author: da@online-buddies.com

CA Forum: Data Connectivity and SQL

I have this statement I need to incorporate into my report to properly select my records. Date(`TableA`.`created`) between `TableB`.`when` and `TableB`.`when`+ interval 3 day My SystemMySQL 5.0 ODBC 3.15.16 connector (System DSN)BO Server (using Business Views and Crystal Reports XI) I have tried to created a SQL Expresion in the Data Foundation, but it craps out. I tried to create filers, but it doesn't allow the variety mix of fields.Any suggestions?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Post Author: SKodidine

CA Forum: Data Connectivity and SQL

You could try the +3 days as a DATEADD. Like this:

Date(`TableA`.`created`) between `TableB`.`when` and DATEADD(day, 3, `TableB`.`when`)