how do we find every fifth record in a table
Answers were Sorted based on User's Feedback
Answer / satya gupt
select salary from emp e where 4=(select count(salary) from
emp where salary>e.salary
| Is This Answer Correct ? | 1 Yes | 4 No |
Answer / kumar.t
Table Name Is Employee
EmployeeId Is Identity field
Select * From Employee Where EmployeeId In (Select
EmployeeId From Employee Where EmployeeId%5=0)
by
Kumar.T
| Is This Answer Correct ? | 1 Yes | 4 No |
Answer / santhi k
Using Top N analysis....
select * from (select rownum rn, col1,col2,col3 from
tablename) where mod(rn,5)=0;
| Is This Answer Correct ? | 1 Yes | 7 No |
How to create function without parameter in sql server?
What command must you use to include the not null constraint after a table has already been created?
Detail about the hardware which is supported by SQL server?
CREATE a table from another table
How can you see what type of locks used?
What are the different types of locks in the database?
What is stretch database in sql server?
What is change data capture (cdc) in sql server 2008?
How to use column default values in insert statements in ms sql server?
What is meant by Active-Passive and Active-Active clustering setup?
Can a table be moved to different filegroup?
What is the recursive stored procedure in sql server?
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)