× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Isn't that what views are for?  I think the use of views would really make 
queries a lot easier.  What's the biggest complaint most people have about 
Query/400?  Probably
1 - figuring out what tables and columns.
2 - How to join them together

And you can make them easier by doing a little math in the view
create view qtemp/OpenOrders as 
 (select hord as Order#, 
         hcust as Customer#, 
         hedte as OrderDate, 
         decimal(lqord-lqshp,11,3) as QtyRemain,
         lprod as Item# 
  from ppidivf/ech join ppidivf/ecl 
  on hord=lord 
  where hstat<>'C') 

Then it's a simple matter of
select * 
from openorders 
order by customer#, item#

The biggest thing the new gui tools do is to strongly encourage you to do 
all this in the 'set up' phase.  They just do it under the covers so that 
it doesn't look like this is what you are doing.

Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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

This mailing list archive is Copyright 1997-2024 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].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.