Wet_Blanket
Registered User.
- Local time
- Today, 12:42
- Joined
- Dec 3, 2008
- Messages
- 113
Good Afternoon,
I have the below Union Query that I want to turn into a make table query. But I can't figure out where to put the INTO clause. No matter where I stick it, I get errors.
SELECT acct_num, br_id, fa_id, acct_pgm, acct_pgm_assn_end_dt, client_tr_dt, trade_date, trans, symbol, shares, client_price, price
FROM [nonmgd BUYS]
UNION SELECT acct_num, br_id, fa_id, acct_pgm, acct_pgm_assn_end_dt, client_tr_dt, trade_date, trans, symbol, shares, client_price, price
FROM [nonmgd ClsdBUYS]
UNION SELECT acct_num, br_id, fa_id, acct_pgm, acct_pgm_assn_end_dt, client_tr_dt, trade_date, trans, symbol, shares, client_price, price
FROM [nonmgd SELLS]
GROUP BY acct_num, br_id, fa_id, acct_pgm, acct_pgm_assn_end_dt, client_tr_dt, trade_date, trans, symbol, shares, client_price, price;
I have the below Union Query that I want to turn into a make table query. But I can't figure out where to put the INTO clause. No matter where I stick it, I get errors.
SELECT acct_num, br_id, fa_id, acct_pgm, acct_pgm_assn_end_dt, client_tr_dt, trade_date, trans, symbol, shares, client_price, price
FROM [nonmgd BUYS]
UNION SELECT acct_num, br_id, fa_id, acct_pgm, acct_pgm_assn_end_dt, client_tr_dt, trade_date, trans, symbol, shares, client_price, price
FROM [nonmgd ClsdBUYS]
UNION SELECT acct_num, br_id, fa_id, acct_pgm, acct_pgm_assn_end_dt, client_tr_dt, trade_date, trans, symbol, shares, client_price, price
FROM [nonmgd SELLS]
GROUP BY acct_num, br_id, fa_id, acct_pgm, acct_pgm_assn_end_dt, client_tr_dt, trade_date, trans, symbol, shares, client_price, price;