Use a string value from a CTE in an IN-clause in a simple SQL query

Advertisements I am trying to make a simple SQL query in PostgreSQL to use in our team: with findData as ( select ‘(”XXX”,”YYYY”)’ as dataList ) select * from findData That gives the result: (‘XXX’,’YYYY’) Exactly what I wanted ! But I want to use it like this in a simple SQL script: select t.variabel1,… Read More Use a string value from a CTE in an IN-clause in a simple SQL query

Cannot use CTEs for some reason, so how to use subqueries instead, for MySQL RDS on AWS

Advertisements I’m working with AWS RDS MySQL and using MySQL Workbench to develop the queries before moving them into the Lambda integration function for my HTTP API on AWS API Gateway. I created this query: use prod_esports; WITH muuid AS (select * from game_match where uuid = ‘2e4f899a-d690-4d41-8c31-c9f89e6a2e4d’), teamID AS (SELECT id FROM team WHERE… Read More Cannot use CTEs for some reason, so how to use subqueries instead, for MySQL RDS on AWS