Hi

I have a table that has 4 dates for each record (birthday, anniversary,
policy_start & policy_end).   What I want to do is cycle through each record
and then do some calculations using the gaps between the dates.   So it
might be Calc1 using (birthday->anniversary),
Calc2(anniverary->policy_start), Calc3(policy_start->policy_end), etc.
But the dates might be in different orders.    

In VBA in Excel, I can use the SMALL function within my calcs and this
returns the minimum date, the next smallest, the next & then the biggest.
But how can I do this in SQL.    I guess I can push the 4 dates out to a
temp table, order it and then suck them back in - but I have no idea how to
do this for all the records in my primary table

Fyi, I'm using MS Access Project

ps - I'm an SQL newbie 




**********************************************************************
CONFIDENTIALITY:  This communication, including attachments, is for the 
exclusive use of the
addressee(s) and may contain proprietary, confidential or privileged 
information. If you are not the intended 
recipient, any use, copying, disclosure, or distribution or the taking of any 
action in reliance upon this 
information is strictly prohibited. If you are not the intended recipient, 
please notify the sender 
immediately and delete this communication and destroy all copies.
**********************************************************************



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Find out how CFTicket can increase your company's customer support 
efficiency by 100%
http://www.houseoffusion.com/banners/view.cfm?bannerid=49

Message: http://www.houseoffusion.com/lists.cfm/link=i:6:2232
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/6
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:6
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.6
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to