Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. CousinBrucie

    Table Update Based on Comparison Results

    Wow, thanks Mark. I see I have a lot to learn with this stuff, but what a great example I can learn from as I implement and test with this. CB
  2. CousinBrucie

    Table Update Based on Comparison Results

    Hello, I've got this which is working without the WHERE clause (or when WHERE 1 = 1) and am trying to get this to work with the MAX(FileLoadDate) in the filter condition. I'm comparing to the variable values which is working fine, but when I try to run this with a WHERE clause with a nested...
  3. CousinBrucie

    Table Update Based on Comparison Results

    Thank you both for your responses. This stored procedure is going to take in the FileName from an SSIS package, with the prior steps being that both the Submission table will be truncated, so we'll always be sure that the detail records in the Submission table belong to the MAX record in the...
  4. CousinBrucie

    Table Update Based on Comparison Results

    Hello, I'm taking in the string comparisons I need, but now need to just update a column in another table based on this result. Here's a snippet of what I'm trying to accomplish with a CASE WHEN THEN END but it isn't working: SELECT * FROM TestSubmission t CASE WHEN t.Region <> @region THEN...
  5. CousinBrucie

    String Comparison Between File Name and Record Detail

    Actually, I realized that all I need to do at this point is simply loop through values in another table and compare thos, so the heavy lifting ahs been done. It works a treat, thanks again for the assist!
  6. CousinBrucie

    String Comparison Between File Name and Record Detail

    Hi Simi, I added a missing parentheis on the end and it worked! Fantastic! So, can you show me an example of how I would apply this string parsing logic to records as I loop through them? Thanks, Bruce
  7. CousinBrucie

    String Comparison Between File Name and Record Detail

    Hi Simi, OK, I think I'm tracking this. Let me give it a whirl and I'll let you know how it goes. Thank you very much for taking the time out to reply. Bruce
  8. CousinBrucie

    String Comparison Between File Name and Record Detail

    Hello, I am writing a stored procedure to compare values within a File Name stored in one table to the stored values in another. Here is an example of the filename: TESTCOMPANY_ABCD_23_NEW_SUBMISSION.txt. The filename along with a timestamp is stored in a table named SubmissionManagement...

Part and Inventory Search

Back
Top