I have two tables “client” and “proposal” in database,
db.client = > id,name
db.proposal => clientID,proposalID
select * from proposal will select all the clientID and proposalID
I want query, so that it print all proposal.proposalID with client.name instead of clientID
Another approach to “join” two tables:
Warning: I didn’t test this.
In order to understand what’s going on, I suggest you learn more about SQL Joins.
Some links to get you started:
http://www.w3schools.com/sql/sql_join.asp
http://en.wikipedia.org/wiki/Join_%28SQL%29
https://www.google.com/search?q=sql+join