Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> A VERY DIFFICULT QUERY

A VERY DIFFICULT QUERY

From: nooruddin <nooruddin76_at_telebot.net>
Date: Thu, 15 Jul 1999 09:25:26 +0530
Message-ID: <7mkqio$aft$1@news.vsnl.net.in>


Hi!

I want a sql query for the following result:

From a table containing salaries (say emp table)

I want the salary which is closest to the average of all the salaries
(it seems easy at first look, but I assure you its not the case)

NOTE:The query should be an sql statement and not a pl/sql script. good luck..

bye.. Received on Wed Jul 14 1999 - 22:55:26 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US