1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

MS Sql HELP - Badly Needed

Discussion in 'Software Development' started by MRdNk, May 18, 2010.

Thread Status:
Not open for further replies.
  1. MRdNk

    MRdNk Thread Starter

    Joined:
    Apr 7, 2007
    Messages:
    439
    Hi all,

    Hope someone can help.

    I have a table with

    RecordID Type Number
    1 A 123
    1 B 234
    1 C 345
    2 B 321
    2 C 432

    I need to be able to select Number
    if RecordID = 1 AND
    if Type='A' Then Number
    ElseIf Type='B' Then Number

    This is a LEFT JOIN from another table that has the RecordID as a unique ID field.
    So ON RecordID = RecordID (ie. 1)

    Please note I didn't make either table, and I can't change it as other systems rely on this current setup, yes it's horrible, yes it's all wrong, and yes I wish I could change it, but I can't.
     
As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 733,556 other people just like you!

Loading...
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/923793

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice