Page 1 of 1

How to SELECT the MAX of a column in a virtual table?

Posted: Thu Nov 10, 2016 3:13 pm
by truenorth
I am trying to create a virtual table that would only select the MAX of a column. I cannot find a way to use a function, e.g., MAX, on the columns that are selected in creating a virtual table.

For example:

EP_ID
300
400
150
277

I only want the row where EP_ID is 400.

Thanks in advance.

Posted: Fri Nov 11, 2016 11:20 am
by ray.wurlod
Not possible in version 8, in which the virtual table is driven only via a WHERE clause. Once you get version 11.5 you will have the full capabilities of SQL for virtual tables in Information Analyzer.

Posted: Fri Nov 11, 2016 9:11 pm
by truenorth
My apologies, Ray. Forgot to update the version. I think we are on 11.3.1.2. Not quite it?

Posted: Mon Nov 14, 2016 8:37 am
by qt_ky
IBM just had a webinar on this topic--SQL-based virtual tables--a few weeks ago; it is a new feature in version 11.5. It appeared to be command-line driven, with the idea of making the feature available in the IA GUI in a future release. We are also on version 11.3.1.2, so... not quite there yet.

Posted: Mon Nov 14, 2016 8:44 am
by truenorth
Thanks, guys. We'll be eagerly waiting for the GUI update. Meanwhile, would you have any material on the command line method?

Posted: Mon Nov 14, 2016 3:14 pm
by qt_ky
Ah, here it is...

IBM Tech Talk: Virtual Table Feature in Information Analyzer
https://www.youtube.com/watch?v=wBlg2tEB1bA

Posted: Wed Nov 16, 2016 12:12 pm
by truenorth
Many thanks!