Planview interview question

Tree question and sql concepts