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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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
How to find out name of all employees who has salary less 
than 200 Rs.?
 Question Submitted By :: Sapna
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to find out name of all employees who has salary less than 200 Rs.?
Answer
# 1
select Emp_Name from emptable where  sal < 200
 
Is This Answer Correct ?    23 Yes 2 No
Bhaksar
 
  Re: How to find out name of all employees who has salary less than 200 Rs.?
Answer
# 2
select *from <table name>where sal<20
 
Is This Answer Correct ?    7 Yes 9 No
Aditya
 
 
 
  Re: How to find out name of all employees who has salary less than 200 Rs.?
Answer
# 3
select ename from emp where sal<200
 
Is This Answer Correct ?    3 Yes 2 No
Praveen Kumar.dandu
 
  Re: How to find out name of all employees who has salary less than 200 Rs.?
Answer
# 4
Select <Employee Name Field> From <Table Name> Where <Salary
Field> < 2000
 
Is This Answer Correct ?    1 Yes 0 No
Tasneemuddin
 
  Re: How to find out name of all employees who has salary less than 200 Rs.?
Answer
# 5
select * from Employees where Salary <200
 
Is This Answer Correct ?    0 Yes 1 No
Jay
 
  Re: How to find out name of all employees who has salary less than 200 Rs.?
Answer
# 6
select emp<e name field>,sal<Sal field> from employees <Table name>
where sal<Sal field> < 200

Note: Field = Table column name......


enjoy... this is simple query
 
Is This Answer Correct ?    1 Yes 0 No
Manu
 
  Re: How to find out name of all employees who has salary less than 200 Rs.?
Answer
# 7
Is this a real question???? First off, with all the
asterixes is wrong. Just want the employees.

select AiFirstName, AiEmpLastName
from   AiEmployees
where  AiSalary < 200
 
Is This Answer Correct ?    0 Yes 1 No
Juergen
 

 
 
 
Other SQL Server Interview Questions
 
  Question Asked @ Answers
 
What are SQL Jobs, please mention the use of it and how to create them. 247Customer1
How to delete duplicate records from a table?(for suppose in a table we have 1000 Records in that we have 200 duplicate Records , so ,how to findout that duplicate Records , how to delete those Records and arranged into sequence order? one more thing that there is no primary key at all) McAfee5
Can we create clustered index on non primary key column CTS14
What are Sql Reporting Services and analysis services? Can u Explain  1
In performance wise distinct is good or group by is good? eg:select name from emp group by name; select distinct name from emp; Infosys4
What r sql reporting services and analysis services? how can we use it. Microsoft2
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
If there exist a index on the table, and we then make a view on that table (include the indexed column from base table) than why do we require indexing on view?Doesnt it create an overhead?  1
What is the difference between a Local temporary table and a Global temporary table? How is each one used?  1
WHAT IS TRIGGERS IN SQL? AND WHAT IS THE BENIFIT?  6
how do we find every fifth record in a table  11
How to count the number of duplicate items in a table?  1
How do I compare two values when one value(data type) is char and the other is an integer?  3
how to write the query to select the rows are in the order of either 1,3,5,7... or 2,4,6,8,... ADP5
How to determine the service pack currently installed on SQL Server? HCL4
What is the use of MOVE keyword in restore command IBM2
is there more the two primary key in a single table? Systematix22
What are the different types of joins and what does each do?  2
What is the difference between views and stored procedures? Can we have input parameters for views?  3
Explain the basic concepts of SQL server architecture?  2
 
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