Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Something wrong

Author  Topic 

Rita Bhatnagar
Posting Yak Master

172 Posts

Posted - 2001-04-12 : 10:36:22
i have this query i tried but couldn't fix it

Declare
@prmCRID int,
@prmdat datetime
SELECT Weight, EffectDate
FROM WeightRec
WHERE (((CRID)=@prmCRID)
AND ((case when (IsDate(@prmdat)) then (EffectDate)<=@prmDate)Else '' End))
AND ((WeightRec.Active)=True))
ORDER BY WeightRec.EffectDate DESC

Thanks for any help.

   

- Advertisement -