Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5948353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T17:05:44+00:00 2026-05-22T17:05:44+00:00

I need an if-statement that creates a field called part_ID. This field takes the

  • 0

I need an if-statement that creates a field called “part_ID”. This field takes the field “p.ID” and looks it up in “a.Part_ID”. If the part_ID is not null in “a.Part_ID”, then the part ID should remain unchanged and just be “a.Part_ID”. If the part ID is null, then it should lookup the part ID in “b.Part_ID_Not_cataloged” and if the part ID is listed, then it should substitute it with “b.related_Part_ID_in_catalog”.

   SELECT a.Part_ID, p.ID, b.Part_ID_Not_cataloged, b.related_Part_ID_in_catalog
     FROM (SYSADM_PART AS p 
LEFT JOIN tbl_concatenated_data_view_only AS a ON p.ID = a.Part_ID) 
LEFT JOIN tbl_Part_ID_Not_in_catalog_entry AS b ON p.ID = b.Part_ID_Not_cataloged;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T17:05:45+00:00Added an answer on May 22, 2026 at 5:05 pm

    You will need to use IIF

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a statement similar to this that I need to run in Linq.
I need help finishing this statement. It is frustrating that two of the PHP
I need write an update statement that used multiple tables to determine which rows
I need to declare the query variable outside the switch statement that way I
I have a LINQ statement that returns an anonymous type. I need to get
I need a Regex Statement (run in c#) that will take a string containing
i need to create a dynamic SQL statement that selects fields based on an
could someone help me, i need a php statement that will display an image
As part of an assignment I need to create a shipping program that checks
I basically have 7 select statements that I need to have the results output

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.