usertable
----
id, username
grouptable
----
id, groupname
group_user
--------
uid, gid
books
----
id, groupname
Input parameters: groupname, username
output: list of books
Is it possible to use 1 sql statement to get list of books when username is inside groupname
Question 2: any good book to recommand to master complex sql statement..
This query gives list of books by user parametar
Also i think if you have the group name you can use
Bus having select on both parameters i think is not very good think. This query will get
list of books for user group name