MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

stored proc on typed tables

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
wishlister
Beginner


Joined: 08 Mar 2007
Posts: 16
Topics: 3

PostPosted: Thu Mar 08, 2007 11:22 am    Post subject: stored proc on typed tables Reply with quote

db ESE
i have typed tables. i will create a stored procedure where i will store all the data from the 2 subtype tables in one table. for example, if i have supertype person with subtypes employee and student. in the new table that i will create, all the data will be included regardless of their type and having nulls to those fields that are not appropriate for each.
sample
Code:

personID name type studentID   empNo
     1   abc     S       123   <blank>
     2   def     E     <blank>   456
Back to top
View user's profile Send private message
wishlister
Beginner


Joined: 08 Mar 2007
Posts: 16
Topics: 3

PostPosted: Thu Mar 08, 2007 12:02 pm    Post subject: Reply with quote

how can i perform union of those two tables?
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Mar 08, 2007 12:21 pm    Post subject: Reply with quote

wishlister,

please do NOT open multiple topics for the same question. Refer the other thread

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group