473,508 Members | 2,412 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to join data of both tables

5 New Member
Hai i have two tables IN ACESS one rc table and dl table which contains of names,father name and address in both tables which contains of same name in different like in rc table name is shaik jeelan and in dl table name like s jeelan how can i match like this data of both tables
I AM TRYING USING QUEARY LIKE
SELECT RC.NAME,DL.NAME,DL.FATHERNAME,RC.FATHERNAME FROM RC,DL WHERE RC.NAME LIKE '*DL.NAME*' AND DL.FATHERNAME LIKE '*RC.FATHERNAME*', BUT NO RECORDS ARE GETTING
Jul 28 '15 #1
7 1433
Rabbit
12,516 Recognized Expert Moderator MVP
In that particular case, you join the first initial of the first name in rc to the letter in dl and the last name in rc to the last name in dl.

You will need to account for all the variations yourself with code. Whether you decide to hard code all the variations yourself or use a fuzzy matching algorithm, that's up to you. There's no easy way for you to do this. Whatever you choose, prepare to do a lot of complex coding.
Jul 28 '15 #2
GORKAL
5 New Member
Can u give an example
Jul 28 '15 #3
Rabbit
12,516 Recognized Expert Moderator MVP
An example of a complex join using your sample data above would be:
Expand|Select|Wrap|Line Numbers
  1. table1 INNER JOIN
  2. table2 ON
  3. LEFT(table1.FirstName, 1) = table2.FirstInitial AND
  4. table1.LastName = table2.LastName
Jul 28 '15 #4
GORKAL
5 New Member
But using above queary i am getting data if names are sane in both tables
Jul 29 '15 #5
Rabbit
12,516 Recognized Expert Moderator MVP
If by "sane", you mean "same", then that's correct. You want to return names that match and those that match based on the first initial. It's what you said you wanted in the first post.
Jul 29 '15 #6
GORKAL
5 New Member
Hai thanks for ur reply actually what i want is in one table name will be like mehaboob and in another table name will be like Mahaboob how to use contains or like function in query
Jul 29 '15 #7
Rabbit
12,516 Recognized Expert Moderator MVP
That's not what you said in the original. It's difficult to answer your questions when you don't give accurate details.

In your scenario, you will need to use a fuzzy matching algorithm. Which one you choose is up to you but be prepared to do a lot of complex coding.

You can start with these to get an idea of what you're in for:
http://bytes.com/topic/access/insigh...tring-matching
http://bytes.com/topic/access/insigh...tring-matching
Jul 29 '15 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

2
1500
by: Jim G | last post by:
I have two tables: TestA and TestB. Both tables have 3 fields: ID, Name, and RunDate. I need to create a query which will join the two tables first on Name but then I need to match up the...
2
5883
by: narasingarao | last post by:
Hi to group, I'm a student of M.C.A. from B.I.T. Ranchi...I'm in my project period here i have to migrate the MS-Access database table to Oracle data base tables...so, please help me in getting...
3
2626
by: Andy S | last post by:
Hi, A couple of guys on the SQL Server forum solved this one yesterday but they used a FULL OUTER JOIN, which, little known to me is missing from Accesss and therefore the JET engine. Can anyone...
6
7323
by: Noozer | last post by:
We've created a new database and need to import the data from our old database. Both are MS Access databases and each have multiple tables. The table structure of each table is completely different...
0
1721
by: ET | last post by:
We have two tables... one with primary key ID and second table with secondary key to the ID in the first table... Now, they query pulls records from both tables, looks like this: SELECT...
4
1853
by: TGEAR | last post by:
Itemlookup table Field names : index_id (primary key), itemno, description. It has a child table, which is ItemPriceHistory table The relationship to the child table is one (parent table)-to-many...
3
1470
by: geek491 | last post by:
HI I have 2 tables. table1 has all dates from DAY1 - DAY7 COL1 --------- DAY1 DAY2
1
3695
by: dharmu131983 | last post by:
Hi, i have 2 tables A & C but i dont have any column common to join them. so i am using a 2nd table say B from my data base and using that i am joing A and C. I want only distinct Values from the...
1
1637
by: lajeev prasad r | last post by:
want to transfer data from one database table to another .both tables have the same structure.
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7115
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7036
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7489
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5624
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4705
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3191
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1547
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
762
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.