TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Narasiman nar
NA
64
22k
Error in my sql server query
May 22 2018 6:27 AM
SELECT FARM.item,A.farmer_id,
A.farmer_season,A.farm_visitno
FROM dbo.tbl_farmer_farmdetails A
INNER JOIN dbo.tbl_farmerregistration B ON B.farmerctscode = A.farmer_id
CROSS APPLY [dbo].[StringSplits](A.farm_detailsdata,',') AS FARM
WHERE B.farmerseason = '2018'
When i run the above query shows error as follows
Operand data type varchar is invalid for subtract operator.
please let me know what is the mistake in my above sql query. i tried for several it shows the same error only. please help me.
Reply
Answers (
3
)
Dynamic query in sql server
how to split string in to each column