fbpx

32. Combining Values – B

This advanced SQL exercise is part of the book: Advanced SQL – Practical Techniques and Use-Cases, which includes 100 day-to-day SQL challenges (and solutions), need-to-know advanced features, and key concepts.
 

Given a table that displays players, and various possibilities for games in which every player can take part (each player can participate in 3 different games).

The main difference between this table and the table included in the previous exercise lies in the options each player has. If in the previous example each of the players could only choose from the same options (1-3), now each player can choose from different options (player A – options 1-3, player B – options 4-6, player C – options 7-9).


CREATE TABLE players
(playerID varchar(25),
gameID varchar(25))
GO

To read more

UpScale Analytics is one of the largest platforms in the world for learning SQL by doing, consisting over 300 SQL exercises at different levels (including solutions), by topics, across over 100 different datasets. More…