I have two tables tbl_user and tbl_lastchangepassword as shown below
Table tbl_user
id| name
---------
1 | user1
2 | user2
3 | user3
Table tbl_lastchangepassword
id | loginid | date_password
----------------------------
1 | 1 | 2014-03-29
Relation of Above table (tbl_user.id = tbl_lastchangepassword.loginid)
How do I get output as
id | name| date_password
---------------------
1 |user1 | 2014-03-29
2 |user2 | null
3 |user3 | null
Thank you.