Avatar of RUA Volunteer2?
RUA Volunteer2?Flag for United States of America

asked on 

I am trying to limit some records that are tied to a table in excel

I have a table or spreadsheet called SF-Opportunites that has 318 opportunities in it. I want to limit the records returned in the other two tables by those OpportunityID's back to only the Accounts and Contacts those 318 records are associated with.  How do I link it to two other tables SF_Accounts & SF_Tasks that have Key Relational Fields in them in order to get only the accounts and contacts associated with them (the 318 Opportunities) and nothing else? The dataset is too large so I was able to get a good sampling of random data from the 318 opportunities that will work for my proof of concept project.

Table SF_Opportunities has
Field = AccountID
Field = ContactID
Field = OpportunityID

Table SF_Accounts has
Field = AccountID
Field = ContactID

Table SF_Tasks has
Field = ContactID
Field = OpportunityID
Field = TaskID

Once all the Accounts and Tasks that are associated with those 318 Opportunities are linked. I need all the excess records to go away...In other words, if they disappear then my overall size of the table or file is smaller. (Consequently, I am trying to get to smaller file that Salesforce.com can accept imported into their developer edition...5MB)
ALL DATA IN FILE IS FICTITIOUS.

I tried linking it to Excel and Access but kept getting the same number of records returned. Not sure how to get this done. Its either Operator error or something is wrong with my thinking? What should I be able to do in order to limit the records to just the accounts and therefore tasks if I just pull the records that match the OpportunityID's in the one table matching them to the other two tables with the Key relational fields listed?
SF_Oppty_Accts_Tasks.xlsx
Microsoft OfficeMicrosoft AccessMicrosoft SQL ServerMicrosoft Excel

Avatar of undefined
Last Comment
RUA Volunteer2?
ASKER CERTIFIED SOLUTION
Avatar of abbas abdulla
abbas abdulla
Flag of Bahrain image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of RUA Volunteer2?

ASKER

Thank you very much sir
Microsoft Access
Microsoft Access

Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.

226K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo