Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Art S. Kagel — — source: Informix-list mailing list archive (1991-1998)
xtcpl wrote:
>
> I am trying to do a select that of all of the columns in one table of a
> join.
>
> SELECT s.*
> FROM strcustr s, appoehdr a
> WHERE (s.cust_code = a.cust_code AND a.order_no=3453) OR
> (s.cust_code = a.cust_code AND a.order_no=3455);
>
> Is the s.* a legal statement or do I need to enumerate all of the
> columns in strcustr?
That's perfect.
Your statement should work fine. You could make the SQL a little
clearer, otherwise... To wit:
SELECT s.*
FROM strcustr s, appoehdr a
WHERE s.cust_code = a.cust_code AND a.order_no in (3453, 3455);
Art S. Kagel
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.