|
betwixt, other posts snipped
On 16-Jun-2015 07:35 -0600, Hoteltravelfundotcom wrote:FETCH FIRST 1 ROW ONLY is the way.
I have one table with all orders info and other table has the
shipping info. I only need to 'chain' one row from the shipping
table to get the ship via method. But its multi rows
so I trued top1 its not compiling. how to read just the first row
in sql on the i. I tried
top1, topn nothing is compiling.
(
SELECT TOP 1
STDTA.pshipll1.phviac
FROM
STDTA.pshipll1
WHERE
"SHPWEIGHT"."IDORD#" = STDTA.pshipll1.phord#
)
<<SNIPped>>
I don't use group by because am using
a logical that is order by order#
As an Amazon Associate we earn from qualifying purchases.
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.