Hi There,
i have a column that holds file names. i want to query the table and count how many of extension there is, for example:
SELECT count(*)
FROM [dbname].[dbo].[tablename]
where filename like '%.jpg'
Rather than query each extension, is it possible to loop through and give me each extension and a count of that extension?
Thanks in advance.
i have a column that holds file names. i want to query the table and count how many of extension there is, for example:
SELECT count(*)
FROM [dbname].[dbo].[tablename]
where filename like '%.jpg'
Rather than query each extension, is it possible to loop through and give me each extension and a count of that extension?
Thanks in advance.