Skip to content
Advertisement

Select distinct values from table and put them in string

I have the following tables:

What I want to accomplish is to put all available brand names from [Brand] table connected to some Game in one string and select those values in the select clause.

Each gameid can be connected to more than one portal and brand.

For example, my final result would be as shown below:

Advertisement

Answer

You can try the following query.

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement