Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

How to Union while using Function?

$
0
0
I Have List of Company ,i need to union to display all Company as select all how can i achieve this i have code below:
(SELECT CompanyID FROM dbo.HRMEmployeeMaster WHERE dbo.FunctionGetCustomFieldValuebyJobIDFieldNameandDatatype(Job.ID,'EmployeeName','StringValue')
				  = ((CONVERT(Varchar(MAX),EmployeeId)+'-'+Name))) = @CompanyID



Viewing all articles
Browse latest Browse all 23857

Trending Articles