Answer Posted / mehdee
That is correct, Alias is an alternate name of the table
and it is used so that application programs will always be
right accessing these DB2 tables, for example:
table name alias name
- - - - - - - -
TABLE_A DATA_FOR_MON_0 (current mon)
TABLE_B DATA_FOR_MON_1 previous
TABLE_C DATA_FOR_MON_2
> now at the end of the month we want to purge the 3rd
month data and start fresh to add or load data for the
duration of the new cuurent month, so what DBADM does is
they simply EMPETY the last month DB2 table and reALIAS the
other two as:
table name alias name
- - - - - - - -
TABLE_C DATA_FOR_MON_0 (current mon)
TABLE_A DATA_FOR_MON_1 previous
TABLE_B DATA_FOR_MON_2
So the application programs using alias name will always
be right about which table is for which month.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How can you validate Sql errors during cursor operation in db2 pgms and where do you code?
What is scrollable cursor in db2?
What is the physical storage length of timestamp data type?
My sql statement select avg(salary) from emp yields inaccurate results. Why?
Is db2 a mainframe database?
Which component is responsible for db2 startup and shutdown?
How do I delete a table in database?
Can you use max on a char column?
What is explain plan in db2?
Is db2 free?
When reorg is used?
What is declare cursor?
Which component is responsible for processing sql statements and selecting access paths?
What's The Error Code For Unique Index Voilation?
What is the function of logging in the db2 database?