
ISQL Statements
ISQL> display col 5 "Number of orders placed by", customer_name, "=", n_ord on customer_name
ISQL> compute count of order_id in n_ord on customer_name;
ISQL> select c.customer_name, o.order_id from customers c, orders o where o.customer_id = c.customer_id;
CUSTOMER_NAME |
| ORDER_ID |
| ||
Sports Cars Inc. |
| 1 |
Sports Cars Inc. |
| 2 |
Number of orders placed by Sports Cars Inc. |
| |
= | 2 |
|
Mighty Bulldozer Inc. | 3 | |
Mighty Bulldozer Inc. | 4 | |
Number of orders placed by Mighty Bulldozer Inc. |
|
=2
Ship Shapers Inc. | 5 | |
Ship | Shapers Inc. | 6 |
Ship | Shapers Inc. | 7 |
| Number of orders placed by Ship Shapers Inc. |
|
=3
Tower Construction Inc. | 8 | ||
Tower | Construction | Inc. | 9 |
Tower | Construction | Inc. | 10 |
| Number of orders placed by Tower Construction Inc. |
|
=3
If the
ISQL> display col 5 "test display. Sum of fld is", tmp on fld;
ISQL> compute sum of fld in tmp on fld;
ISQL> break on fld | |
ISQL> select fld from syscalctable; | |
FLD |
|
| |
100 | 100 |
test display. Sum of fld is | |
1 record selected |
|
ISQL> select fld "column title" from syscalctable;
COLUMN TITLE
100
1 record selected
3.7.8EDIT
Syntax
E[DIT] [stmt_num];
Description
The EDIT statement invokes a text editor to edit the specified statement from the statement his- tory buffer. If the statement number is not specified, the last statement in the history buffer is
FairCom Corporation |