The sel_all.sql command file

The following example command file contains all seven SELECT statement clauses that you can use in the HCL Informix® implementation of interactive SQL. This SELECT statement joins the orders and items tables. It also uses display labels, table aliases, and integers as column indicators; groups and orders the data; and puts the results into a temporary table.
SELECT o.order_num, SUM (i.total_price) price,
     paid_date - order_date span
   FROM orders o, items i
   WHERE o.order_date > '01/01/90'
      AND o.customer_num > 110
      AND o.order_num = i.order_num
   GROUP BY 1, 3
   HAVING COUNT (*) < 5
   INTO TEMP temptab1;

Copyright© 2018 HCL Technologies Limited