ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Databases  >>  SQL Server
 
 


 

 
 Oracle interview questions  Oracle Interview Questions
 SQL Server interview questions  SQL Server Interview Questions
 MS Access interview questions  MS Access Interview Questions
 MySQL interview questions  MySQL Interview Questions
 Postgre interview questions  Postgre Interview Questions
 Sybase interview questions  Sybase Interview Questions
 DB Architecture interview questions  DB Architecture Interview Questions
 DB Administration interview questions  DB Administration Interview Questions
 DB Development interview questions  DB Development Interview Questions
 SQL PLSQL interview questions  SQL PLSQL Interview Questions
 Databases AllOther interview questions  Databases AllOther Interview Questions
Question
select empid empname from employee

What is the result for the about query?
 Question Submitted By :: Senthilsjc
I also faced this Question!!     Rank Answer Posted By  
 
  Re: select empid empname from employee What is the result for the about query?
Answer
# 1
itis dis[lay
 
Is This Answer Correct ?    0 Yes 1 No
Guest
 
  Re: select empid empname from employee What is the result for the about query?
Answer
# 2
select empid,empname from employee
 
Is This Answer Correct ?    1 Yes 1 No
Vinayak
 
 
 
  Re: select empid empname from employee What is the result for the about query?
Answer
# 3
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 ?    2 Yes 1 No
Swetha
 
  Re: select empid empname from employee What is the result for the about query?
Answer
# 4
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 ?    0 Yes 0 No
Kalyana Chakravarthy Maddipati
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
How can your resolve deadlocks? IBM3
how to get the rowid/rownumbes of a table in sqlserver IBM5
Please get the 4 th maximum salary from a table without using any sql keyword (TOP,MAX are mot allowed)  3
where do you use Isolations?give me some exmpale?  1
how to get the maximum among two tables,for example table 1 (dep1) have (emp_id,emp_name,salary) columns and table 2 (dept2) have (emp_id,emp_name,salary) columns,i want which employee have the maximum salary among two tables? Lason1
Difference between server.transfer and server.execute method?  1
Is it possible to create a stored procedure that runs a query and outputs the results to a text file and allows me to add extra delimeters and static field info. If so How?  1
what is Data Transformation Services (DTS) ?can u explain me in detail? TCS5
What is the purpose of UPDATE STATISTICS?  1
How to restart SQL Server in single user mode? How to start SQL Server in minimal configuration mode?  1
What is a job?  3
What is transcation?Plz give One example?  2
Explain the new features of SQL server 2000?  1
How do I compare two values when one value(data type) is char and the other is an integer?  3
table:employee EID ENAME MID(manager ids) 101 rama null 102 sita 101 103 siva 101 104 ganesh 103 . . . . . . for 103 ID the manager ID is 101(RAMA) and for 104 manager is SIVA if i give employee id (EID) you have to tell the manager for that EID write query? eample:if i give 102 .The query output should be manager for 102 ID that it should print RAMA as output  4
What is the difference between a stored procedure and a user defined function in sql server? Millennium2
What is row by row processing ?  1
what is mean by crystal repoart? ahere we will mainly use that?  1
how many joins we can write if at all we have n no of tables Tanla-Solutions4
How to find the date and time of last updated table? Teledata4
 
For more SQL Server Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com