So I have a table where ladder_date is stored as Date/Time
I then have the following query
Select B.book_name,B.ladder_date,B.BOM,B.NAV,B.gMTDRT,B.gMTDPER,B.PreviousDay,Base, B.gTDRT,B.gTDCHANGEPER, (select ((Exp(SUM(Log(1+A.gTDCHANGEPER/100)))-1)*100) AS YTD
from Daily_tt A
where B.ladder_date < A.ladder_date)
from Daily_tt B;
and it is returning an error, "Data type mismatch in criteria expression"
but if I use an "=" it works, but I want the less than sign.
Any thoughts on why this is happening?
I then have the following query
Select B.book_name,B.ladder_date,B.BOM,B.NAV,B.gMTDRT,B.gMTDPER,B.PreviousDay,Base, B.gTDRT,B.gTDCHANGEPER, (select ((Exp(SUM(Log(1+A.gTDCHANGEPER/100)))-1)*100) AS YTD
from Daily_tt A
where B.ladder_date < A.ladder_date)
from Daily_tt B;
and it is returning an error, "Data type mismatch in criteria expression"
but if I use an "=" it works, but I want the less than sign.
Any thoughts on why this is happening?