I have two tables one parent table
ID Name
1  Sam
2  Ricky
Then i have a child table , here we have one to many relation ship like record sam has multiple address
Like (Child Table)
ID Parent_ID Address
1  1         Newyork
2  1         Chicago
Now what i wanna do is to write a query where i will get data from both the table like
ID Name Address1 Address2
1  Sam  Newyork  Chicago
I know what is the maximum no of address present. Even some data has one address . in that case the Address2 will be null or empty.
Thanks for help !!
 
     
    