Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
We have availalbe data like this :
Booking ID PersonID Email
B01 P01 ABC@mail.com
B02 P02 XYZ@mail.com
B03 P01 ABC@MAIL.COM
B04 P01 ABC@mail.com
B05 P02 XYZ@mail.com
Now as per scenerio , i dont to miss any data ....
like if i want unique email than my daa should like
But i want all the Booking ids....not like max of email and limited ids...
same for person id ......if i can say i want unique person than in straight table i want all booking ids and email.......kindly suggest
Like this?
what you want the actual out put
See if this kind of script you can use -
ata:
Load * inline [
Booking ID, PersonID , Email,
B01, P01 , ABC@mail.com
B02, P02 , XYZ@mail.com
B03 , P01 , ABC@MAIL.COM
B04 , P01 , ABC@mail.com
B05 , P02 , XYZ@mail.com ];
Temp:
Load
PersonID,
Count([Booking ID]) as BookingCount,
Concat(Email,',') as Email
Resident Data
Group By PersonID;
Drop Table Data;