JOIN

Technical Article

RE: Build query by using function

  • Reply

Try this:  SELECT SerialNumber, PassFail, CASE WHEN [PassFail] = 1 THE 'Pass' ELSE 'Fail' END AS Expr1 FROM TestLog  (Note, this does not include any test for a NULL or any other number..., you may want to look up CASE in BOL and see if you want to include more...)  

You rated this post out of 5. Change rating

2004-12-06

Technical Article

RE: SP Newbie 2 questions

  • Reply

Hi Josh, You are welcome. and( SS.status_id = @entry or @entry is null) if @entry is null this will always evaluate to true, thus return all the rows no matter what SS.status_id is. if @entry is not null this will only evaluate to true if SS.status_id = @entry, thus returning only the rows with the […]

You rated this post out of 5. Change rating

2004-07-16

Technical Article

RE: Using IDENTITY_INSERT with linked servers

  • Reply

I agree that this should be done with stored procedures. It's to maintain a total of four environments (live, uat, sys-test and dev), so I was hoping to have the SP's on a single environment rather than having to maintain the same SP's in four places. I guess it's not the end of the world […]

You rated this post out of 5. Change rating

2003-07-29

1 reads

Blogs

Small Data SF 2024

By

I can’t remember how I heard about Small Data SF 2024, but it caught...

A New Word: Moledro

By

moledro – n. a feeling of resonant connection with an author or artist you’ll...

Snowflake + Azure blob

By

Let’s go back to data platforms today and I want to talk about a...

Read the latest Blogs

Forums

7 sept, scheduled book

By philip.scott

Comments posted to this topic are about the item 7 sept, scheduled book

7 sept, schedlued article

By philip.scott

Comments posted to this topic are about the item 7 sept, schedlued article

6 sept, published book

By philip.scott

Comments posted to this topic are about the item 6 sept, published book

Visit the forum

Question of the Day

Azure Data Lake Storage Gen 2

Azure Data Lake Storage Gen 2 is built on ...?

See possible answers