In case you missed the announcement: The Alteryx One Fall Release is here! Learn more about the new features and capabilities here
ACT NOW: The Alteryx team will be retiring support for Community account recovery and Community email-change requests Early 2026. Make sure to check your account preferences in my.alteryx.com to make sure you have filled out your security questions. Learn more here
Start Free Trial

Alteryx Designer Desktop Discussions

Find answers, ask questions, and share expertise about Alteryx Designer Desktop and Intelligence Suite.

Read SQL and extract column name with table name

swapnilm
5 - Atom

Let's say I have the below SQL which have multiple tables

Eg below:

 

SELECT p.ProductID, p.ProductName,c.CategoryName
FROM Products p
INNER JOIN Categories c ON p.CategoryID = c.CategoryID;

 

Am expecting the output to be on two columns column name and their respective table name.

 

Column Name.   Table Name
ProductID             Products
ProductName.     Products
CategoryName.  Categories

 

1000094829.jpg

 

2 REPLIES 2
alexnajm
19 - Altair
19 - Altair

Your SQL statement is going to pull through actual data - three columns called ProductID, ProductName, CategoryName. If you want the metadata about the column names and table names, check out how to do it in the technology of your choice

Labels
Top Solution Authors