GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Interview Questions  >  Oracle  >  SQL
Go To First  |  Previous Question  |  Next Question 
 SQL  |  Question 4 of 168    Print  
What is difference between Rename and Alias?
Rename is a permanent name given to a table or column whereas Alias is a temporary name given to a table or column which do not exist once the SQL statement is executed.



  
Total Answers and Comments: 8 Last Update: January 29, 2008   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: pavan
 

rename is used to change name of the table/column.

once we rename the table/column, old column/table name  is replaced by new column/table name.

alias is the alternate name of the table/column.



Above answer was rated as good by the following members:
satyam_Ora
February 27, 2006 05:31:33   #1  
pavan        

RE: What is difference between Rename and Alias?...

rename is used to change name of the table/column.

once we rename the table/column, old column/table name  is replaced by new column/table name.

alias is the alternate name of the table/column.


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
March 01, 2006 06:23:09   #2  
Mainak Aich        

RE: What is difference between Rename and Alias?...
If we rename a column or a table it is parmanent but alias is not permanent.Each time we have to specify the alias.
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
August 25, 2006 04:51:51   #3  
nitin        

RE: What is difference between Rename and Alias?...

the difference is that

rename is used to change the name of the column or table!
alias it is a name given to table which is used as an object extracting the information from the table and gives more meaning to query implemented!
it is just like an object.variable which we use in OOP's concept!


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
March 27, 2007 12:51:12   #4  
the_xxx Member Since: March 2007   Contribution: 12    

RE: What is difference between Rename and Alias?...
I would like add one more point.

Rename will change the name of the coulmn/table permanently , where as alias is Query Specific ( name of the coulmn is changed for the query reference).

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
August 06, 2007 22:44:52   #5  
hari        

RE: What is difference between Rename and Alias?...
Rename of a column or table is a permanent change where alias is a object for a column or table where it can be referred instead of using a long column or table names. For eg. usage of alias is
1. Joins
2. Subqueries

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
August 07, 2007 04:45:50   #6  
velsowmya Member Since: August 2007   Contribution: 7    

RE: What is difference between Rename and Alias?...

Rename is used for changing the name of the column or table.
where as alias is the command used tio change the column name for query purpose.
Basically alias are used mostly in joins


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
October 31, 2007 01:58:00   #7  
purnachand_venu        

RE: What is difference between Rename and Alias?...
alias is temporary name from column/table . we can't participate in any operation using that alias name. where as rename is a new name given for exiting table or column name.. using this name we can participate in any operations. when ever we given rename for table/column the old name is no more in database
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
January 29, 2008 08:17:48   #8  
patilpravin_1981 Member Since: December 2007   Contribution: 28    

RE: What is difference between Rename and Alias?
Rename means give the new name to existed objects
alise is use to refrence to objects

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    


 
Go To Top


 Sponsored Links

 




About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape