Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with data merg

Status
Not open for further replies.

icetea

Technical User
Nov 28, 2002
45
US
I have two tables. Table one has three fields but only field 1 and field three are used. Field one is a number and three is a name. I am wanting to dosplay the name only when I do a quire of the other table. Table two is all numbers field one is the master that I need to have shown and all that are assigned to it using the names from table one field three. Can anyone help.

Table one

1081004 Aaron Michael
2164 3164 Aarons Tami
45011 AbdelKader Daniel
2178 3178 Adeogba Natasha
53009 Agee Benjamin
58003 Agliano Tami


Table two

1080000 1080003 1080005 1080006 1080007 1080001 5542 1080004 1903 1958 1080002 1080008 1008888
246 1331 5620 3275 4412 1283 1925 5643 1317 5630 6992 6999 5705 4405
26734781 5759 1859 1850 1886 5549 5502 5565 5575 1349 1903 1930 5547 90007 90008
345671 5728 5721 2156 5720 3269 5668 5727 1869 5663 2145 1868 5688 5758 1847 5689 5659 5682 5726 1846 345672
345672 5687 5686 2151 1870
38000 38002 38003 38004 38006 38007 38008 38009 38010 38011 38001 38005
76548 1884 5543 1903 1349 1886 5759 5573 5571 1080001 1082005 1080003 1084002
83267 1945 3210 2143 2170 5540 5579 1946 3267 1942 4408 1904 4407 5577 5518
9500 9501 9502 9503 9504 9506 9505 9507 9508 9509 9510 9511
 
Can you post the actual table names, with the field names that you want to display in the result of your query, also state the names of the field in each table that link/join the 2 tables.

 
This is AS

ID Field1 Field2 Field3
1 1081004 Aaron Michael
2 2164 3164 Aarons Tami
3 45011 AbdelKader Daniel
4 2178 3178 Adeogba Natasha
5 53009 Agee Benjamin
6 58003 Agliano Tami

This is DL
ID Field11 Field1 Field4 Field5 Field6 Field7 Field8 Field9 Field12 Field13 Field26 Field25 Field24 Field23 Field22 Field21 Field20 Field19 Field18 Field17 Field16 Field15
1 1080000 3 1080003 1080005 1080006 1080007 1080001 5542 1080004 1903 1958 1080002 1080008 1008888
2 246 3 1331 5620 3275 4412 1283 1925 5643 1317 5630 6992 6999 5705 4405
3 26734781 3 5759 1859 1850 1886 5549 5502 5565 5575 1349 1903 1930 5547 90007 90008
4 345671 3 5728 5721 2156 5720 3269 5668 5727 1869 5663 2145 1868 5688 5758 1847 5689 5659 5682 5726 1846 345672
5 345672 3 5687 5686 2151 1870
6 38000 3 38002 38003 38004 38006 38007 38008 38009 38010 38011 38001 38005
7 76548 3 1884 5543 1903 1349 1886 5759 5573 5571 1080001 1082005 1080003 1084002
8 83267 3 1945 3210 2143 2170 5540 5579 1946 3267 1942 4408 1904 4407 5577 5518
9 9500 3 9501 9502 9503 9504 9506 9505 9507 9508 9509 9510 9511
10 9501 3 1917 1875 5611 1905 5610 1279 3202 1290 1322 5661 1906 1306 1893 4392 5570 4384 5583 1941 5502 5549
11 9502 3 5627 5634 5621 5568 5574 2169 2150 6558 3266 3249 1862 1281 1959 5599 6532 1933 4415 1300 5543 1314
12 9503 3 5654 1318 5664 5646 1355 1958 1948 5548 4393 1292 3217 1302 5650 1954 1304 1349 1327 1325 5701 5747
13 9504 3 1344 5571 5614 5542 1884 3237 5581 1305 5564 1883 5692 1352 5573 5667 1293 5522 5675 5633 5503 5547
14 9505 3 4416 6590 5696 3253 1854 1890 1315 1319 4409 1909 2142 2141 5755 6658 3207 1888 1299 1294 1965
15 9506 3 6533 4390 3245 5552 1297 1928 1850 5567 5612 1350 5603 6559 5673 5420 1859 5613 1923 1852 2158 4382
16 9507 3 1335 6534 1314 5531 1339 1895 1966 3243 1321 1328 5536 1284 5556 1326 5600 5744 1861 1960 1289 4383
17 9508 3 1908 1316 5753 1892 5561 5642 5597 5681 2149 1863 5544 1307 1915 1336 5545 5604 5700 1858 5736 1929
What I'm wanting to do is in table AS field 1 should = field 3 then out puls it when requested below.
From table DL I am wanting whereever field 3 from table AS is found in the fields by line 11 to outpule the names assigned to each relating to field 11 of DL.

I hope this makes sence.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top