Quantcast
Channel: SCN : Unanswered Discussions - SAP HANA and In-Memory Computing
Viewing all articles
Browse latest Browse all 4343

Remove Duplicate products on HANA

$
0
0

Hello all,

First I'm going to explain what I'm doing:

I'm using predictive analysis to create suggestions (produtcs) for the costumer. For example: who buy bread, usually buy milk.

But I'm having problem to run that algorithm (APRIORI) because I need to remove duplicates first.

Then a guy (Bimal) helped me by creating an algorithm that removes duplicates, but when I add more columns (for example from place) it gives an error. Than he suggested me remove duplicates on HANA! Does anyone here knows how can I do that?

I'm going to explain a "fake" table:

 

    Product          UserID          Store          Purchase Nº

        A                1234               Aa                  1

        A                1234               Aa                  1

        B                1234               Aa                  1

        C                2345               Bb                  2

        A                1234               Bb                  2

        C                2345               Aa                  3

 

 

At this example, you can see that the user 1234 bought product A 3 times, but in different Stores, does anyone know how can I do that to remove the duplicates at the same purchase number?

 

 

 

Regards!


Viewing all articles
Browse latest Browse all 4343

Trending Articles



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