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
18 - Pollux
18 - Pollux

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