Example 1. Find out the list of customers who have made a purchase. e.g. xtuniq -k CustomerID -i dat.xt -o rsl.xt Output file -rsl.xt
Example 2. Find out the list of customers who have made a purchase in sequential order. e.g. xtuniq -k CustomerID -q -i dat.xt -o rsl.xt Output file -rsl.xt
Example 3. Find out the dates each customer visits the store.
Since a customer will most likely to purchase more than one item for each visit, there will be multiple transaction lines with the same date for each customers. xtuniq removes the duplicates and select one unique purchase date for each customer with key field customer and date.
e.g. xtuniq -k customerID,date -i dat.xt -o rsl.xt
Output file -rsl.xt