Retrieving Data From All Members With SQL
March 1, 2016 Michael Sansoterra
Note: The code accompanying this article is available for download here. Everyone knows that DB2 for i SQL doesn’t play well with legacy multi-member database files. The CREATE ALIAS statement allows SQL to access a particular member of a file. But what if you want to access all members in a file using SQL as though they were a single member? A reader recently inquired about this topic and further wanted to know if there was a built-in SQL function to return each row’s member name. NOTE: For clarification, I’m not discussing members of a DB2 partitioned table. Here |