KAMAZON
Golden Member
So I've been trying to learn SQL and my associate came up with a interesting question. He wants the total number of instances where Mr, Mrs, Dr, etc. is used in the Northwind DB in MS-SQL. The info is in the dbo.Employees table under the TitleOfCourtesy row. I think I need to do a nested SQL SELECT statement but I'm not sure how to go at it. My failed attempt was this one:
USE Northwind
GO
SELECT COUNT (TitleOfCourtesy)
WHERE TitleOfCourtesy = 'Mr.'
FROM Employees
GO
Any suggestions? Thanks.
USE Northwind
GO
SELECT COUNT (TitleOfCourtesy)
WHERE TitleOfCourtesy = 'Mr.'
FROM Employees
GO
Any suggestions? Thanks.