I have 2 tables
Division Table
DivisionId (Pk, uniqueidentifier,not null)
DivisionName (nvarchar)
DivisionLocation(nvarchar)
Region Table
RegionId (Pk, uniqueidentifier)
RegionName (nvarchar)
RegionManager(nvarchar)
RegiondivisionID (FK,uniqueidentifier,null)
Here i need the name of division table as 'Record of Divisionname' through RegiondivisionID column.
Select Regionname, RegionManager,
'Record of Divisionname' = (select d.DivisionName from Division d, Region r
where r.RegiondivisionID = d.DivisionId)
from Region
Getting this error:-
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
Kinldy suggest.
-mac
Division Table
DivisionId (Pk, uniqueidentifier,not null)
DivisionName (nvarchar)
DivisionLocation(nvarchar)
Region Table
RegionId (Pk, uniqueidentifier)
RegionName (nvarchar)
RegionManager(nvarchar)
RegiondivisionID (FK,uniqueidentifier,null)
Here i need the name of division table as 'Record of Divisionname' through RegiondivisionID column.
Select Regionname, RegionManager,
'Record of Divisionname' = (select d.DivisionName from Division d, Region r
where r.RegiondivisionID = d.DivisionId)
from Region
Getting this error:-
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression.
Kinldy suggest.
-mac