Hi,
A SQL query on the existence of columns in two tables. For example, tables A and B have many columns, respectively, such as COLA1, COLA2, COLAM, and COLB1, COLB2, COLBN. I wish to write a SQL query to check whether Table C's columns (COLC1, COLC2, COLCL) exist in Table A and B. If possible, I prefer not to answer the question with the information_schema.columns, but use the joins/subqueries between A and B.
Thanks in advance!
-CUQ