Select a particular value from child table

Hi There,

I have the following table structure:

Table Parent (Name, Address, Oldest_Child)

Table Child(Name, Parent_Name[Reference to Parent],age)

I want to populate the parent.oldest_child with the name of the oldest child of the parent. What is the best way to do that?

Solved Solved
0 3 499
1 ACCEPTED SOLUTION

Steve
Platinum 5
Platinum 5

@dheerajnagpal wrote:

I want to populate the parent.oldest_child with the name of the oldest child of the parent.


ANY(ORDERBY([Related Childs], [age], true))

View solution in original post

3 REPLIES 3
Top Labels in this Space