|
It is good practice to qualify almost everything - but it isn't
required, unless the same name is used in 2 tables - it's possible here
that it is only in T02?
Still, better to be safe than sorry!
Vern
On 4/8/2014 11:56 AM, Hoteltravelfundotcom wrote:
still not working. i have the qualfier nowstephenrichter@xxxxxxxxx>wrote:
FROM mklib.CUST5000 T01 INNER JOIN
ASTDTA.OEINHDIH T02
ON T01.IHENT# = T02.IHENT#
WHERE T02.IHORDT IN ('COR', 'COE')
On Tue, Apr 8, 2014 at 12:50 PM, Hoteltravelfundotcom <
hoteltravelfun@xxxxxxxxx> wrote:
ah yes sorry bout tht.
On Tue, Apr 8, 2014 at 12:40 PM, Steve Richter <
on the WHERE clause IHORDT is not qualified:
create view mklib.CUST5000A AS
select a.IHDOCD, a.IHENT#, a.IHSFX#, a.IHINV#,
a.ADINTA,
b.IHRIDC, b.IHCOM#, b.IHIDC#, b.IHENT#,
b.IHSFX#,
b.IHINV#, b.IHDOCT, b.IHORD#, b.IHREL#,
b.IHORDT,
b.IHFL50, b.IHDOCD, b.IHFL51, b.IHORDD
FROM mklib.CUST5000 a
join ASTDTA.OEINHDIH b
ON a.IHENT# = b.IHENT#
WHERE b.IHORDT IN ('COR', 'COE')
On Tue, Apr 8, 2014 at 12:16 PM, Hoteltravelfundotcom <
hoteltravelfun@xxxxxxxxx> wrote:
Am getting error, 'Column List required'. When i run this plainly forlist
viewing in SQL it is fine.
create view mklib.CUST5000A AS SELECT
ALL T01.IHDOCD, T01.IHENT#, T01.IHSFX#, T01.IHINV#,
T01.ADINTA,
T02.IHRIDC, T02.IHCOM#, T02.IHIDC#, T02.IHENT#,
T02.IHSFX#,
T02.IHINV#, T02.IHDOCT, T02.IHORD#, T02.IHREL#,
T02.IHORDT,
T02.IHFL50, T02.IHDOCD, T02.IHFL51, T02.IHORDD
FROM mklib.CUST5000 T01 INNER JOIN
ASTDTA.OEINHDIH T02
ON T01.IHENT# = T02.IHENT#
WHERE IHORDT IN ('COR', 'COE')
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
To post a message email: MIDRANGE-L@xxxxxxxxxxxx--
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list
To post a message email: MIDRANGE-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/midrange-l.
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.