# I am novice in database

**URL:** <https://community.easymorph.com/t/i-am-novice-in-database/791>\
**Category:** General Q&A\
**Created:** [October 27, 2018, 5:52pm UTC](https://community.easymorph.com/t/i-am-novice-in-database/791 "2018-10-27T17:52:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![smmsamm](https://community.easymorph.com/letter_avatar_proxy/v4/letter/s/ebca7d/32.png) [@smmsamm](https://community.easymorph.com/u/smmsamm)\
**Post date:** [October 27, 2018, 5:52pm UTC](https://community.easymorph.com/t/i-am-novice-in-database/791/1 "2018-10-27T17:52:12Z")

</div>

Dear Sir, I am searching for some software that convert my Big CSV data file :  
1 A C Z F G  
2 G Q R C  
3 Z G Q  
4 C F  
5 O P  
I have a table with 1-1000000 records like these 5 records you see, records 1 and 2 are common in G and C data  
I want to sync records if they have at least two common data like 1 & 2 and generate a list like this:  
1 A C Z F G Q R  
2 G Q R C A Z F  
3 Z G Q A C F R  
4 C F A Z G Q R  
5 O P

at the end we have 4 same records if we sort data and one without sync:

1 A C F G Q R Z  
2 A C F G Q R Z  
3 A C F G Q R Z  
4 A C F G Q R Z  
5 O P

Does your Software can help me? How?  
Thank you

---

<div class="post-metadata">

**Author:** ![dgudkov](https://community.easymorph.com/user_avatar/community.easymorph.com/dgudkov/32/5_2.png) [@dgudkov](https://community.easymorph.com/u/dgudkov)\
**Post date:** [October 27, 2018, 6:09pm UTC](https://community.easymorph.com/t/i-am-novice-in-database/791/2 "2018-10-27T18:09:43Z")

</div>

Can you please elaborate the logic -- how did you go from

1 A C Z F G  
2 G Q R C

to

1 A C Z F G Q R  
2 G Q R C A Z F

?

---

<div class="post-metadata">

**Author:** ![smmsamm](https://community.easymorph.com/letter_avatar_proxy/v4/letter/s/ebca7d/32.png) [@smmsamm](https://community.easymorph.com/u/smmsamm)\
**Post date:** [October 28, 2018, 3:39pm UTC](https://community.easymorph.com/t/i-am-novice-in-database/791/3 "2018-10-28T15:39:52Z")

</div>

1 has A **C** Z F **G**  
2 has **G** Q R **C**  
1 & 2 have two words in common thus they sync to one Data **A C Z F G Q R**  
other lines too will recognize and syncronize if they have two common fields

---

<div class="post-metadata">

**Author:** ![dgudkov](https://community.easymorph.com/user_avatar/community.easymorph.com/dgudkov/32/5_2.png) [@dgudkov](https://community.easymorph.com/u/dgudkov)\
**Post date:** [October 28, 2018, 5:20pm UTC](https://community.easymorph.com/t/i-am-novice-in-database/791/4 "2018-10-28T17:20:31Z")

</div>

This is a clustering task. While it's technically feasible to do in EasyMorph using complex logic, for a dataset with 1mln records it would take probably weeks to complete as it would require at least 10^12 matches.

It should be solved by writing a program (e.g. in F# or Python) using clustering algorithms, not a general-purpose tool like EasyMorph.
