hi all
Table ExternalFeature_MST
CREATE TABLE [dbo].[ExternalFeature_MST](
[EF_Id] [int] NOT NULL,
[EF_Name] [varchar](100) COLLATE SQL_Latin1_General_CP1_CI_AS NULL,
PRIMARY KEY CLUSTERED
(
[EF_Id] ASC
)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]
) ON [PRIMARY]
Table Prop_External_Features
CREATE TABLE [dbo].[Prop_External_Features](
[PropId] [int] NULL,
[PEFId] [int] NULL
) ON [PRIMARY]
I want to write function which returns all external features of particular property
Example:-
Following are external features
Corner
Park View
Road Side
The Function should return "Corner,Park View,Road Side"
I have one query for this
Select EF_Name as [EFeatures] from ExternalFeature_Mst, Prop_External_Features where PEFID=EF_Id and PropId=@id
Here @id will be paramet of function
But I am not able to write function
Plz help
Sushat