incomplete query

IOI

Registered User.
Local time
Today, 13:24
Joined
Oct 12, 2007
Messages
25
Hi,
I have to tables. In both are names, some duplicate, some ginuine.

When I run query choosing just a name column from each table, it doesn't return all names. It just give me duplicate ones.

How to have all names included in the query list?

Cheers
 
Is there a relationship between the 2 tables??

What is the SQL statement you are using??
 
there is only one relation between tables, it's related by name field/column...

I use wizard, not sure about sql...
 
1) Open your query > click on views > SQL view (copy and paste your SQL from that window to this thread

2) All relationships are related by COLUMNS. What is the relationship (one-to-many, one-to-one, many-to-many)?? What are the two columns that are joined in the relationship?? If you don't know, open your relationships window and look.
 
SELECT [Dec 2005].Nick AS [Dec 2005_Nick], [Jan 2006].Nick AS [Jan 2006_Nick]
FROM [Dec 2005] INNER JOIN [Jan 2006] ON [Dec 2005].[Nick] = [Jan 2006].[Nick];


columns with names are called nick for now, cause access didn't allow me to use word 'name'

1 nick column from each table is related...it says one-to-one...
 
Last edited:
SELECT [Dec 2005].Nick AS [Dec 2005_Nick], [Jan 2006].Nick AS [Jan 2006_Nick]
FROM [Dec 2005] INNER JOIN [Jan 2006] ON [Dec 2005].[Nick] = [Jan 2006].[Nick];
Try this one instead...
Code:
SELECT [Dec 2005].Nick AS [Dec 2005_Nick] 
FROM [Dec 2005]

UNION

SELECT [Jan 2006].Nick AS [Jan 2006_Nick]
FROM [Jan 2006]
 
cheers, it works...it seems I need to learn some sql
 
It might help...although it is a bit different between database programs.

I LOVE oracle, but then again, that is the king of database language. Access isn't bad though. :)
 
I might try oracle...which version is the most user friendly if you know what I'm mean...

would it be more useful for my stats?

I do have 25 tables with names [duplicate and not] and numbers and would like generate report/query summing all that stuff...
 
Every database program does something different.

Access isn't even the only database software from Microsoft. You will have to test them out and see what ya think. Good Luck!!
 

Users who are viewing this thread

Back
Top Bottom