What is the Access SQL for a subquery that counts records from another table?
In SQL Server the following statemant works fine, can anyone help me make this work from an Access SQL statement?
SELECT U.Name, NumOfItems = (SELECT Count(*) FROM Item I WHERE I.UserIndex = U.UserIndex)
FROM User U
Thanks
Andy
In SQL Server the following statemant works fine, can anyone help me make this work from an Access SQL statement?
SELECT U.Name, NumOfItems = (SELECT Count(*) FROM Item I WHERE I.UserIndex = U.UserIndex)
FROM User U
Thanks
Andy