Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Complex join doesn't work against Azure databases #92

Open
yavorg opened this Issue · 0 comments

1 participant

@yavorg

The following query works in SQL Management Studio but doesn't work from within the Node driver, pointing to an Azure database.

The goal is to project the properties "player1Nickname" and "player2Nickname" onto the rows returned from the "games" table. The values for the properties are keyed off of the "player1"/"player2" properties against a "players" table.

select games.*, player1.nickname as player1Nickname, player2.nickname as player2Nickname from games 
inner join players as player1 on player1.userId = games.player1
inner join players as player2 on player2.userId = games.player2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.