Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

mysql with

WITH
  cte1 AS (SELECT a, b FROM table1),
  cte2 AS (SELECT c, d FROM table2)
SELECT b, d FROM cte1 JOIN cte2
WHERE cte1.a = cte2.c;
Source by dev.mysql.com #
 
PREVIOUS NEXT
Tagged: #mysql
ADD COMMENT
Topic
Name
1+1 =