Hi Pradeep,
welcome to the forum.
Please feel free to ask any questions.
From your posts, it seems like you are trying to get a list of project guids, then for each project, get a list of user groups and users. Is that right?
Is there a reason why you are trying to get the information from the database rather than via official product API?
I wrote a little tool for the product, once installed, you can send RQL (the official project language) to query various information.
RQLConsole
To get the list of projects and project guids, run this code
<ADMINISTRATION>
<PROJECTS action="list"/>
</ADMINISTRATION>
Then for each project, you can do
<ADMINISTRATION>
<PROJECT guid="[!guid_project!]">
<GROUPS action="list"/>
<USERS action="list"/>
</PROJECT>
</ADMINISTRATION>
.
.
.
or
<PROJECT guid="[!guid_project!]">
<GROUPS action="list"/>
<USERS action="list"/>
</PROJECT>
.
.
.
just replace [!guid_project!] with guid of the project