can we use join inside join in mysql?

Posted by I Like PHP on Stack Overflow See other posts from Stack Overflow or by I Like PHP
Published on 2010-05-21T12:13:12Z Indexed on 2010/05/21 12:20 UTC
Read the original article Hit count: 273

Filed under:

i have 3 tables structure is below

tbl_login

login_id | login_name 
   1     |  keshav

tbl_role

role_id | login_id( refer to tbl_login.login_id)
 1      |    1

tbl_stuff

stuff_id | role_id( refer to tbl_role.role_id)
   1     |   1

i need data in follow format

stuff_id | login_name
   1     |   keshav

how to use JOIN to retrive the above data in mysql?

© Stack Overflow or respective owner

Related posts about mysql-query