select empid empname from employee

What is the result for the about query?

Answers were Sorted based on User's Feedback



select empid empname from employee What is the result for the about query?..

Answer / vinayak

select empid,empname from employee

Is This Answer Correct ?    3 Yes 1 No

select empid empname from employee What is the result for the about query?..

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

select empid empname from employee What is the result for the about query?..

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

select empid empname from employee What is the result for the about query?..

Answer / guest

itis dis[lay

Is This Answer Correct ?    0 Yes 2 No

Post New Answer

More SQL Server Interview Questions

What is update locks?

0 Answers  


What is the difference between commit and rollback?

0 Answers  


Explain system rowset functions?

0 Answers  


Write a SQL Query to find first Week Day of month?

2 Answers  


When we can say that is in BCNF?

3 Answers   BitWise,






whats the maximum size of view state??

0 Answers  


What are the types of indexes available with SQL Server?

2 Answers   Standard Bank,


Explain identity in sql server?

0 Answers  


How to write a query with a right outer join in ms sql server?

0 Answers  


What is Index ? Explain its Types?

2 Answers   ADP,


What is lock escalation?

1 Answers  


Why people hate cursor?

0 Answers  


Categories