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
22.6k
convert rows into column in sql server
May 20 2018 9:02 AM
Query as follows
SELECT A._id,B.firstname + '' '' + B.lastname + '' '' + B.surname
as name,A.details
FROM dbo.tbl_farmer_farmdetails_' + @originname + ' A
INNER JOIN dbo.tbl_farmerregistration_' + @originname + ' B ON B.farmerctscode = A.farmer_id
WHERE B.farmerseason = '2018'
When i run the above code i get output as follows
id Name Details
1 Test1 "Product1":"Cilo","Product2":"Zilo"
i want the output as follows
id Name Product1 Product2
1 Test1 Cilo Zilo
from my above sql query what changes i have to made to get the above output
Reply
Answers (
3
)
Display answers based on id each questionItried it isnotwork
What is asp.net life cycle?