Hey today I was in a job interview where they gave us a tree with unknown structure(could b not binary) and i was asked to insert it to a database in a certain order where I could turn back the db into tree and show I have done it using ER model, every node in the tree has two data members data1 and data2
can someone answer or give me an hint for how it's done ?
EDIT: what I wrote is because every child has a father we should add relation between the nodes father and son because son has onley one father the son has a arrow one to one to his father ' i gave for everyy one of them an index and every sun had his father pointer and what does it got to do with the ER model ' i dont knoww too this is why i asked it here.