Home » SQL & PL/SQL » SQL & PL/SQL » Oracle 9i HELP!
Oracle 9i HELP! [message #6718] Fri, 02 May 2003 10:13 Go to next message
Nazma Bepat
Messages: 34
Registered: May 2003
Member
Thanks to everyone for all you help. I need to know the following:

Write a query that produces the following output concatenated. <course number>, has a cost of, <cost>, but will be increased this year by <10% of the cost >. Provide a column alias.
Re: Oracle 9i HELP! [message #6749 is a reply to message #6718] Sun, 04 May 2003 23:58 Go to previous message
Maaher
Messages: 7065
Registered: December 2001
Senior Member
SELECT tab.course_number
         ||', has a cost of, '
         ||tab.cost
         ||', but will be increased this year by '
         ||to_char(tab.cost/10) alias_name_comes_here 
  FROM _your_table_ tab


MHE

Here's a link for you: Oracle Online Documentation. Keep the URL in your mind. It might come in handy.
Previous Topic: Where can I get an example of "sql compiler"?
Next Topic: a small query in oracle
Goto Forum:
  


Current Time: Wed Apr 24 08:31:11 CDT 2024