abenitez77
IS-IT--Management
I want to group by Left(fieldname) in my query and it is not working for me, how can i do this? I want to see the full name and not just left 4 of the sourcedatabase fields when i return the records.
SELECT max([SourceServer]) AS SourceServer
,Left([SourceDatabase],4) as SD
,[Processed]
FROM [DevClaimsFull].[dbo].[ApClientVndYrLineage]
GROUP BY Left([SourceDatabase],4), Processed
ORDER BY SD
SELECT max([SourceServer]) AS SourceServer
,Left([SourceDatabase],4) as SD
,[Processed]
FROM [DevClaimsFull].[dbo].[ApClientVndYrLineage]
GROUP BY Left([SourceDatabase],4), Processed
ORDER BY SD