Search
 
SCRIPT & CODE EXAMPLE
 

SQL

mysql join table with a text columns with ids splited by char

SELECT a.c1,
        a.ids,
        GROUP_CONCAT(b.name SEPARATOR '|')
FROM Table1 a
INNER JOIN Table2 b
ON FIND_IN_SET(b.id, REPLACE(a.ids, '|', ','))
GROUP BY a.c1,
        a.ids
Comment

PREVIOUS NEXT
Code Example
Sql :: pastashoppen 
Sql :: Uninstall mysql community server in centos 7 
Sql :: Run batch file from SQL 
Sql :: sql script to get a type task on jira datbase for 12 months 
Sql :: postgres drop all tables owned by a user 
Sql :: how to fetch unique records from two tables 
Sql :: is sql injection still possible 
Sql :: t-sql conditional order by multiple columns 
Sql :: coursera spark sql max count 
Sql :: left join vs inner join performance 
Sql :: drop-toys-table 
Sql :: SQL Multiple Parameterized Procedures 
Sql :: compare strings lexicographically in sql 
Sql :: sqlite date to char 
Sql :: how to create a table from another table in sql derby 
Sql :: acutal month year 
Sql :: sql redshift split into first and last name 
Sql :: grouping by email domain mysql 
Sql :: how to see password mysql vestacp 
Sql :: sql server run procedure on all databases 
Sql :: insert random values in rows postgres 
Sql :: copy table structure from postgresql to mysql 
Sql :: database schema for mcqs type exam in sql 
Sql :: mysql where in keep order 
Sql :: sqlite rename table 
Sql :: java.sql.SQLNonTransientConnectionException: Public Key Retrieval is not allowed 
Sql :: sql first day quarter 
Sql :: How to do IF NOT EXISTS in SQLite 
Sql :: luu ckeditor vao mysql 
Csharp :: read text file to string c# 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =