sqlite - Denormalize table and append -


how denormalize table

 +---------+---------------------------------------------+ |  lemma  |                     definition              | +---------+---------------------------------------------+ | abandon |        feeling of emotional intensity     | | abandon |        forsake                              | | abandon |        leave behind                         | | abbey   |        church associated monastery | | abbey   |        convent ruled abbess         | +---------+---------------------------------------------+ 

as

 +---------+-------------------------------------------------------------------------------+ |  lemma  |                                      definition                               | +---------+-------------------------------------------------------------------------------+ | abandon |        feeling of emotional intensity forsake leave behind                  | | abbey   |        church associated monastery convent ruled abbess      | +---------+-------------------------------------------------------------------------------+ 

what should query?

select lemma, group_concat(definition, ' ') definition your_table  group lemma 

group_concat 1 of aggregate functions available in sqlite


Comments

Popular posts from this blog

sublimetext3 - what keyboard shortcut is to comment/uncomment for this script tag in sublime -

java - No use of nillable="0" in SOAP Webservice -

ubuntu - Laravel 5.2 quickstart guide gives Not Found Error -