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

Help with queries

10
Hi,
I am very much new working on Access database. I have 2 tables,

My first table is like
No's colors made
1 blue nissan
2 red corolla

My second table is like
No's colors car
1 blue sentra
1 red altima
1 green maxima
2 blue corolla
2 red camry

I now want my output table to be

No's colors made car
1 blue nissan sentra
2 red corolla camry
Feb 17 '09 #1
4 1072
ChipR
1,287 Expert 1GB
There seems to be no relationship between your tables. What is the basis for your output?
Feb 17 '09 #2
shreeks
10
I need to have the No's and colors coloums from my first table... here the No's columns is set as a primary key.... I need my new table with first 3 columns of the first table as it is and my fourth column of the new table should be from my second table, with only those fields that are present from the No's and colors column of the first table...

for example...
my first table has No's 1 and color blue
and my second table has only one record with No's 1 and color blue.... and it has got sentra as the car...
so for each corrosponding No's and colors from the first table... i need to extract car from my second table.......
Feb 17 '09 #3
ChipR
1,287 Expert 1GB
In that case,
1. Go to query design
2. Add both tables
3. Drag the number field from table 1 to the number field in table 2 to create the link that says they have to be equal.
4. Drag the colors field from table 1 to the colors field on table 2.
5. Double click all the fields in table 1 to add them to the resulting query.
6. Double click the car field in table 2 to add to the result.
7. And execute.
Feb 17 '09 #4
NeoPa
32,556 Expert Mod 16PB
I must warn you that your table design is almost certainly going to cause you problems in future (unless your project is extremely limited in scope).

Please check out theis very helpful article (Normalisation and Table structures). If you plan to proceed with any kind of database work this is essential reading.
Feb 18 '09 #5

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

Similar topics

2
by: Alexandre MELARD | last post by:
Hi, My name is alexandre, I am 4th year student at the Napier university of edinburgh. I am finishing my year and do a presentation of my honours project next wednesday (the 5th of May). I am...
9
by: Dom Boyce | last post by:
Hi First up, I am using MS Access 2002. I have a database which records analyst rating changes for a list of companies on a daily basis. Unfortunately, the database has been set up (by my...
5
by: Alicia | last post by:
Hello everyone based on the data, I created a union query which produces this. SELECT ,,, 0 As ClosedCount FROM UNION SELECT ,, 0 AS OpenedCount, FROM ORDER BY , ;
8
by: Tcs | last post by:
I've been stumped on this for quite a while. I don't know if it's so simple that I just can't see it, or it's really possible. (Obviously, I HOPE it IS possible.) I'm trying to get my queries...
1
by: prabhukalyan | last post by:
Hi all, I am not so good in queries. here is my problem 2 tables to store the received items (fabric)-- inwardmaster, inwarddetails and after some processing (Dyeing) the items were...
1
by: loosecannon_1 | last post by:
Hello everyone, I am hoping someone can help me with this problem. I will say up front that I am not a SQL Server DBA, I am a developer. I have an application that sends about 25 simultaneous...
5
by: LilyRousseau | last post by:
:confused: I could really use some help A Access Database was created and put out in a shared drive--so that anyone could run these queries. I copied the db and made some changes and...
1
by: neha02 | last post by:
Hi all, this is my first post here although i've always referred this forum for help. I am trying to design a query based on 4 queries but i'm unable to get the result i want. Please help me-...
1
by: kfboren | last post by:
I am running Access 2007, OS Vista. I am wondering if someone can help me. I have created 10 tables, 10 queries for the tables and 10 reports from the quearies. The creteria for the queries is the...
2
by: shorti | last post by:
DB2 V8.2 on AIX using C language applications. I have these two queries I would like to put together: "SELECT SUM(products.loc1_size) FROM products WHERE (location1 = 'NFUSA1') AND (main_loc IN...
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...
0
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
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...
0
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.