1.what is the purpose of using alias name in sql server?
with certain example?

2.what is cursor?will u plz explain me in detail with
certain example?

Answer Posted / sujit sarkar

The main purpose of alias is we can define one object (like
table,column..) from another object which is used in sql
statement.
Suppose you need average salary and salary

then you can write

Select salary/12 as 'average salary' from salary

Is This Answer Correct ?    13 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can two tables have the same primary key?

563


How can I add Reporting Services reports to my application?

91


What is the command to change the recovery model?

567


How to resolve the orphan use problem? : sql server security

525


Explain nested stored procedure. Syntax and an example for create nested stored procedure?

530






What are two difference between sql azure and azure tables?

137


What is the difference between index seek vs. Index scan?

576


Your sql server is running out of disk space. You notice that there are several large files with ldf extensions what are these files?

611


What is filtered index?

651


What is subquery in sql?

566


What are policy management terms?

556


how to determine the service pack currently installed on sql server? : Sql server database administration

565


How many null values we can have in a unique key field in sql server?

552


Explain comment on transactions?

551


What are the new features are introduced in sql server 2012 reporting services?

107