What kind of check should I do? Substring helping

Hi guys, I'm struggling to fin a solution to this problem: I'm building a package in SSIS that allow me to load, transform, check thousand of xls file. Everything is ok but now I ran into a logic issue ( and maybe I'm too tired to concentrating on properly).
The xls format has this format:
Sample 1
Title
dc_cost_201404_16-07-2014 180022
Row
dc_cost:201404:R000251178
dc_cost:201404:R000251178
dc_cost:201404:R000251178
Sample 2
Title
cl_exempt_chg_201405_16-07-2014 180022
Row
cl_exempt_chg:201405:R000250503
cl_exempt_chg:201405:R000250503
I'm trying to find a meaning. I was thinking something like Findstring([column], @file,1)....or something with the SubString..
any idea? Thanks

DECLARE @forumTable TABLE (col1 VARCHAR(20), col2 VARCHAR(20), col20 VARCHAR(20), col12 VARCHAR(20))
INSERT INTO @forumTable (col1, col2, col20, col12)
VALUES
('dc_cost:201404','dc_cost_201404','chj_charge_lmt', '201402'), --In this case match
('dc_cost:201404','dc_cost_201405','chj_charge_lmt', '201402'), --In this case no match
('xx_cost:201404','dc_cost_201404','chj_charge_lmt', '201402'), --In this case no match
('xx_cost:201404','xx_cost_201404','chj_charge_lmt', '201402') --In this case match
SELECT *, col20 + '_' + col12,
CASE WHEN LEFT(col1,2) = LEFT(col2,2) AND RIGHT(col1,6) = RIGHT(col2,6) THEN 'MATCH!'
ELSE 'NO MATCH!'
END,
CASE WHEN CHARINDEX(col20 + '_' + col12,'chj_charge_lmt_201402_16_07_2014 11000BB') > 0 THEN 'Title Match!'
ELSE 'No Title Match!'
END
FROM @forumTable

Similar Messages

  • What kind of Antivirus should be installed in SAP Server?

    Hi all,
    My customer wants to install antivirus in their sap server. but i don't know what kind of antivirus should be installed.
    Currently in customer sap server, it has the high performance (high memory) for sap b1.
    So I have 2 concerns.
    1. Why sap b1 and sap supporting software use high memory while in my pc use less memory?
    2. What kind of antivirus should be installed on SAP Server?
    Noted:
         1.SAP B1 version: 9.0
         2.No add on running.
    Thanks
    TONY

    Hi
    Check the below thread it may helps you
    Anti-virus / SAP B1 Settings
    With Regards
    Balaji Sampath

  • I have a Mac Book Pro, What kind of software should i buy to able me to watch movie on the net. Right now it just said " Blocked plug in"

    I have a Mac Book Pro, What kind of software should i buy to able me to watch movie on the net. Right now it just said " Blocked plug in"

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    The type of plugin that you need depends on the type of video file that you wish to view. We would need more details to assist.

  • What kind software we should use under VISTA to creat new partition.

    hi,there. i've use the boot camp to install the window vista in my macbook. but the boot camp only creat one partition for it. therefore all the partition i have under vista is C partiton. i want to divide that C partiton into 2 or more partitons, but i just wonder will that gonna destroy the boot information for Mac OS? what kind software i should use to avoid that problem? thanks.

    Don't know. Never used it. You should probably post your question in the Boot Camp discussions
    http://discussions.apple.com/forum.jspa?forumID=1165

  • What kind of SSD should I use and will it benefit my laptop?

    My Macbook Pro (either early or late 2008, not sure) is in dire need of an upgrade. I'm thinking about upgrading it to a 128 GB SSD-drive and was wondering if anybody has experience with the performance-gains (especially in Adobe Photoshop) and what kind of drives anyone would recommended? It's quite difficult to find recent info on this online so any help would be greatly appreciated.
    Cheers,
    Michiel

    Ah, this opens up new perspectives. Could you shed some light on the RAM-subject? How can I find out what model I have and what kind of RAM I need? I mean, logic dictates I need the same RAM I have now, but I'm sure there has been some development on those voodoo-sticks that should make them faster etc.
    Also, any info on the SSD-thing is still greatly appreciated. Upgrading RAM ánd HD is ofcourse better then just switching to an SSD..

  • My iMac was infected with a virus or malware the other night. I was told that I didn't have any firewall protection. How do I fix that? And what kind of software should I use to protect my computer from further attacks?

    I am running OS X Version 10.9.5 on n iMac I brought in 2011. Had a virus or malware attack the other night and a window opened with a # to call for help. Didn't know if I should trust the # but ended up calling it anyway and paid to have them 'fix' things. Was told I didn't have firewall protection. Am not sure if I do now. [It still says to allow all incoming connections]. So what do I do now? And what kind of antivirus program is recommended?
    Firewall

    Read "Ransomware" web pages.
    Assuming you let the scam outfit remotely control your Mac, the information on it can no longer be considered secure. Neither can the Mac itself. You should immediately shut it down and take actions to prevent or recover from identity theft, which is quite likely to have occurred. This means contacting the financial institutions and other companies that may permit access to your accounts using login names and passwords, canceling and replacing credit cards, and similar actions that only you can know.
    Determine if you can contest the charge made to your credit card for this criminal transgression.
    And what kind of antivirus program is recommended?
    None. The Mac is highly secure against malware or virus intrusion, but nothing can prevent you from willfully installing dubious software or granting remote access to criminals. No "anti-virus" software in the world will protect you from that. The OS X application firewall is not intended to prevent this sort of occurrence.

  • HT5299 What kind of cable should I use for movies on my macbook pro if I want to watch it on my 60 inch tv?

    What kind of cable for my macbook pro, do I use to watch movies on my 60 inch tv ?

    Which model MacBook Pro do you have (e.g., "15-inch Late 2011")?
    Clinton

  • What kind of performance should I expect from my Mac Mini?

    I just purchased a Mac Mini (Mid 2011) model. I got the 599 model with Core i5 2.3 ghz and 2GB of RAM.
    So far, I've been really disappointed with the performance. Launching programs like iMovie or iPhoto can take an extremely long time. When I hae iMovie and iPhoto open, switching between the two apps forces me to stare at the spinning beach ball for up to 30 seconds each time. Just opening launchpad seems to take a really long time.
    Is this normal performance or is there something wrong with my machine? Should I upgrade to 4GB of RAM?

    It's not so much that speed and performance are super important to me. I'm not editing professional video, working with After Effects, or playing the latest games at their highest quality. I really just use it for web surfing, working with photos in iPhoto, and maybe putting a movie together from my pictures with iMovie. I understand that with a lower power CPU, rendering a movie in iMovie, say, is going to take much longer than it would on a Mac Pro. I'm fine with that. But just basic tasks, such as switching between apps is painfully slow at 2GB. I know it's not a top of the line machine, but I kind of find that behaviour in a brand new machine with apps that come with it unreasonable.
    I recently upgraded to 4GB on the Mini and performance is much better. Switching and launching apps is acceptable now. I honestly think though that Apple just shouldn't be selling new Macs with anything less than 4GB if that's what it really requires to be functional and not frustrating to use.

  • IMac 10.4.11 Because permanent vertical lines have appeared on my screen, I need to get a new monitor. The adapter apple sells goes from female VGA to mini-DVI. What kind of cable should I get as well:female to male?

    If I use an adapter (female VGA to mini-DVI) for my iMac 10.4.11 OSX, I also need a cable. Should that cable be female VGA to male VGA?
    Permanent vertical lines have appeared on my display, and connecting to another display (monitor) requires a cable and adapter. I want to be sure I am purchasing the correct cable for the Apple adapter. 

    What made me think I need to format if I upgrade the OS?
    I just presumed so really.
    What made me think I need to constantly format computer with my problem?
    Well, after many attempts to repair the drive, which fails, cannot even reach the log in screen, I am left with no other choice?
    And also, I have to note now, System Preferences keeps crashing without reason, it either takes ages to load, just by clicking it to open, or clicking something within it, or it just crashes.
    And temporarily, it freezes the computer totally, with no response.
    Seriously, am I missing a system file or something? Anyone experienced this problem before?
    My computer is literally a blank computer right now, installed VLC and Shades, updated Adobe Flash Player, installed Skype and Adium. I would say Growl from Adium caused it, but it has happened prior to Skype and Adium. Any ideas anyone?
    Thanks,
    From Lelouch

  • What kind of motor should I use for lifting a heavy load?

    I'm working on an automation application in which I need to control a lifting mechanism with heavy load (about 120 lbs).  I will be getting constant temperature readings and based on that data I can determine the rate of change of the temperature.  If the temperature rate is too fast then I need to be able to slow down the motor, if it is too slow then I need to speed it up.  I'm looking for some support with choosing the right motor and hardware so that I have full speed control, while still being able to lift this heavy load, hold the load in a certain position, and then raise the load back to its original position.  I was considering a stepper motor for this due to its ability to brake so the load can stabilize.  Is this the right call or should I use a continuous servo?  Where can I get such a stepper that can handle this type of load and has software that interfaces with LabVIEW?  Would I be safe getting low-cost hardware for this application?  Any guidance would be sincerely appreciated.  Thanks.

    Thanks for your replies to this topic.  I just discovered the worm gear option yesterday while talking to a professor.  I think that is the route we are going to take because the DC motor won't be as expensive as a high-torque stepper or servo.  Also, I have three engineers that will be calculating the motor size based on gear reduction, spool size, cable length, and the load that we have to lift (which is about 120 lbs.).  If any of you would like to suggest a motor size, that would be great too.  I'm thinking something around 1HP should probably do it.  My goal is to stay cost-effective while making an easy apparatus.  I know that the worm gears may also be inefficient at times but it seems like the best solution for this application.  Not to mention it's not to hard for our mechanical engineers here to make the spool and bearings.  And I believe you can buy a DC motor that interfaces directly with a worm gear.  However, a follow up question is what computer hardware do I need to control the voltage of the motor so I have speed control?  Is this done through an RS232 board?  My output from the LabVIEW program will be voltages, from which device is that binary signal converted into physical voltage?  Thanks for your help so far.

  • What kind of path should be used in a *portable* .getResource()?

    I am porting to NetBeans an application that was running fine under JBuilder. There is one type of statement that refuses to be ported (getResource()).
    The application contains a lot of lines like this:
    url = AnnualReportsDialog.class.getResource("images/CheckMark.gif");Even the JBuilder tutorial has the same kind of file access relative to some current or default directory:
    ImageIcon image1 = new
    ImageIcon(hello_world.HelloWorldFrame.class.getResource("openFile.png"));When the "url" line above is reached, the getResource() fails.
    I have tried several variations:
    url = AnnualReportsDialog.class.getResource("C:\\images\\CheckMark.gif");
    url = AnnualReportsDialog.class.getResource("C:/images/CheckMark.gif");but they don't work.
    Perhaps something has changed between JRE 1.4 and 1.6?
    What is the more general solution to the problem of Java not having a 'chdir()'? My app runs on Windows but I would like to run in in *ix as well.
    Is there a way to place all those GIFs in some sort of resource, that can be carried around different O/Ss and filesystem paths? I would like the following to work under any OS:
    getResource("images/CheckMark.gif");
    TIA,
    -Ramon

    X-FI PCI 32Bit Cards?with 33MHz will fit into a PCi 64Bit slot. (The Slots must only support PCI 2.2 or later.)?Even a PCI-X slot can dri've PCI 32 33MHz cards. Downside: the PCI bridge will clock down all connectet PCI slots to 33MHz. Most PCI 64Bit slots supports 66MHz clock speed.
    Older PCI cards like Audigy will run in a 2. or lower?compatible PCI Slot.
    Message Edited by fffcmad on 03-26-2008 0:3 PM

  • What kind of analysis should i use for these signals?

    i'm developing a lie detection system,i have one respiratory sensor and a hand grip heart rate monitor to acuire the physiological signals from the sensors.i have attached a screenshot of the application.the top signal represents the heart beat and bottom one is respiratory signals.my question is that what analysis mwthods should i be using for these signal types?would you please care to help me on this? thank you.

    Thanks for your replies to this topic.  I just discovered the worm gear option yesterday while talking to a professor.  I think that is the route we are going to take because the DC motor won't be as expensive as a high-torque stepper or servo.  Also, I have three engineers that will be calculating the motor size based on gear reduction, spool size, cable length, and the load that we have to lift (which is about 120 lbs.).  If any of you would like to suggest a motor size, that would be great too.  I'm thinking something around 1HP should probably do it.  My goal is to stay cost-effective while making an easy apparatus.  I know that the worm gears may also be inefficient at times but it seems like the best solution for this application.  Not to mention it's not to hard for our mechanical engineers here to make the spool and bearings.  And I believe you can buy a DC motor that interfaces directly with a worm gear.  However, a follow up question is what computer hardware do I need to control the voltage of the motor so I have speed control?  Is this done through an RS232 board?  My output from the LabVIEW program will be voltages, from which device is that binary signal converted into physical voltage?  Thanks for your help so far.

  • What kind of case should I buy for new ipod touch?

    There seem to be so many different kinds.  I see that they have hard plastic ones and soft, silicone type ones.  Which is more durable and will protect the ipod better if dropped?  Also, what is a screen protector?  Do I need to buy a pack of these in addition to the case or do cases already have screen protectors?  If they are separate, do they make any cases that protect the screen on their own?

    The best case is no case at all.
    Just like camera cases from years ago, the case just gets in the way when you want to use it.  We called them never-ready cases.
    Screen protectors will deflect some scratches, but I have yet to find one that does not degrade the image quality.
    I do not work for Best Buy and am not affiliated with them in any way. I like HT and want to help people improve their HT experience. "There is a LOT more than just having a TV to make a home theater"

  • What kind of creative should you advis

    it's difficult to buy the right mp3 player, mine should have:
    - around 0 gig for storage
    - play mp 3
    - view JPEG
    - FM-radio
    - organiser
    should i go for the microphoto (8 gig) or the sleek photo 20 gig
    what is the difference between those two ?
    - which one has the best screen, battery, sound ?
    that organiser is that something you use often or just a gadget but not usefull ?

    If you want 0 GB for storage, you need the Zen Sleek Photo, as the Microphoto is too small (8GB). Bear in mind that if you want to use either player for data rather than music/photo storage, you will have to partition a section of the hard dri've for this. The organiser can be useful, but you can't edit the information once it is on either player. I think the quality of sound for both players would be similar (i.e. excellent MP3/WMA playback). I don't know about the quality of the FM radio on the Microphoto, but I know that the FM reception on the Sleek Photo is very good. Both players have an OLED screen that lights up when the player is being used and goes black when the player is idle. I think that the Microphoto's battery is replaceable, whereas the Sleek Photo's battery is not. However the Sleek Photo has a longer battery life (about 9 hours). The players are usually priced similarly and I would personally say you get more for your money with the Zen Sleek Photo.

  • What Kinde of program should I use for mastering?

    I had a litle problem with mastering my songs what I made with Logic Pro X is not enough laud. I need some help that what is a program to use mastering?

    You can master your tracks in logic. Bounce the song and import into a fresh logic project, then just apply your mastering processes there. However, mastering is a task that does require a very special skill set and a very good listening environment. Just having the software doesn't make a good master.
    Cheers,
    Jazz

Maybe you are looking for

  • Error message to warning

    I want to make this error message to warning. Can any body tell me where I can get this The base unit of measure cannot be changed; choose "Display errors" Message no. M3 189

  • Best way to back out data changes after a release

    Hi, I'm trying to decide on the best way to backup some production data in case a release fails and we need to roll back the changes. This would be for data updates only, not schema changes. We have extremely limited access to production, and another

  • How to open a PDF stored on my computer with FF PDF js?

    I want to open PDF files stored on my computer with FF PDF js. Reason: This way I can search my local PDFs loaded in a FF Window together with other tabs in a FF Window using the FF ad-on HUGO or any other search tool for tabs. Thank you for your hel

  • Zen Microphoto Question (I'm Just A little Worried

    I bought my ZMP couple months ago and everything is working fine but sometimes when the player is off and its just on the table it blinks with its blue light and then nothing! if I notice this I turn its on to check if nothing is broken or something

  • Will I be able to hook up and record from this VCR to my Macintosh which is  Intel Core i3- 10.6.8???

    I am considering the purchase of an  EyeTV HD DVR for HD Cable and Satellite TV for Macintosh (10021040) I wish to record segments of VHS tapes for use in Macintosh iMovie My VCR (GE) has only the standard RCA red, white and yellow sets of three, one