I have got a interesting requirement from one of my clients …they want to change the order of chained records dynamically .
So for start of the day the records would be sequenced in an order business,personal,home phone number but in the later part of the day they want it in an order personal,home,business.And this has to be done dynamically without needing to reimport the list in the said order.
The only solution that I can think of is,writing an sql script that would change the order of chain_n based on the new sequence that the business wants.Can any one suggest a better idea of doing this ???
But dont you need to change the order of chain_n aswell ???
so
order by
(select case contact_info_type when 4 then 1 when 1 then 2 when 2 then 3 Else 4 end)
Would arrange the records in the order mobile,home,work but the chain_n id would remain same as it was previously.Wont the OCS use the order of chain_n to pickup the chained records or would it go by the order in which the records are arranged ???