Created
November 10, 2013 04:52
-
-
Save dadamssg/7393979 to your computer and use it in GitHub Desktop.
MySQL companiesExtended view
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE VIEW companiesExtended AS | |
select *, (select group_concat(id separator ',') from people as peopleTable where companyTable.id = peopleTable.`company_id`) as people_ids from companies as companyTable |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment