IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Is there is any limit for number of packages under a plan..


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
gokuldass

New User


Joined: 18 Mar 2005
Posts: 48
Location: india

PostPosted: Tue May 03, 2005 11:31 pm
Reply with quote

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
View user's profile Send private message
priya

Moderator


Joined: 24 Jul 2003
Posts: 568
Location: Bangalore

PostPosted: Wed May 04, 2005 7:32 am
Reply with quote

No, you can have any no of packages till your PLAN_TABLE getting full.
Back to top
View user's profile Send private message
sivatechdrive

Active User


Joined: 17 Oct 2004
Posts: 191
Location: hyderabad

PostPosted: Mon May 09, 2005 1:55 pm
Reply with quote

Hi murali

Plz post ur question in a seperate Subject

ibmmainframes.com/viewtopic.php?t=1736&highlight=correlated


Thanks & Regards
Siva Chaitanya
Back to top
View user's profile Send private message
narayana

New User


Joined: 22 Apr 2005
Posts: 2

PostPosted: Mon May 09, 2005 4:09 pm
Reply with quote


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
View user's profile Send private message
i413678
Currently Banned

Active User


Joined: 19 Feb 2005
Posts: 112
Location: chennai

PostPosted: Tue May 10, 2005 12:29 pm
Reply with quote

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
View user's profile Send private message
gokuldass

New User


Joined: 18 Mar 2005
Posts: 48
Location: india

PostPosted: Sat May 14, 2005 7:43 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts Pulling a fixed number of records fro... DB2 2
No new posts Substring number between 2 characters... DFSORT/ICETOOL 2
No new posts Generate random number from range of ... COBOL Programming 3
No new posts Increase the number of columns in the... IBM Tools 3
No new posts Cobol program with sequence number ra... COBOL Programming 5
Search our Forums:

Back to Top