Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Scalar-Valued Function Issue
Message
From
25/03/2014 06:19:05
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
24/03/2014 22:28:00
General information
Forum:
Microsoft SQL Server
Category:
Stored procedures, Triggers, UDFs
Environment versions
SQL Server:
SQL Server 2005
Application:
Desktop
Miscellaneous
Thread ID:
01597241
Message ID:
01597252
Views:
44
>I have the following function in place but it doesn't seem to be working in all cases. The function is supposed to return the Students effective primary insurance at the time of a therapy transaction. The business rules in place are only one primary insurance can be effective at a time. In this case the Therapy Transaction Date is 2/28/2014 and there is one insurance policy that has an effective date of 1/1/2008 and a termination date of 2/28/2014 and the type is primary. Any suggestions on what I'm missing here?

You can't expect 2/28/2014 to be greater than 2/28/2014.

Perhaps you should add one day so the insurance would still be effective on termination day, i.e. become invalid the next day.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform