Solved

10777 multiple lookup, as I do?

Posted on 2014-09-30
5
195 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 500 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 500 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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.

635 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