Got a query that looks pretty darn simple, but returns no results when I should be getting some. The issue is the last part where I want to make sure that I’m getting stuff that is between the launch and expire dates.
SELECT *
FROM PTD_PartiesDecorations
WHERE PTDbDisabled = 0
AND PTDPTCiComponent = 1
AND NOW() BETWEEN PTDdLaunch AND PTDdExpire
If
PTDdExpireis null, you’ll get no results.If that’s the case try this: