Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 154
  • Last Modified:

Last query I am trying to do

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
peanut1010
Asked:
peanut1010
  • 2
  • 2
  • 2
1 Solution
 
krustDogCommented:
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
 
peanut1010Author Commented:
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
 
krustDogCommented:
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
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
peanut1010Author Commented:
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
 
MindphaserCommented:
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
 
MindphaserCommented:
Points refunded and moved to PAQ

** Mindphaser - Community Support Moderator **
0

Featured Post

Become an Android App Developer

Ready to kick start your career in 2018? Learn how to build an Android app in January’s Course of the Month and open the door to new opportunities.

  • 2
  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now