sql query for 3 tables

Posted by greffe on Stack Overflow See other posts from Stack Overflow or by greffe
Published on 2010-05-13T00:13:21Z Indexed on 2010/05/13 0:24 UTC
Read the original article Hit count: 732

Filed under:
|
|

i have 3 tables (A,B,C) Table A -

ID Name
1  Sam
2  Manuel
3  Jane

Table B

ID Tab_A_ID Name
1   1       Meer
2   1       Kutti
3   2       Mikaro

Table C

ID Tab_B_ID Price
1  1        255.11
2  1        30.52
3  3        125.22

I need a query that shall pick up the top price for TableA-Name from TableC. So only 1 top price for 1 nae record. e.g.-

Sam - 255.11

Manuel - 125.22

How can i get this?

© Stack Overflow or respective owner

Related posts about sql

Related posts about query