G
Guest
I have 3 tables :
tbl1: ID,...
tbl2: ID, ID2
tbl3: ID2, value
1 links to 2 links to 3
When i use a select query i get the folowing result
ID ID2 value
1 1 2
1 2 1
1 3 7
2 1 3
3 1 4
3 2 6
now i want to use a subquery to select the ID with the ID2 where the value
is the lowest so something like this :
ID ID2
1 2
2 1
3 1
How can i do this ??
tbl1: ID,...
tbl2: ID, ID2
tbl3: ID2, value
1 links to 2 links to 3
When i use a select query i get the folowing result
ID ID2 value
1 1 2
1 2 1
1 3 7
2 1 3
3 1 4
3 2 6
now i want to use a subquery to select the ID with the ID2 where the value
is the lowest so something like this :
ID ID2
1 2
2 1
3 1
How can i do this ??