?
Solved

10777 multiple lookup, as I do?

Posted on 2014-09-30
5
Medium Priority
?
200 Views
Last Modified: 2014-10-01
Hi Experts, I have a table that has several foreign keys, therefore I use multiple lookup, as I do?
My source is flat file source information

codigoMaterialReal;codigoOrganizacionVenta;descripcionMaterialReal;codigoTipoArticulo;codigoGramaje;codigoCapacidad;codigoIntervaloCapacidad;codigoColor
000000000100000048;PE10;RES - CLEAR PET CP001 NFDA CR.;003;058;;;017
000000000100000110;PE10;PRE 15.6 GR.ACEITE;002;073;;;001
000000000100000121;PE10;PLOP XXXXX INSPECTOR;003;058;;;017
000000000100000122;PE10;PLOP XXXXX METAL;003;058;;;017
000000000100000123;PE10;PLOP XXXX SEA;003;058;;;017
000000000100000137;PE10;PLOP - NO USAR CODIGO;002;001;;;001
createTABLE.png
0
Comment
Question by:enrique_aeo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 24

Expert Comment

by:Phillip Burton
ID: 40353018
Necesita explicar, por favor.

What program are you in (SSMS or BIDS/SSDT), and ¿qué quieres hacer? Why are you asking about multiple lookups? Are you trying to get additional information from another table?
0
 

Author Comment

by:enrique_aeo
ID: 40353308
ok
i am using SSIS
below the image of the solution, there is another way to do it?
LOOKUP.png
0
 
LVL 24

Assisted Solution

by:Phillip Burton
Phillip Burton earned 2000 total points
ID: 40353337
If what you are trying to do is get a value from another table - for example, you have a Company IDA and you want the company name, then that is a fair way to do it.

You could do an Execute SQL task instead, using a staging table. If performance is the problem, there may be Lookup options you can try.

If it works, what is wrong?
0
 

Author Comment

by:enrique_aeo
ID: 40353359
it is works!!!

can you give me an example with Execute SQL task
0
 
LVL 24

Accepted Solution

by:
Phillip Burton earned 2000 total points
ID: 40354045
It's exactly the same as if you were doing it in SSMS. So if you know how to do the inner joins in SSMS, you know how to do it it in SSIS.

1. Load the data from your flat file.
2. Save the data into a table in the same database as your other tables.
3. Do the Execute SQL Task.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
What if you have to shut down the entire Citrix infrastructure for hardware maintenance, software upgrades or "the unknown"? I developed this plan for "the unknown" and hope that it helps you as well. This article explains how to properly shut down …
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

719 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question