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
Mannu k
NA
5
4.5k
Convert group_concat of MYSQL to SQL query
Feb 24 2016 7:00 AM
Hi I have a query in MYSQL which is using group_concat. I want to convert it into Sql server query.
Could you please help me.
Thanks in advance. below is the query.
select apj.package_id,
group_concat(DISTINCT concat(asset.asset_id, '-', asset.name) SEPARATOR '||')'asset_names'
from stg.asset_package_join apj (NOLOCK) , stg.asset asset (NOLOCK) where asset.id = apj.asset_id
group by apj.package_id
Reply
Answers (
0
)
how to create a databse like tree
Extracting data from SQL 2005 to Excel: numbers issue