Quantcast
Channel: SCN : Discussion List - SAP HANA Developer Center
Viewing all articles
Browse latest Browse all 6412

How to do a lookup

$
0
0

I need some guidance on best way to do this in HANA

 

Customer    Group     

(blank)         AB          

C1234          CD         

 

I need to assign a Group to each Customer.  If the Customer is maintained in the table, use the Group assigned to the customer.  If the Customer is not found, assign to Group 'AB'.

 

Can I do this using Joins or do I have to write SQL Script code?

Thanks.


Viewing all articles
Browse latest Browse all 6412

Trending Articles



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