How to split row into multiple rows from the MySQL?
Posted
by
user2818537
on Stack Overflow
See other posts from Stack Overflow
or by user2818537
Published on 2013-10-30T09:16:45Z
Indexed on
2013/10/30
9:54 UTC
Read the original article
Hit count: 128
I have a MySQL data table, in which I have more than 2 columns. First column has a unique value clinical trial value whereas second column has disease information. There are, in most of the cases, more than 2 disease names in one cell for a single id. I want to spilt those rows which cell contains two or more than two diseases. There is a pattern for searching also, i.e. small character is immediately followed by capital character., e.g. MalariaDengueTuberculosis like this. Suppose for these three diseases there is unique id, it should show like the following:
NCT-ID disease
4534343654 Maleria
4534343654 Dengue
4534343654 Tubercoulsosis
© Stack Overflow or respective owner