I am working on a query to produce a CSV file for importing into a payroll system and the file requires fixed literal values in the first three rows.
The first 3 rows should look as follows ( | indicates where column begins / ends) ....
< DEFN > |
< EMPID > | < COSTCEN >
< DATA > |
... then the data follows as below...
001 | 3.5 | 8.5
002 | 8 | 12
003 | 10 | 3
I tried a union but realised that the data types needed to match in each section. Of course this was not the case due to the hours being REAL data types.
Here is an sample of the type of data I am dealing with. Any help would be appreciated.
Hi, it's quite difficult for me to explain and it didn't help that i had neglected to mention that i am using a pivot. Here is a more accurate example of the data.