AndrewMozley
Programmer
I want to use SELECT-SQL to extract records from one table (of orders) with a look-up for customer name.
SELECT order.ordno, order.prod, order.qty, cust.name FROM order, cust ;
WHERE !order.shipped AND order.accno = cust.accno ;
INTO cursor t_orders
This generally works fine and gives me a cursor of outstanding orders. However I have some valid orders for which order.accno is blank, and I would still like to retrieve these orders, but leave cust.name blank in the t_orders table.
I find that these orders are not being retrieved; How can I specify that I would like such records to be selected, leaving cust.name blank, or possibly some description like “Unassigned customer”?
Thanks. Andrew
SELECT order.ordno, order.prod, order.qty, cust.name FROM order, cust ;
WHERE !order.shipped AND order.accno = cust.accno ;
INTO cursor t_orders
This generally works fine and gives me a cursor of outstanding orders. However I have some valid orders for which order.accno is blank, and I would still like to retrieve these orders, but leave cust.name blank in the t_orders table.
I find that these orders are not being retrieved; How can I specify that I would like such records to be selected, leaving cust.name blank, or possibly some description like “Unassigned customer”?
Thanks. Andrew