this subquery works in SQL Server:
select systemUsers.name, (select count(id) from userIncidences where idUser = systemUsers.id ) from syst
Something like this? (using Northwind.Order Details]
The Code Snippet:
SELECT [Unit Price] * Quantity AS Cost, [Unit Price] * Quantity * 1.25 AS CostWithVAT FROM [Order Details]
Source Airline Reservation System Project