Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


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

Can we install 2 different versions of Db2 on same mainframe?

3 Answers  


Define buffer pool.

0 Answers  


If I have a view which is a join of two or more tables, can this view be updatable?

3 Answers  


select * from orders where odate between '2010-01-01'and '2010-03-31' How do u fetch this into cursor?

2 Answers  


If we have 100 records in the PF, we deleted all the records then what is the Size of the PF?

2 Answers  


What is a DB2 bind?

1 Answers   Logica CMG,


What is a Foreign Key?

0 Answers   Tavant Technologies, Zensar,


What are the two types of logging in the db2 database? Explain them.

0 Answers  


What happens to a cursor after a commit?

3 Answers  


What is the SQL query to select, delete and get count of duplicate rows in DB2?

2 Answers  


How is deadlock resolved?

0 Answers  


What is the difference between static and dynamic SQL?

1 Answers  


Categories