Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

SAS SQL Create Table & Group by problem when querying a Teradata DB. - response (4) by keshav

$
0
0

Try this
create table test1 as
(SELECT * from connection to tera2
(select
a.SRC_CUST_ID as custid,
a.CUST_NM  as name
FROM db.CUST a
WHERE a.SRC_CUST_ID= 'xxxxxxxxx'
GROUP BY a.SRC_CUST_ID,
        a.CUST_NM
)dt)with data and stats;


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>