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

What is difference between joins and subqueries?

629


How to retrieve error messages using mssql_get_last_message()?

627


How to create a trigger for insert only?

700


Which tcp/ip port does sql server run on? How can it be changed?

667


Can we return Data from 4(more than 1) tables in stored procedure?

728






tell me what are the steps you will take to improve performance of a poor performing query? : Sql server database administration

653


Define indexes?

693


What is the Difference Between Primary and Foreign Key?

669


How to concatenate two character strings together?

672


What encryption security is available in sql azure?

85


How to create a Master database in SQL server ?

647


tell me what is blocking and how would you troubleshoot it? : Sql server database administration

574


What is difference between delete & truncate commands?

626


Tell me what is the difference between locking and multi-versioning?

673


If user is owning any SQL Objects, can we drop that user

1699