Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 3510

HANA SQL Join only first entry of another table

$
0
0

http://stackoverflow.com/questions/6792285/sql-distinct-based-on-only-some-columns

 

Hi Folks,

 

I got the requirement to join from another table only the first matching entry (as the second table contains several records that match the criteria)

Something similar like described in the above link.

 

However, when I implement the inner join with the WHERE condition and select top 1 it complains thatTOP cannot be used in subquery.

 

Does anybody know how to solve this?

Cover the requirement differently?

 

Thanks for all replies in advance.

 

Best regards,

Axel


Viewing all articles
Browse latest Browse all 3510

Trending Articles



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