Error message Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.



I am new user to SQL and I am trying to create a sub query. I keep
getting the following error
Subquery returned more than 1 value. This is not permitted when the
subquery follows =, !=, <, <= , >, >= or when the subquery is used as
an expression.

My queries work seperately but when I put them together I get the error



SELECT dbo.tblBusinessAreas.RDBMS, dbo.tblBusinessAreas.BusAreaID,
dbo.tblBusinessAreas.AppNam,
dbo.tblBusinessAreas.AppCmts,
dbo.tblBusinessAreas.AppCmts2, dbo.tblBusinessAreas.Descr,
dbo.tblBusinessAreas.DSDRep,
dbo.tblBusinessAreas.DtLastUptd,
dbo.tblBusinessAreas.SrvyComp, dbo.tblBusinessAreas.SrvyCompDt,
dbo.tblBusinessAreas.SrvyOpenItms,
dbo.tblBusinessAreas.SrvyCmts,
(SELECT dbo.tblUserContacts.UsrLNam AS Tech
FROM dbo.tblUserContacts INNER JOIN
dbo.tblBusAreaContacts ON
dbo.tblUserContacts.UserID = dbo.tblBusAreaContacts.UserID INNER JOIN
dbo.tblBusinessAreas ON
dbo.tblBusAreaContacts.NewBusAreaID = dbo.tblBusinessAreas.BusAreaID)

FROM
dbo.tblBusinessAreas

.



Relevant Pages

  • Re: SQl Data Provider Performance Issues
    ... selects with a single inner join perforn OK. ... When I run the query from SQL ... Analyzer, SQL Profiler shows a duration of 30. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: SQl Data Provider Performance Issues
    ... selects with a single inner join perforn OK. ... When I run the query from SQL Query ... Analyzer, SQL Profiler shows a duration of 30. ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: SQl Data Provider Performance Issues
    ... Can you provide a complete sample app ... selects with a single inner join perforn OK. ... When I run the query from SQL ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: sysindexes
    ... collation, but you should be able to use it for your column change as well. ... SQL Server MVP ... DECLARE @sql VARCHAR ... INNER JOIN information_schema.table_constraints tc ...
    (microsoft.public.sqlserver.server)
  • Re: SQl Data Provider Performance Issues
    ... selects with a single inner join perforn OK. ... When I run the query from SQL Query ... Analyzer, SQL Profiler shows a duration of 30. ...
    (microsoft.public.dotnet.languages.csharp)