Re: Creating a query from multiple identical tables
- From: "Michel Walsh" <vanderghast@VirusAreFunnierThanSpam>
- Date: Thu, 26 Jan 2006 16:37:41 -0500
Hi,
At first, I thought you have something like one table per year (just for
illustration). It would be easier to merge these tables into just one, where
a field, [year], would be added (again, just for illustration):
SELECT 1999 As [year], f1, f2, f3, f4 FROM year1999table
UNION ALL
SELECT 2000, f1, f2, f3, f4 FROM year2000table
UNION ALL
....
SELECT 2006, f1, f2, f3, f4 FROM year2006table
is a query that would bring the data together, but without any index, that
would be slow. That is why making it a table would be better.
Hoping it may help,
Vanderghast, Access MVP
"bluemoir" <bluemoir@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:8BB98E02-04CC-4884-B171-8E8FEBDCF244@xxxxxxxxxxxxxxxx
>I am trying to create a query from multiple tables with the same number of
> columns and same headings to pull all records from each table with a
> matching
> value in one of the fields. This database holds all the information for
> each
> job we have in progress with each table representing one of our customers.
> I'd like to know how I can create a query to pull form each customers
> table
> all jobs with the status of "Dispatched". I was also wondering since I
> plan
> to recreate the database in a while if there is a better way to organise
> the
> records in order to make something like this easier to do. Is this a poor
> database design? Please let me know in your post if you need more
> information
> to help me I'll post it right away.
.
- Prev by Date: Re: Creating a query from multiple identical tables
- Next by Date: Re: Compress query display
- Previous by thread: Re: Creating a query from multiple identical tables
- Next by thread: Re: Compress query display
- Index(es):
Relevant Pages
|