M
M
Maxim Rudnev2018-02-15 21:04:10
SQL
Maxim Rudnev, 2018-02-15 21:04:10

Question from the last interview: Draw a database in which you can store a forest of trees of arbitrary branching with one node attribute string?

I was embarrassed at the pikche, I wanted to say about the one-to-many relationship. Got this task. Decided like this 5a85cb5611a31456532940.png: What do you think?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2018-02-15
@stigmt

I will say that only one table is needed for this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question