473,387 Members | 1,464 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

LIKE in JOIN

I have 2 tables and the only unique and common identifier is part of
url:

TABLE1.url
/legal500_html/us500/edit/usv1_in1.htm

TABLE2.url
http....html/us500/edit/usv1_in2.htmincludes/
get_content_page_l500.....

the TABLE2 url have 3 different formats so extracting the common part
of the string in not an option. The only solution comes to my mind is
to use LIKE on TABLE1.url.
Can I use LIKE on JOIN? I couldn't figure it out so far.

Thanks,
Jack

Nov 4 '07 #1
1 9793
JackpipE <pi*******@gmail.comwrote in
news:11**********************@o3g2000hsb.googlegro ups.com:
I have 2 tables and the only unique and common identifier is part
of
url:

TABLE1.url
/legal500_html/us500/edit/usv1_in1.htm

TABLE2.url
http....html/us500/edit/usv1_in2.htmincludes/
get_content_page_l500.....

the TABLE2 url have 3 different formats so extracting the common
part
of the string in not an option. The only solution comes to my mind
is
to use LIKE on TABLE1.url.
Can I use LIKE on JOIN? I couldn't figure it out so far.

Thanks,
Jack
Yes, you can. Build the query with an inner join, then switch from
Design View to SQL view, clange the = to like, add wildcards, and
save the query. NEVER attempt to open in design view after making
the changes.
TABLE1.url LIKE "*" & TABLE2.url & "*"

--
Bob Quintal

PA is y I've altered my email address.

--
Posted via a free Usenet account from http://www.teranews.com

Nov 4 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

46
by: Leo Breebaart | last post by:
I've tried Googling for this, but practically all discussions on str.join() focus on the yuck-ugly-shouldn't-it-be-a-list-method? issue, which is not my problem/question at all. What I can't...
0
by: Tomas | last post by:
I would like to know if and how it is possible to join the *result* of a union with another table (without first doing individual joins to each part of the result that then will be combined into a...
7
by: Greg | last post by:
I'm a quantitative securities analyst working with Compustat data (company fiscal reports and pricing feeds). My coworker came across a problem that we fixed, but I'd like to understand 'why' it...
3
by: Ian Boyd | last post by:
i know nothing about DB2, but i'm sure this must be possible. i'm trying to get a client to create a view (which it turns out is called a "Logical" in DB2). The query needs a LEFT OUTER JOIN, but...
3
by: celalo | last post by:
Hi, I need a function that takes not-fixed number of arguments. There is a perfect solution at PHP (func_get_args) but I could not find an alternative for JavaScript. reference:...
4
by: Jean-Claude | last post by:
Hi, which is the faster query ? (of course, in my case the real queries are more complex) 1/ select * from file1 a join file2 b on b.key=a.key where b.data=123 and b.name='TEST'
7
by: germanshorthairpointer | last post by:
Hello, I'm trying to do a join based on the following tables: Person(person_id,person_name) Grade(grade_id,grade_person_id,grade_score) The data looks like this: Person:
52
by: MP | last post by:
Hi trying to begin to learn database using vb6, ado/adox, mdb format, sql (not using access...just mdb format via ado) i need to group the values of multiple fields - get their possible...
1
by: newbie | last post by:
--------------------------------------------------------- table_info | id | age | first_name | last_name | --------------------------------------------------------- | 10 | 21 | ...
1
by: And Jello | last post by:
Hi I was wondering if it was possible to conduct a "Like" join between two tables based on two text fields; so that i can get wildcard style results? Example: Table 1 Field 1: Record 1 = "ABC...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.