A Simple question about Dataet with mutitables

  • Thread starter Ing. Rajesh Kumar
  • Start date
I

Ing. Rajesh Kumar

Hi Everybody
I have three tables USERS, ROLES and GROUPS in a SQL Server. As you can
guess, I am using these tables to check permissions. Now I converted these
SQl tables into XML tables and put them into roles.xml and created an
roles.xsd with PK's and FK's. For testing I can load this file into a
Dataset and then display the tables into three different DataGrids. Now I
want to get one table based on the combination of these three tables. The
following command is equivalent in SQL Server.

SELECT * FROM TABLE1, TABLE2, TABLE3 WHERE TABLE1.ID = TABLE2.ID AND
TABLE1.GROUPID = TABLE3.GROUPID

So how can I combine the tables DS.Tables("users"), DS.Tables("roles"),
DS.Tables("groups") ?

Probably it can be done by using DataViews but cannot find out how. A good
example or good link will be very helpfull.
Thanks in advance
Raja
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top