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

SQL Error on 'Create Table' - response (7) by ranjit75raj

$
0
0

Hi, I have employee table and there are 100 records. there is empno column which is UPI and deptno column which in NUSI. Now when I am running the below query.

Select * from employee where deptno in(10,20) order by salary;

now when we execute this query, it will do All-AMP operation as NUSI is there in deptno column. it will hit the subtable and get all the rowhash for deptno 10 and 20. data might come from different AMP. Now question is while returning the recordset to user, where it will sort the data based on salary and how as I given "order by salary" in my select statement.

Thanks in advance.

-Ranjit


Viewing all articles
Browse latest Browse all 14773

Trending Articles



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