Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
prashanthi_gn
Contributor III
Contributor III

Extract Year from Data/Time Field

Need to create a report on count and list of tables from table of sql statement

5 Replies
felipe_dutra
Partner - Creator
Partner - Creator

Have you tried this?

Year(Data/Time Field)

prashanthi_gn
Contributor III
Contributor III
Author

Hi Felipe_dutra

Thank you very much for the response but the question is about the extracting the table names from a SQL command.

Got posted under the wrong subject.

prashanthi_gn
Contributor III
Contributor III
Author

Let me explain again..

 I have a column called statement where the data will be like " select * from table 1 where ...."

Now I have to pull 'table ' into a separate column.  Statement can have multiple tables (table 1 table 2).. in this case i should get 2 tables from the fields.

felipe_dutra
Partner - Creator
Partner - Creator

TAB:
LOAD *,
Trim(SubField(TextBetween(Replace(statement,'where',';'),' from ',';'),',')) as Table
Inline [
statement
"select * from table1 where id>100;"
"select * from table2, table3;"
"select * from Customers;"
];