Postgresql – Can I do a SQL select on a subquery and also retrieve the subquery?
I have the following SQL: SELECT id, user_id, coordinates FROM fields WHERE id IN (SELECT field_id FROM transactions WHERE id IN (11,10,12)) There are 2 tables: transactions and fields. Both of them have their own id field. However, in transactions…