Yugax Krrish
Yugax Krrish

Reputation: 1

I am trying fetch the first 6 month record data from a table based on the creation Date and activity_day from source table

activity_day >= creation_date + interval 6 month

Not getting any data

Upvotes: 0

Views: 13

Answers (1)

sankar
sankar

Reputation: 340

If you are checking for first 6 months records with respect to creation_date, then you need to use between logic like activity_day >= creation_date and activity_day <= creation_date + interval 6 month

Upvotes: 1

Related Questions