I am creating a simple Excel file that will show the results of an SQL query in a table. The only issue is that I wish to display the columns horizontally rather than vertically I.E.:
Column name | val | val | val |
Column name | val | val | val |
Column name | val | val | val |
I have researched options and the most common I find is to use the Transpose option under edit, but this is not an option for me as the data does not reset automatically. I cannot seem to find the option under the configurations of format or during the creation of the query. I created the query itself in Micorsoft Query and it is below (With slight trimming to make it easier to read):
SELECT SMPL_HDR.SMPL_HDR_KEY, SMPL_HDR.SMPL_DATE, SMPL_HDR.GROWER_NAME, SMPL_HDR.BREEDCROSS,
SMPL_HDR.FLOCK_AGE, SMPL_HDR.HOUSE_NUMBER, SMPL_HDR.TEST_TYPE, SMPL_HDR.LOCATION,
SMPL_HDR.USER_ID, SMPL_HDR.DATE_ENTERED, SMPL_DTL.SMPL_DTL_KEY, SMPL_DTL.PAWS_WGT,
SMPL_DTL.NECK_SKIN_WGT, SMPL_DTL.NECK_WGT, SMPL_DTL.HEART_WGT, SMPL_DTL.LIVER_WGT,
SMPL_DTL.PLD_GIZZARD_WGT, SMPL_DTL.FAT_WGT, SMPL_DTL.PRE_CHILL_WGT, SMPL_DTL.PST_CHILL_WGT,
FROM EYIS.dbo.SMPL_DTL SMPL_DTL, EYIS.dbo.SMPL_HDR SMPL_HDR
WHERE SMPL_DTL.SMPL_HDR_KEY = SMPL_HDR.SMPL_HDR_KEY AND ((SMPL_HDR.DATE_ENTERED=?))
I would apreciate any help you can offer. It feels like there's a configuration option right in front of me I am not seeing.