K1000 Reporting - Customizing the presentation of the data?
Is it possible to customize the presentation of the data that is provided from the reports built with the wizard? I can get the information I need, however, the way it is presented makes no logical sense. Is building a SQL report the only option?
5 Comments
[ + ] Show comments
Answers (0)
Please log in to answer
Be the first to answer this question
Option 1 will pull all computers. If you want to limit to a label use option 2.
Option 1:
SELECT DA.SERVICE_TAG, M.NAME AS System_Name, DW.START_DATE AS Warranty_Start_Date, DW.END_DATE AS Warranty_End_Date
FROM DELL_WARRANTY DW
JOIN DELL_ASSET DA ON (DW.SERVICE_TAG = DA.SERVICE_TAG)
JOIN MACHINE M ON (M.BIOS_SERIAL_NUMBER = DA.SERVICE_TAG OR M.BIOS_SERIAL_NUMBER = DA.PARENT_SERVICE_TAG)
join MACHINE_LABEL_JT on M.ID = MACHINE_LABEL_JT.MACHINE_ID
WHERE M.BIOS_SERIAL_NUMBER!=''
AND DW.SERVICE_LEVEL_CODE like '%ND%'
AND DA.DISABLED != 1
AND DW.END_DATE = (SELECT MAX(END_DATE) FROM DELL_WARRANTY DW2 WHERE DW2.SERVICE_TAG=DW.SERVICE_TAG AND DW2.SERVICE_LEVEL_CODE=DW.SERVICE_LEVEL_CODE)
order by DW.END_DATE;
Option 2: Filter by Label (Change "WHERE MACHINE_LABEL_JT.LABEL_ID = 99" to the label ID you want to use. So it would state "...LABEL_ID = Your_Label_ID_Number"
SELECT DA.SERVICE_TAG, M.NAME AS System_Name, DW.START_DATE AS Warranty_Start_Date, DW.END_DATE AS Warranty_End_Date
FROM DELL_WARRANTY DW
JOIN DELL_ASSET DA ON (DW.SERVICE_TAG = DA.SERVICE_TAG)
JOIN MACHINE M ON (M.BIOS_SERIAL_NUMBER = DA.SERVICE_TAG OR M.BIOS_SERIAL_NUMBER = DA.PARENT_SERVICE_TAG)
join MACHINE_LABEL_JT on M.ID = MACHINE_LABEL_JT.MACHINE_ID
WHERE MACHINE_LABEL_JT.LABEL_ID = 99
AND M.BIOS_SERIAL_NUMBER!=''
AND DW.SERVICE_LEVEL_CODE like '%ND%'
AND DA.DISABLED != 1
AND DW.END_DATE = (SELECT MAX(END_DATE) FROM DELL_WARRANTY DW2 WHERE DW2.SERVICE_TAG=DW.SERVICE_TAG AND DW2.SERVICE_LEVEL_CODE=DW.SERVICE_LEVEL_CODE)
order by DW.END_DATE; - Zach_Lundberg 10 years ago