FYR.
SELECT SUM(C1)
FROM
(--1st select stmt
SELECT SUM(balance) c1 FROM table1
WHERE date='2008-11-30' AND arrears='5 Days'
UNION ALL
--2nd select stmt
SELECT SUM(balance) c1 FROM table2
WHERE date='2008-11-30' AND section='Retail_outlet' AND arrears='10 Days') T;
FYR.
UPDATE B
FROM
TNATDATA.FACT_HR_ASCPAYINFO A,
TNATDATA.CYBPRCU01 B
SET
SHOP_NBR = A.HOME_SHOP_NBR
WHERE
A.EMP_NBR = B.PAYROLL_NBR AND
A.WK_END_DATE = '2007-03-17'
You mistook the SQLs which I posted.
I tried to insert into ttemp.t1 which is 'MULTISET' and no matter SET or MULTISET ttemp.t2 is, the answer will always be:
2
2
which means that the fisrt sampling in the macro DOES NOT work.
The STRANGEST thing is that the inserted rows of 'exec...
I knew that and I think it is not correct!
Because, the table which I inserted is "MULTISET".
The STRANGEST thing is that the inserted rows of 'exec ttemp.test_mac' in "RELEASE V2R.05.00.02.03,VERSION 05.00.02.06" are 2 rows, but in "RELEASE V2R.05.00.00.11 VERSION 05.00.00.11" are 3 rows.
Dear All,
When I created a macro (see below, ttemp.test_mac, DB Version: "RELEASE V2R.05.00.02.03,VERSION
05.00.02.06") and ran this macro, a strange thing happened! The inserted rows of "exec ttemp.test_mac" ARE "2", NOT "3"!! AND, There is only one "SAMPLING" in the EXPLANATION.
Does...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.