06-10-2024 11:28 AM
Hello,
Would anyone have SQL to show the doc types and counts over the past 6 months?
Document Type|Count|Last Doc Date
Insurance|5|02/02/2024
I9|22|05/05/2024
Thanks
06-10-2024 11:37 AM
Hi
Here is a post with a similar request ...
Best wishes.
06-10-2024 01:29 PM
Hi
Here is a query I had lying around ...
SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTEDSELECT CASE WHEN itg.itemtypegroupname IS NULL THEN CASE WHEN dt.itemtypename IS NULL THEN '-- Grand Total' END ELSE itg.itemtypegroupname -- Document Type Group Total END as 'Document Type Group Name', CASE WHEN dt.itemtypename IS NULL THEN CASE WHEN itg.itemtypegroupname IS NULL THEN '-- Document Type Grand Total' ELSE '-- Document Type Group Total' END ELSE dt.itemtypename -- Document Type Total END as 'Document Type Name', COUNT(id.itemnum) as 'Document Type Count' FROM hsi.itemdata idJOIN hsi.doctype dt ON dt.itemtypenum = id.itemtypenumJOIN hsi.itemtypegroup itg ON itg.itemtypegroupnum = id.itemtypegroupnumGROUP BY itg.itemtypegroupname, dt.itemtypename with ROLLUPORDER BY itg.itemtypegroupname ASC
Best wishes.
06-11-2024 10:41 AM
06-12-2024 06:20 AM
Ha,
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.