/build/static/layout/Breadcrumb_cap_w.png

Computers Shipped by Year

I am trying to get a report that will tell me the number of computers shipped per previous years based solely on the Dell Warranty "Ship Date" data. I started with the template report "Dell Warranty Expired" since the desired columns are there (name and ship date). The report works and is sorted by Ship Date but it includes many duplicate asset records instead of just active computer records. Is there a better way to do this (other than deleting the duplicates)?

Also, I can do a Break on Columns for the grouping of similar dates but ideally it would just count the number of records by year:

SELECT M.NAME AS MACHINE_NAME, M.CS_MODEL AS MODEL, DA.SERVICE_TAG, DA.SHIP_DATE, DW.END_DATE AS WARRANTY_EXPIRATION_DATE
FROM KBSYS.DELL_WARRANTY DW
LEFT JOIN KBSYS.DELL_ASSET DA ON (DW.SERVICE_TAG = DA.SERVICE_TAG)
LEFT JOIN MACHINE M ON (M.BIOS_SERIAL_NUMBER = DA.PARENT_SERVICE_TAG OR M.BIOS_SERIAL_NUMBER = DA.SERVICE_TAG)
WHERE M.CS_MANUFACTURER LIKE '%dell%'
AND M.BIOS_SERIAL_NUMBER!='
AND DA.DISABLED != 1

order by DA.SHIP_DATE

0 Comments   [ + ] Show comments

Answers (2)

Answer Summary:
I found an answer by modifying a different post (http://beta.itninja.com/question/installation-workflow-and-tools04). Thanks dchristian and you get some points!: SELECT M.NAME,         DA.SERVICE_TAG,         DATE_FORMAT(DA.SHIP_DATE,'%Y/%m/%d')AS SHIP_DATE,         M.IP   FROM KBSYS.DELL_ASSET DA,       MACHINE M WHERE DA.SERVICE_TAG = M.BIOS_SERIAL_NUMBER ORDER BY DA.SHIP_DATE
Posted by: RichB 12 years ago
Second Degree Brown Belt
1
I found an answer by modifying a different post (http://itninja.com/question/installation-workflow-and-tools04). Thanks dchristian and you get some points!:

SELECT M.NAME,
DA.SERVICE_TAG,
DATE_FORMAT(DA.SHIP_DATE,'%Y/%m/%d')AS SHIP_DATE,
M.IP
FROM KBSYS.DELL_ASSET DA,
MACHINE M
WHERE DA.SERVICE_TAG = M.BIOS_SERIAL_NUMBER
ORDER BY DA.SHIP_DATE
Posted by: dchristian 12 years ago
Red Belt
0
Thanks!!!!
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ