I am sure this is something simple that I am just making complicated, but anyways hope you can help.
I have a SELECT statement that LEFT JOINS a table and returns a resultset that looks like this.
+++++++++++++++++++++
| id_amdf | Company | State |
+++++++++++++++++++++
| 200001 | AFL | VA
| 200001 | AGA | VA
| 200001 | AGF | OH
| 200001 | AGL | VA
| 200001 | AGL | MD
| 200001 | AIL | VA
| 200001 | ALA | VA
| 200001 | AMX | VA
+++++++++++++++++++++
With this I am trying to print out the results in this arrangment.
+++++++++++++++++++++++++++++++++++++++++
Company Name States Located
+++++++++++++++++++++++++++++++++++++++++
AFL VA
AGA VA
AGF OH
AGL VA, MD
AIL VA
ALA VA
AMX VA
+++++++++++++++++++++++++++++++++++++++++
If the company is located in two states then dont print the information twice just put all the states in that same table cell.
I hope you can help me. Thanx!!!