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...

select empid empname from employee

What is the result for the about query?

Answer Posted / swetha

It will give the empids list from the table, with column
name as empname.
This implies the general syntax of renaming a column when
retriving data.
syntax: select dbcolumnname as newcolumnname from table1
OR
select dbcolumnname newcolumnname from table1.
Both the statements means the same.

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a code to select distinct records without using the DISTINCT keyword.

1048


How can we remove orphan records from a table?

928


How to download and install sql server 2005 books online?

1082


what is sql server? : Sql server database administration

924


How to drop an existing stored procedure in ms sql server?

959


What is BCP? When does it used in sql server 2012?

992


How many types of the database links?

1020


What happens if strings are casted into wrong code pages in ms sql server?

1058


What is the maximum length of an alert name?

958


What are the different types of subquery?

1093


How to select true false based on column value in sql server?

947


what is hash nonclustered index

906


A trigger can reference objects outside the current database? State true or false.

942


What is the difference between functions and stored procedures?

1090


Define ACID properties in a Database?

1002