Scenario:
We have received a text source file that has the abbreviation for Region Code. We want to convert these region codes to region name such asIf RegionCode is AS then RegionName="ASIA'
If RegionCode is NA then RegionName="NORTH AMERICA'
If RegionCode is EU then RegionName="EUROPE'
If non of above them "UNKNOWN".
Fig 1: Text Source File with ClientRegion
Solution:
If this data would be in table we could have write a query with case statement like below
Select id,Name,ClientRegion, Case When ClientRegion='AS' THEN 'ASIA' WHEN ClientRegion='NA' THEN 'NORTH AMERICA' WHEN ClientRegion='EU' THEN 'EUROPE' ELSE 'UNKNOWN' END AS RegionName from dbo.Client
As we are reading the data from text file we can't write the TSQL statement. We can load this data to some table and then write the statement but we don't want to do that. We will use Derived Column Transformation to write expression to get our Region Name.
Step 1:
Create your SSIS Package. Inside the SSIS Package, Bring Data Flow Task. As we need to read the data from text file, Bring Flat File Source and create connection to source file.
Once the connection is created, Bring Derived Column Transformation and connect to Flat File Source and write expressions as given below. These expressions will give us the results like our Case statement.
ClientRegion == "AS" ? "ASIA" : ClientRegion == "NA" ? "NORTH AMERICA" : ClientRegion == "EU" ? "EUROPE" : "UNKNOWN"
Fig 2: Write Case Statement in Derived Column Transformation in SSIS Package
Step 2:
Bring Multicast Transformation as test destination and then connect Derived Column Transformation to it. Add the Data Viewer so we can see the output. Run the SSIS Package and see the output.
Fig 3:Write Case Statement in SSIS Package By Using Derived Column Transformation
As we can see that the expression worked as expected.
Nowadays, data has powerful capabilities that can transform your business’s face, especially when the competition is all around. Interested to know more about data intelligence, check out https://www.inetsoft.com
ReplyDeleteNice post. I was checking constantly this blog and I’m impressed! Extremely useful info specially the last part I care for such information a lot. I was seeking this certain info for a long time. Thank you and good luck.write for us
ReplyDeleteShop beautiful womens cashmere sweaters, cardigans and scarves. Chic and stylish. Made in EU. Free shipping worldwide. cashmere long cardigan
ReplyDeleteTours | Blogging Journey for beginner's provides the guide of Blogging, WordPress, SEO, Affiliates, Hosting, Theme, and online... Best Page Builder Plugins
ReplyDeleteUrban VPN MOD APK is a great VPN and all of their users share their network resources to help each other unlock the Internet. Urban VPN MOD APK
ReplyDeleteRoyal Tangkas is one of the favorite agile gambling games because it has a simple and fast style of play. royaltangkas
ReplyDeleteSbowin & Joinsbo is an official Sbobet alternative link site that is also the most famous, especially in Indonesia. login sbobet
ReplyDeleteSuch sites are important because they provide a large dose of useful information ... Satta king 786
ReplyDelete
ReplyDeleteWonderful article. I love your style of writing. It's inspiring , and I am happy with your writing style. Visit my website.
Black satta
Keep your expectations low
ReplyDeleteIn case you're participating in the Satta king fast and Matka games for the essential time then, at that point, keep the assumption for winning absolute bottom. Maybe you wish to do the Satta King 786 different times, notwithstanding how that is anyway exclusively you might be prepared to win.
389Sports situs resmi agen joker123 dan joker388, download aplikasi joker123 apk, link alternatif, deposit via pulsa 25 ribu tanpa potongan. joker388
ReplyDeleteBy playing using the official site, you can get many benefits, such as playing hundreds of online slot games with only 1 ID, the Joker Shoot Fish Online site 389Sports also always guarantees your safety and comfort when playing. joker123 deposit pulsa
ReplyDeleteTrusted online capsa stacking gambling site 389sports, playing capsun online, deposit 25 thousand via credit & e-wallet, 10% new member bonus. capsa uang asli
ReplyDeleteHow to play Satta King game?
ReplyDeleteWith the advancement of technology, the rules of the game are also changing. A lot of differences have been noticed between the previous Satta King games and the current games. In the past, some Satta number written on pieces of paper were placed in containers or pots. The person who chooses the correct number is declared the Satta king. That means the person is the winner. Nowadays people like to play pc games. Choose the game and start playing.
The online fish shooting gambling game or fishing game itself is now available and you can play on a 389Sports site that offers online fish shooting gambling games or fishing games. Over time, the online fish shooting gambling game has become a very popular game. This is because the game itself is very colorful and interesting for bettors to play tembak ikan online
ReplyDeletehubslotjoker info. HUBJOKER888 . Online slots on mobile phones. HUBJOKER888 , new online slots website, Joker, Auto top-up system, deposit ... joker สล็อต
ReplyDeleteThese online slots games are very popular. and has the most players since Slotxo app has opened for service As an example, it can be seen that the online slots games from SLOTXO have different game themes. Whether it's a Safari style, a Chinese style, a hero style and many other genres that are waiting for you to open up a new experience in playing online slots. pg slot
ReplyDeletebest football odds This must be accepted that For anyone who wants to play football betting Really need this camp because the water price is up to 4 bucks. You have to understand that first. To press the ball will be very profitable, it depends on the goal scoring odds. ufa th
ReplyDeletefree credit, no deposit required, no sharing Web activities throughout the month Whether it's free credit giveaways, birthday giveaways, pg slots and many other great events Looking forward to having fun here. pg slot
ReplyDeletell casino games on SAGAME88 have a minimum bet of only 5 baht, a maximum of 1,000,000 baht, a minimum deposit of 1 baht, fast auto-deposit system, 24-hour care team. คาสิโนออนไลน์ สล็อต
ReplyDeleteFootball betting, the most popular UFABET football betting website at the national level, the direct website does not go through the agent, deposit-withdraw, no minimum, fast, ready to serve 24 hours a day. ไพ่แคง ออนไลน์
ReplyDeleteThis comment has been removed by the author.
ReplyDeleteHow to apply for slot xo with 3 easy steps Friends can play slots (Slot Online). The team has prepared a method for applying for slots. can apply through the website Register for online slots ดาวน์โหลดpg slot
ReplyDeleteDeposit and withdraw with a reliable automated system There are more than 100,000 users per day. Unlimited deposits-withdrawals. Login to play online slots here 55xo ... joker สล็อต
ReplyDeleteThis is what I’ve been searching for days. Extremely useful. Thank you for sharing! สล็อตPG aoom123.
ReplyDeleteThese are some great tools that i definitely use for SEO work. This is a great list to use in the future..
ReplyDeletedg
เกมออนไลน์ที่ได้รับความนิยมมากที่สุดในตอนนี้ปี 2022
ReplyDeletejoker slot
joker gmaing
Thank you very much for writing such an interesting article on this topic. This has really made me think and I hope to read more. 918kisspg.com
ReplyDeleteHi there! You make so many good points here that I read your article a couple of times. This is really nice content for your readers. MCCQE part 2
ReplyDelete"I am extremely impressed along with your writing talents as well as with the structure for your blog.
ReplyDeleteสล็อต66 สล็อตxo สล็อต11"
I will right away clutch your rss as I can’t find your email subscription link or e-newsletter service. Do you have any? Please let me realize so that I could subscribe. Thanks. I will right away clutch your rss as I can’t find your email subscription link or e-newsletter service. Do you have any? Please let me realize so that I could subscribe. Thanks.
ReplyDeleteKoçak Vize Vize Hizmetleri Vize işlemleri Elçiliğe Gitmeden Vize Alma Online Vize Başvurusu İşlemleri Vize Danışmanlık Firması olarak hizmetinizdeyiz Finlandiya vizesi
ReplyDeleteBecause I can't find your email subscription link or e-newsletter service, I'll immediately grab your rss. Have you got any? Please let me understand so I can subscribe. Thanks. Because I can't find your email subscription link or e-newsletter service, I'll immediately grab your rss. Have you got any? Please let me understand so I can subscribe. Thanks. wool socks
ReplyDeleteWe are professional Movers and packers in Dubai. We have experienced and standard team for Movers in Dubai
ReplyDeleteLonglevens Windows provide windows + door installation, we also offer customers a quality repair service for windows, doors and locks in Gloucestershire
ReplyDeleteLonglevens door repairs
Preparing and shifting to a new house is no easy task to do. Because too many things or tasks to do at once give stress and make things complicated. But hiring a professional moving team this scary work does not have to be complicated. And it exactly so much happens that Number 1 “Best Mover” is one of the much dependable Packing and Moving company. So, if you need a team of professional packers and Movers that have handled any type of moving in the past – we assure you that we’re the best company to call!
ReplyDeletehttps://www.bestmover.ae/
Superbly written article, if only all bloggers offered the same content as you, the internet would be a far better place.. lifeguard class
ReplyDeleteSuppose you’ve worked for a long time in the same field or possess a particular interest that you would like to share with others or even teach to others. In that case, you may have the experience and knowledge to instruct, coach or collaborate with others in the area you are interested in.
ReplyDeletelink building
"I'm thoroughly impressed by Pestclean's efficient and reliable pest control. Living pest-free has never been easie Pestclean
ReplyDeleteUser engagement metrics, such as bounce rate and time on site, can impact SEO rankings.
ReplyDeletesocial media