How to pass the value to four different columns in a view [message #329031] |
Mon, 23 June 2008 15:00 |
orachan
Messages: 1 Registered: June 2008
|
Junior Member |
|
|
Hi Oracle gurus,
We have the following scenario. We have four tables similar to the ones mentioned below. All the four tables are snapshot tables, meaning the data would represent what the values were at any given point in time.
I need to create a view by joining all these four tables which I can do using the common columns. The requirement is that there should be only one set of START_DT and END_DT in the view and the filter applied to these columns should get applied to the START_DT and END_DT columns in all the four tables. Please let me know how to implement this. Any help would be greatly appreciated.
Table A:
XX_ID
XX_NAME
START_DT
END_DT
TABLE B:
XX_XXX_ID
XX_XXX_NAME
XX_ID
XX_TYPE
XX_FLAG
START_DT
END_DT
TABLE C:
XX_ID
XX_TYPE
XX_XXX_TYPE
START_DT
END_DT
TABLE D:
XX_XXX_ID
XXX_CD
XXXX_CD
XXXX_XXXXXX_CD
START_DT
END_DT
Regards.
|
|
|
|
|