What is an alias and how does it differ from a synonym?

Answers were Sorted based on User's Feedback



What is an alias and how does it differ from a synonym?..

Answer / guru

Alias & Synonyms are alternate of table or a view.

ALIAS SYNONYM


1. it is a global object. 1. it is aprivate object.
2. any one can access the 2. but the one who create
alias. the alias can only
access it.
3.when the base table is
droped.Alias is not dropped. 3. when the base table is
droped.SYNONYM is dropped
automatically.

Is This Answer Correct ?    19 Yes 3 No

What is an alias and how does it differ from a synonym?..

Answer / krishna kant kumar

Alias is used in present session only but synonym is used in next session also because it is a database object.

Is This Answer Correct ?    0 Yes 0 No

What is an alias and how does it differ from a synonym?..

Answer / yogendra shinde

Hi,

Alias and Synonym both are alternative names to a table
name. But the major difference between Alias and Synonym is
that
>>>Alias can be used to refer a table at different location
( meaning different or remote system and it is not provate
to user who has created it)

>>> Synonym is used to refer table in the same location
with different name. Synonym is very much provate to the
user who has created it.

>>> Regarding dropping ALIAS and SYNONYM I am doubtful.
I have read that if we drop base table or base view then
both alias and synonym are also dropped (As per C.J.DATE
DB2 version 4.0). Please update if anybody has more on this.

Is This Answer Correct ?    4 Yes 8 No

Post New Answer

More DB2 Interview Questions

In a DB2-CICS program which is acts as co-ordinator and which is participant?

1 Answers   IBM,


What is image copy in db2?

0 Answers  


Why db2 is called db2?

0 Answers  


If the cursor is kept open followed the issuing of commit, what is the procedure to leave the cursor that way?

0 Answers  


How to check sequence on a table in db2?

0 Answers  






How to resolve -502 sql code in DB2?

2 Answers   Cap Gemini,


Explain the function of data manager.

0 Answers  


Which is faster delete or truncate?

0 Answers  


what is the differences between spufi and qmf and which is better?

4 Answers   Accenture, Cap Gemini,


What is an EXPLAIN in DB2. How and what is the steps followed in EXPLAIN command. Can all the queries be used in EXPLAIN command to check the performance.

3 Answers   IBM,


Name the various locking levels available?

0 Answers  


Is schema the same as database?

0 Answers  


Categories