Sometimes rather than returning a table column its necessary to Select from nested Select statements. Below is a sample of using such a query:
SELECT (
SELECT COUNT(*)
FROM usersTbl
WHERE userName LIKE '%Dave%'
) as 'Matching User Count',
(
SELECT TOP 1 firstName
FROM usersTbl
WHERE firstName LIKE 'D%'
ORDER by firstName
) as 'First User starting with "D"'
Result:
Matching User Count First User starting with "D"
------------------- ------------------------------
2 d
(1 row(s) affected)