Try this:
SELECT (partyname + ' ' + ',' + ' ' + Contact_person) as [Contact name], (mobile + ' '+','+' '+Email + ' '+','+' ' + phone) as [Contact details], Address, (City + ' ' + ', ' + ' '+ Area) as [city area], Status, CallType, Visit_time, visit_purpose, Interaction, Already_Computer, Software, area
FROM [CallRegister].[dbo].[MarketingCall]
WHERE [Status] = @status AND City = @city
For further information about building search criteria, please see:
WHERE (T-SQL)[
^]
Alternatively, yoou can build
dynamic queries[
^].
By the Way: rather than using
+ operator[
^] i would suggest to use
CONCAT[
^] function.
SELECT CONCAT(partyname, ', ', Contact_person) as [Contact name]...