Hello!
What i am trying is, fetching data from two tables.
table1(srno,col1,col2)
table2(srno,table1_srno,col1,col2)
Now table2 contain records which has repeated table1_srno (as foreign key).
I want that the maximum srno should be return from table2 for each srno in table1.
i tried this,
select *
from table1 a, table2 b
where a.srno = b.table1_srno order by a.srno group by b.table1_srno
But i got an error! Please suggest me a right syntax.
I m stuck in this problem since last 2 days. & i Hope you understand what i said above, or i will give more explanation.
Thank You,
- Kiran.