Advertisement

01.30.2008 at 05:53AM PST, ID: 23122663
[x]
Attachment Details

Howto parse/modify this sql output?

Asked by paulqna in SQL Query Syntax

Tags: ,

How should I write a query if I want the current example result:

column1      column2
------------------------------------
A                12
B                22
C                303

To be changed to:

column1      columnX
------------------------------------
A                Hot
B                Cold
C                Something

So a query being able to say "if value 12" then a column, not perse Column2 needs to show value "Hot", and if 22 then cold etc..

Is that possible?
Start Free Trial
[+][-]01.30.2008 at 05:56AM PST, ID: 20776979

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: SQL Query Syntax
Tags: SQL, Oracle 9
Sign Up Now!
Solution Provided By: angelIII
Participating Experts: 2
Solution Grade: A
 
 
[+][-]01.30.2008 at 05:57AM PST, ID: 20776985

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628