select name as ProductRootCategories from ProductCategory
where parentproductcategoryid is null
oider by 1
;
SELECT 'Last_query_cost' AS [Variable_name], dbo.ufnGetQueryCost('select name as ProductRootCategories from ProductCategory
where parentproductcategoryid is null
oider by 1') AS [Value];