Thank you for the advices and I have also got few answers at
http://stackoverflow.com/questions/40304011/where-in-condition-and-multiple-columns-in-subquery
Regards
Alex
On 28 October 2016 at 13:03, Alexander Farber
wrote:
> Hello,
>
> is it please possible to rewrite the SQL query
>
> SELECT DISTINCT ON (uid)
> uid,
> female,
> given,
> photo,
> place
> FROM words_social
> WHERE uid I
On 28 October 2016 at 12:03, Alexander Farber
wrote:
> is it please possible to rewrite the SQL query
>
> SELECT DISTINCT ON (uid)
> uid,
> female,
> given,
> photo,
> place
> FROM words_social
> WHERE uid IN (SELECT
Alexander Farber writes:
> is it please possible to rewrite the SQL query
> SELECT DISTINCT ON (uid)
> uid,
> female,
> given,
> photo,
> place
> FROM words_social
> WHERE uid IN (SELECT player1 FROM games)
>
Hello,
is it please possible to rewrite the SQL query
SELECT DISTINCT ON (uid)
uid,
female,
given,
photo,
place
FROM words_social
WHERE uid IN (SELECT player1 FROM games)
OR uid IN (SELECT player2 FROM