Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I love this site! It's so nice to know that there are so many people out there who are willing to share their knowledge..."

Geography

Where in the world do Tek-Tips members come from?
DougP (MIS)
6 Jan 00 16:52
I am creating a query with 3 tables
1. Part Master
2. Prices
3. Work Order
Now I can get the query to run but not all of the records are not showing up.
If I remove the Work Order table all of them show up.
My problem is not all of the items on my list have a Work Order yet. So when I add the Work Order table it only matches if there is one, eliminating others.
I tried the One-Many relationship thingy al three ways but no good.
am I missing something here.

TIA
DougP
WP (Programmer)
6 Jan 00 19:09
Doug,

It doesn't seem likely that you will get the result you are looking for without a little bit of work in between.

I can think of a couple of solutions:

1. Create a work table that contains both Part Master and W.O details this eliminating the W.O. join.

2. Create a dummy W.O. record (Key: 0 if numeric, Key:"None" if text ) on the W.O. table.

Then create a copy of the Part Master replacing any Null W.O.'s with your dummy key.

If the Part Master is huge then you could make the W.O. the dummy keyon addition to the table and do a one of update of the existing null W.O.'s

Hope this helps,

WP

Bill Paton
wpaton@neptune400.co.uk
www.neptune400.co.uk

DougP (MIS)
7 Jan 00 7:47
Thanks Bill
Yes there are 12000 records in the parts table.
It is slow when I create an extra query so I have a query within a query. Kind of the same result you suggested with multiple tables.
See they run this report several times during the day
It gives them a list of what they are out of and if its been orderd or not. If its on order then when will it arrive.
One reason it's slow it that the parts on order are not a key field. I don't have any control over this because its an ODBC linked table.
I'll look over your thoughts and merge some of it with mine etc.
elizabeth (IS/IT--Management)
7 Jan 00 9:34
Are you trying to get all part numbers and prices, and leaving work orders as a blank if none? You would need something like this:
SELECT ... FROM (tblOrder RIGHT JOIN tblPart ON...) INNER JOIN tblPrice ON ...

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close