473,320 Members | 2,161 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,320 software developers and data experts.

A question about joins

Hello
I have 2 tables, each one has a Course Code field. I need to find
courses, which are not present in one of the tables.
It would have been very simple, but in one table Course Code can be not
1 course code, but several, like: CBEA2B0886,CBEA2B0887. As a result,
if I join tables by course code field, both these courses are not
found, when they are perfectly present.
I know how to do this in code. My question is, is it possible to do
without code, on query level? If yes, how? Thank you.
Galina

Nov 13 '05 #1
2 1116
Do a query with one table joined to the other with a left join. Display the
2 sets of codes and set the condition that table1 code Is Null
Then do the join the other way and look for Table2 code being Null

Phil
"Galka" <ga****@mail.ru> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
Hello
I have 2 tables, each one has a Course Code field. I need to find
courses, which are not present in one of the tables.
It would have been very simple, but in one table Course Code can be not
1 course code, but several, like: CBEA2B0886,CBEA2B0887. As a result,
if I join tables by course code field, both these courses are not
found, when they are perfectly present.
I know how to do this in code. My question is, is it possible to do
without code, on query level? If yes, how? Thank you.
Galina

Nov 13 '05 #2
Do you mean you have several course codes in one record?

If so, that would be emulating a "multi-value" field, and
Access doesn't have a good way to query those, so a
little table redesign might be in order

Or do you mean you have records for several course codes in that table?

If so, left click the join line in QueryBuilder to highlight it, then right
click the highlighted line, and set the join properties to select a join
type for all records from one table and those that match from the other.
Depending on your table design, you might have to do that same kind of
operation on a join line going in the other direction, also.

Larry Linson
Microsoft Access MVP

"Galka" <ga****@mail.ru> wrote in message
news:11*********************@g47g2000cwa.googlegro ups.com...
Hello
I have 2 tables, each one has a Course Code field. I need to find
courses, which are not present in one of the tables.
It would have been very simple, but in one table Course Code can be not
1 course code, but several, like: CBEA2B0886,CBEA2B0887. As a result,
if I join tables by course code field, both these courses are not
found, when they are perfectly present.
I know how to do this in code. My question is, is it possible to do
without code, on query level? If yes, how? Thank you.
Galina

Nov 13 '05 #3

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

Similar topics

3
by: Prem | last post by:
Hi, I am having many problems with inner join. my first problem is : 1) I want to know the precedance while evaluating query with multiple joins. eg. select Employees.FirstName,...
4
by: Sri | last post by:
I am writing a download process in which i have a condition where i need to join four tables. Each table have lot of data say around 300000 recs. my question is when i am doing the joins on...
1
by: Prem | last post by:
Hi All Database Gurus, I am trying to write code which will produce all the possible valid queries, given tables and join information for tables. Right now i am just trying to construct all the...
125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
4
by: michaelnewport | last post by:
Greetings, I like to write my inner joins as below, but someone at work tells me its not as 'performant' as using the 'inner join' statement. Is this true ? Is there a better way to write it...
7
by: Steve | last post by:
I have a SQL query I'm invoking via VB6 & ADO 2.8, that requires three "Left Outer Joins" in order to return every transaction for a specific set of criteria. Using three "Left Outer Joins"...
3
by: Gary Wachs | last post by:
Hi folks, Lots of questions below. Thanks in advance for your help! 1. I go into the query expression builder, I show a lot (like 20 or 30) tables and queries, I create inner joins and left...
22
by: Sandman | last post by:
So, I have this content management system I've developed myself. The system has a solid community part where members can register and then participate in forums, write weblogs and a ton of other...
2
by: narendra vuradi | last post by:
Hi I have a requirement where in i haev to convert the SQL from Oracle to the one which will run on the SQL server. in the Oracle Query i am doing multiple joins, between some 13 tables. and...
36
by: TC | last post by:
I've used Access for many years. Several times, I've encountered a bug which I refer to as the "Vanishing Joins" bug. When it happens, joins vanish randomly from queries. More specifically, all...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.