Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Flattening" records into unique rows #388

Closed
jasloe opened this issue Jan 10, 2022 · 3 comments
Closed

"Flattening" records into unique rows #388

jasloe opened this issue Jan 10, 2022 · 3 comments

Comments

@jasloe
Copy link

jasloe commented Jan 10, 2022

I'm pretty familiar with the fix language but having a hard time conceptualizing the following problem. Short of attaching Catmandu output to an external data store or RDBMS, is there a way to "flatten" records into a relational table, i.e.:

MARC sources
=001  80211
=650  \0$aMusic for cellos
=650  \0$aConcertos (strings)

=001  80212
=650  \0$aMusic for violin
=650  \0$aConcertos (strings)
output.csv
001,650a
80211,Music for cellos
80211,Concertos (strings)
80212,Music for violin
80212,Concertos (strings)

or, even better, with unique identifier...
unique_id,001,650a
1,80211,Music for cellos
2,80211,Concertos (strings)
3,80212,Music for violin
4,80212,Concertos (strings)
@phochste
Copy link
Member

phochste commented Jan 11, 2022 via email

@vpeil
Copy link
Member

vpeil commented Aug 22, 2022

Question seems to be solved.

@vpeil vpeil closed this as completed Aug 22, 2022
@jasloe
Copy link
Author

jasloe commented Aug 24, 2022

Solved indeed. Thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants