I have a situation where creating one flight record can generate up to 4 sales transactions - I won't go into why.
When a flight lands and the button is pressed, these four transactions are created in under 1 second. In actual fact in a separate test I created 10 sales transactions in under 1 second.
So the problem is - if the duty controller misses a flight landing, they have to enter the landing time retrospectively (usually the next day.) . The next problem is, in order for the sales transactions to appear in a member's statement in the correct date and time order, I have to generate a timestamp using TIMESTAMP() based on the date of the previous days flying sheet - and it only allows a resolution of hours and minutes - not hours minutes seconds and milliseconds.
In case anyone disputes a landing time and a flight record needs to be changed, I need to regenerate the sales transaction in the same order they were created so that the opening and closing balances on any forward timestamped transactions can get recalculated correctly. . I NEED milliseconds because even with a resolution of seconds, I will have 4 sales transactions with a timestamp that is not unique- does anyone else need this sort of resolution?
Also - When sorting on a timestamp attribute it seems to sort on the alpha representation of the timestamp rather than the underlying stored integer value - which makes the order of any query inconsistent
It's not a show stopper since I can order by DATE_PART() and ID, but it really would make my code simpler and more elegant if I could simply ORDER BY timestamp attribute
Hope this all makes sense