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 |
How to get the query of a table in sql server?
What is normalization according to you and explain its different levels?
What is checkpoint in sql server?
Explain about remote stored procedure?
What are sql server procedures?
How to create a view with data from multiple tables?
What are subqueries in sql server? Explain its properties.
What is the purpose of sql profiler in sql server?
How can change procedure in sql server?
Define model database?
Explain the difference between function and stored procedure?
How do I make a resultset scrollable?
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)