11-04-2014 07:05 PM
11-05-2014 04:24 AM
11-06-2014 12:47 PM
SELECT
dm_dim_hours.id,
dm_dim_hours.desc,
CONCAT('From ',TRIM(dm_dim_hours.desc),':00 to ',TRIM(dm_dim_hours.desc),':59') AS desc2,
COUNT(creation_minute_id) AS num
FROM
dm_dim_hours
JOIN dm_dim_minutes ON dm_dim_minutes.hour_id = dm_dim_hours.id
LEFT JOIN (
SELECT
dm_dim_documents.creation_minute_id AS creation_minute_id,
dm_dim_paths.path AS yoface,
dm_dim_documents.name AS myname
FROM
dm_dim_documents,
dm_dim_paths
WHERE
dm_dim_paths.path NOT LIKE '%surf_config%' AND
dm_dim_paths.path NOT LIKE '%system%' AND
dm_dim_paths.path NOT LIKE '%user_homes%' AND
dm_dim_paths.path NOT LIKE '%swsdp%' AND
dm_dim_paths.path NOT LIKE '%Unknown%' AND
dm_dim_paths.path NOT LIKE '%sites%' AND
NAME NOT LIKE '%.ftl' AND
NAME NOT LIKE '%.sample' AND
NAME NOT LIKE '%.xml' AND
NAME NOT LIKE '%.js'
UNION ALL
SELECT
dm_dim_folders.creation_minute_id AS creation_minute_id,
'' AS yoface,
'' AS myname
FROM
dm_dim_folders) t ON t.creation_minute_id = dm_dim_minutes.id
WHERE
dm_dim_hours.id >= 0
GROUP BY
dm_dim_hours.id,
dm_dim_hours.desc
ORDER BY
dm_dim_hours.id ASC
11-06-2014 04:06 PM
11-06-2014 04:28 PM
dm_dim_paths.path LIKE '%sites%'
dm_dim_paths.path NOT LIKE '%sites%'
11-09-2014 04:08 AM
Tags
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.