|
|
|||||||
| About Us | Register | FAQ | Members List | Calendar | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
The Handsome Man
![]() ![]() ![]() ![]() Join Date: Nov 2002
Location: Unlucky Place
Posts: 881
|
How to join 2 DataTable in a Dataset in VB.NET?
helo, anyone have any idea of how to join two data table through a primary key in a dataset. For more specific, I have a "employee" table and a "user" table in a dataset. Not all employee are users, but user must be employee. Thus, i want only the employee that are users are displayed in the datagrid. I am using VB.Net as my programming language. Thanks in advance.
__________________
PROCESSOR: AMD Athlon 64 3000+ @1.8Ghz RAM: Kingstone 512MB PC3200 MOBO: ECS Nforce4 A939 VGA: Pixelview Geforce 6600GT (Golden Limited Edition) 128MB OS: WinXP pro Service pack 2 |
|
|
|
|
|
#2 (permalink) | |
|
Rosen Ritter
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Apr 2001
Location: Brazil
Posts: 3,394
|
Quote:
[]s Badaro
__________________
My old signature became obsolete and I lack imagination to make a new one. Last edited by Badaro; May 18th, 2004 at 03:18. |
|
|
|
|
|
|
#4 (permalink) |
|
Emu author
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Join Date: Mar 2002
Location: Vienna/Austria/Europe
Posts: 1,168
|
My guess: "select employee.* from user, employee where user.employee_id = employee.id" but it's only slightly different from Proto's attemt.
__________________
If you think my English is bad, wait till you read my Polish. |
|
|
|
|
|
#5 (permalink) |
|
The Handsome Man
![]() ![]() ![]() ![]() Join Date: Nov 2002
Location: Unlucky Place
Posts: 881
|
thanks any other idea would be welcome, btw I'm using VB.net.
__________________
PROCESSOR: AMD Athlon 64 3000+ @1.8Ghz RAM: Kingstone 512MB PC3200 MOBO: ECS Nforce4 A939 VGA: Pixelview Geforce 6600GT (Golden Limited Edition) 128MB OS: WinXP pro Service pack 2 |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|