Select SQLWorkorderType,sum(sqlworkordertypeid)
from(
select distinct SQLType as [SQLWorkorderType],0 as sqlworkordertypeid
from SQLWorkOrderType WOT
Union
select distinct SqlType as [SqlWorkorderType],sqlworkordertypeid from SQLWorkOrderType WOT
) as B GROUP by SqlWorkorderType
No comments:
Post a Comment