I
Ivan Jericevich
In my code below the result returns two rows. This particular Tenant occupys
2 Units. How do I join the two rows to give me "Unit1 and Unit4"
ALTER PROCEDURE dbo.getUnitNumbers
@TenantID int,
@UnitNumber varchar(50) OUTPUT
as
SELECT TOP (8) @UnitNumber = UnitNumber
FROM Area
WHERE (TenantID = @TenantID)
ORDER BY UnitNumber
2 Units. How do I join the two rows to give me "Unit1 and Unit4"
ALTER PROCEDURE dbo.getUnitNumbers
@TenantID int,
@UnitNumber varchar(50) OUTPUT
as
SELECT TOP (8) @UnitNumber = UnitNumber
FROM Area
WHERE (TenantID = @TenantID)
ORDER BY UnitNumber