I have 3 tables: game, platform, and game_platform.
game:
id name desc
---- ------------ ---------
1 Modern Warfare... Awesome game......
2 ... ...
3 ... ...
platform:
id name
---- ------------
1 pc
2 ps3
3 ...
game_platform:
game_id platform_id
-------- -----------
1 1
1 2
... ...
What I want is to get a row containing data from the game table and also all the platforms for that game.
However with a regular query I get multiple rows for games with more than one platform. Is there a way to get them on a single row?
You don’t provide an example of desired output. If you want all the platforms brought back in one column this will do it.