Forum Discussion
mmacygin
Oct 05, 2023Copper Contributor
How can I fill a field with info from another field
Apologies if this is super simple, but I'm having a challenge figuring it out. I have a DB created from an .xlsx. The data is made up of 3 fields. 1) name, 2) email and 3) roles. In the roles fiel...
mmacygin
Oct 06, 2023Copper Contributor
I'll have to modify the xlsx before uploading. (personal information stuff)
peiyezhu
Oct 06, 2023Bronze Contributor
How about convert the Excel sheet layout like below before import to Access?
Then I guess use transform pivot sql.statements.
//select * from split_then_transform limit 20;
cli_split_data~split_then_transform~,~ROLES;
select NAME,EMAIL,ROLES name from split_then_transformsplit;
source and expected result:
NAMEEMAILROLES
John Doe | email address removed for privacy reasons | role1,role3 |
Jane Doe | email address removed for privacy reasons | role2,role4 |
Jim Doe | email address removed for privacy reasons | role4 |
John Smith | email address removed for privacy reasons | role1 |
NAMEEMAILname
John Doe | email address removed for privacy reasons | role1 |
John Doe | email address removed for privacy reasons | role3 |
Jane Doe | email address removed for privacy reasons | role2 |
Jane Doe | email address removed for privacy reasons | role4 |
Jim Doe | email address removed for privacy reasons | role4 |
John Smith | email address removed for privacy reasons | role1 |