?
Solved

Last query I am trying to do

Posted on 2003-03-04
6
Medium Priority
?
153 Views
Last Modified: 2010-04-17
The last query I am trying to accomplish is:

Using the table(employee)

Need it to look like
(employee name) makes (sal) as a (job) for the us

have the column label be Employee Salary and sort records in asending order on job

0
Comment
Question by:peanut1010
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
  • 2
6 Comments
 

Expert Comment

by:krustDog
ID: 8067115
select employeeName+ " makes "+sal + " as a " + job +" for the us " as "Employee Salary" from employee order by job ASC

this should do it.  You might have to convert the salary to a string, I'm not sure what you variables are though
0
 

Author Comment

by:peanut1010
ID: 8067876
what about having the column say Employee Salary

so it would be
Employee Salary
---------------

select employeeName+ " makes "+sal + " as a " + job +" for the us " as "Employee Salary" from employee order by job ASC


the result of the select statment too.

0
 

Expert Comment

by:krustDog
ID: 8073629
The  'as "Employee Salary"'  makes the column

Employee Salary
--------------
Employee1 makes Sal1 as a Job1 for the us
Employee2 makes Sal2 as a Job2 for the us
Employee3 makes Sal3 as a Job3 for the us
Employee4 makes Sal4 as a Job4 for the us


I dunno what you mean by result, I don't have your table.
0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 

Author Comment

by:peanut1010
ID: 8079470
Actually I figured it out on my own. That wouldn't work with my oracle 8i.  It actually looks like this

Select employeename || 'makes' || sal || 'as a' || job
|| 'for us' "Employee Salary"
from employee order by job asc

Thanks anyways
0
 
LVL 6

Expert Comment

by:Mindphaser
ID: 8079842
peanut1010  asked to have this question closed. If there isn't any objection I will

   PAQ & refund

in 72 hours.

** Mindphaser - Community Support Moderator **
0
 
LVL 6

Accepted Solution

by:
Mindphaser earned 0 total points
ID: 8154127
Points refunded and moved to PAQ

** Mindphaser - Community Support Moderator **
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is about my first experience with programming Arduino.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
Introduction to Processes
Starting up a Project

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question