I am trying to find out the number of records from all the columns at sys.tables that start with a specific letter.
At the moment I have something like this:
SELECT      c.name  AS 'ColumnName'
            ,t.name AS 'TableName'
FROM        sys.columns c JOIN sys.tables  t   ON c.object_id = t.object_id
WHERE       c.name LIKE 'u%'
ORDER BY    TableName
            ,ColumnName;
Is there a way I can add the number of column records to this?
Tks, Miguel
 
    