Make Query which,...
- Show the names of borrower and which book they have borrowed. Result should be like this
+-----------+----------+------------------------------------+
| firstname | lastname | name |
+-----------+----------+------------------------------------+
| Kay | Naquin | TBA |
| Leonard | Rowden | Art Since 1940 |
| Leonard | Rowden | Art History Vol II & ala carte lab |
| Leonard | Rowden | Drawing Manual Vilppu |
| Ralph | Shane | Everything You Ever Wanted to Know |
| Marvin | Heflin | Intermediate Accounting |
| Marvin | Heflin | Management |
| Marvin | Heflin | Business Law Today |
| Marvin | Heflin | Management Info Systems |
+-----------+----------+------------------------------------+
- The same as below but use concat and change the headins, so the the results are like this
+----------------+------------------------------------+
| borrower name | book name |
+----------------+------------------------------------+
| Kay Naquin | TBA |
| Leonard Rowden | Art Since 1940 |
| Leonard Rowden | Art History Vol II & ala carte lab |
| Leonard Rowden | Drawing Manual Vilppu |
| Ralph Shane | Everything You Ever Wanted to Know |
| Marvin Heflin | Intermediate Accounting |
| Marvin Heflin | Management |
| Marvin Heflin | Business Law Today |
| Marvin Heflin | Management Info Systems |
+----------------+------------------------------------+
- The same as below but use group_concat, so that the results are like this
+----------------+--------------------------------------------------------------------------------+
| borrower name | books |
+----------------+--------------------------------------------------------------------------------+
| Kay Naquin | TBA |
| Leonard Rowden | Art Since 1940,Art History Vol II & ala carte lab,Drawing Manual Vilppu |
| Ralph Shane | Everything You Ever Wanted to Know |
| Marvin Heflin | Intermediate Accounting ,Management,Business Law Today,Management Info Systems |
+----------------+--------------------------------------------------------------------------------+