SQL views and indexes are logical files with some extra or different attributes.

You can use a view or index in an F-spec, so if you don't care about sort order, just create a view with an WHERE clause over the SQL table.

If order does matter, create an index with the key columns you need and use the same WHERE CLAUSE there - that index can be used in an F-spec, too.


On 10/16/2020 9:47 AM, Greg Wilburn wrote:
I've been using SQL I programs and to create views for quite some time. I'm trying to force myself away from DDS.

So I created a new table with SQL... now I need to create a subset of that table by way of a logical file (I want to use RPG Native access in my program), which can also be updated.

Is there a simple way to create a view of my table that contains all columns "where" one of the columns is blank?

My current take on DDL versus DDS is that DDS is much, much easier and faster to use.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2020 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].