select empid empname from employee
What is the result for the about query?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / kalyana chakravarthy maddipati
There should be a , between empid and empname like empid,empname if not empname will be taken as Alias name for empid ie, all the results empid will be displayed with a column heading as empname
| Is This Answer Correct ? | 1 Yes | 0 No |
Explain following error properties?
Explain about Normalization?
What are cursors and when they are useful?
What are four major operators that can be used to combine conditions on a where clause?
What are tables in sql server?
How to Handle the exceptions in Sqlsrver 2005??
SQL Server Performance Tuning for Stored Procedures & reducing debugging time?
1 Answers CarrizalSoft Technologies,
Do you know spatial data types - geometry and geography in sql server 2008?
When setting replication, is it possible to have a publisher as 64 bit sql server and distributor or subscribers as a 32 bit sql server?
What are examples of triggers?
How to write an inner join with the where clause in ms sql server?
How to know the NAME of the Database and SIZE of the Database at the client node in Sql Server 2005
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)