- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
ODBC Connection , tables with relation
[ Edited ]
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-07-2011 01:36 PM - last edited on 07-07-2011 01:40 PM
Greetings,
I am attempting to pull, from MAS, all items and their descriptions into either access or excel. In Microsoft Query I pull in my two tables from MAS CI_item and CI_Extended Description. MS Query will draw the relation between the two tables, when I bring the fields that I want into view it will only show items that have a and extended description key. The problem is is that I have some items that don' t have an extended description key. I want to see all items that have both a short description and and extended description in one query.
I know that this can be done by breaking the relationship and having two queries and then sort each query respectively in the end however, I really need them in one query.
Tim
Solved! Go to Solution.
Re: ODBC Connection , tables with relation
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-07-2011 03:11 PM
The tables are linked by item code. Every item has a record in the CI_Item but only some items have a record in CI_ExtendedDescription. It sounds like you query is set up with an inner join but you need an outer join, like ci_item left outer join ci_extendeddescription on ci_item.itemcode = ci_extendeddescription.itemcode. The goal is to return all the rows from ci_item along with any matching rows from itemdescription.
Re: ODBC Connection , tables with relation
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-08-2011 02:23 AM
Re: ODBC Connection , tables with relation
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
07-08-2011 06:09 AM
Thanks so much.


