View previous topic :: View next topic |
Author |
Message |
wishlister Beginner
Joined: 08 Mar 2007 Posts: 16 Topics: 3
|
Posted: Thu Mar 08, 2007 11:22 am Post subject: stored proc on typed tables |
|
|
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 |
|
|
wishlister Beginner
Joined: 08 Mar 2007 Posts: 16 Topics: 3
|
Posted: Thu Mar 08, 2007 12:02 pm Post subject: |
|
|
how can i perform union of those two tables? |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Thu Mar 08, 2007 12:21 pm Post subject: |
|
|
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 |
|
|
|
|