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 |
What is an entity-relationship diagram (erd)?
How to enter comments in transact-sql statements?
How to make a remote connection in a database?
How to provide Security for package?
i want only duplicates rows from coloumn ex. emp_id(colomn name)1,1,2,3,3,4,5,5. so i want only duplicates no.
How do I create a partition table in sql server?
Explain Geography datatype in SQL Server
What is the query and subquery?
How do I schedule a sql server profiler trace?
What is master database? : SQL Server Architecture
What is Self Join?
What are trace flags?
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)