the only advise I can give you is select the table first by ship
then in a loop order by shipdate and check the difference and add.
This may help but I am not sure you can doit in a single query unless you play with aliases and that is a headache
i am not sure of the sintax but you can do it
a) create a temp table in the order of your excel spred sheet and simply unload it to a text file and import it
b) write a file to disk with a delimiter "," or "|" in the correct sequence for your spread sheet.
Hope this...
i am not sure of the sintax but you cab do it
a) create a temp table in the order of your excel spred sheet and simply unload it to a text file and import it
b) write a file to disk with a delimiter "," or "|" in the correct sequence for your spread sheet.
Hope this...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.