View previous topic :: View next topic
|
Author |
Message |
gokuldass
New User
Joined: 18 Mar 2005 Posts: 48 Location: india
|
|
|
|
is there is any limit for number of packages under a plan.. if so then what it is.. also is it possible to create a single package for both main as well as subprogram.. if so explain it with sample code.. |
|
Back to top |
|
|
priya
Moderator
Joined: 24 Jul 2003 Posts: 568 Location: Bangalore
|
|
|
|
No, you can have any no of packages till your PLAN_TABLE getting full. |
|
Back to top |
|
|
sivatechdrive
Active User
Joined: 17 Oct 2004 Posts: 191 Location: hyderabad
|
|
Back to top |
|
|
narayana
New User
Joined: 22 Apr 2005 Posts: 2
|
|
|
|
select salary from emp a where n = (select count(distinct salary)
from emp b where b.salary >= a.salary);
I thought that this query is correct if any mistake correct it and send me back. |
|
Back to top |
|
|
i413678 Currently Banned Active User
Joined: 19 Feb 2005 Posts: 112 Location: chennai
|
|
|
|
HI All,
the query entered by narayana is excellent and it is correlated sub-query.
and this can be used for multiple purposes by replacing the = condition.
1. to get n highest salaries. ( n <= )
2. to get the rest of the salaries except n highest salaries ( n >= )
thanks narayana...........
Cheers............
pavan |
|
Back to top |
|
|
gokuldass
New User
Joined: 18 Mar 2005 Posts: 48 Location: india
|
|
|
|
hai all..
i asked two questions.. but no one replied answer for the second question.. is it possible.. then where this PLAN_TABLE will be stored. |
|
Back to top |
|
|
|