What is an alias?

Answers were Sorted based on User's Feedback



What is an alias?..

Answer / wellwisher

Alias is an alternate name of the table. It will be droped
when the base table is deleted.

Is This Answer Correct ?    2 Yes 2 No

What is an alias?..

Answer / 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

What is an alias?..

Answer / ram.g

the last ans is wrong.
alias usually used to hide the location of ds. alias wont
be dropped when ts is dropped. it's avaiable to all.

Is This Answer Correct ?    1 Yes 2 No

Post New Answer

More DB2 Interview Questions

Mention the length of physical storage of the given data types of db2 – date, timestamp, time

0 Answers  


How to check last update on table in db2?

0 Answers  


How does one remove entries from the SCT02 table?

1 Answers  


What keyword does an SQL SELECT statement use for a string search?

2 Answers  


Which catalog table stores referential constraints?

1 Answers  






What happens to the PLAN if index used by it is dropped?

1 Answers  


What parameters are used to control the free space in DB2?

0 Answers  


Give the COBOL definition of a VARCHAR field.

2 Answers  


what is the certification that has a good value for a practioner in mainframes but not habving much knowledge on db2 related stuff?

2 Answers  


i have a db2 variable how do u declare tht into working storage section ?

1 Answers   TCS,


how to copy the host variables from ps file into cobol program other than include statement

1 Answers   Syntel,


5 rows are inserted to a DB2 Table. Next 3 of those are updated, then a rollback is issued. What would happen when the rollback is issued?

2 Answers  


Categories