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 do you mean by COLLATION?
How to modify an existing user defined function?
hi. suppose one person goal is strong knowledge on SQL.... suggest me ...if he learns SQL SERVER or ORACLE? which is best?
7 Answers Google, TCS, Unisys,
What is an example of a foreign key?
How to generate the Reports for the Database? I need an Example for it.Will we manually do this or else any script is there? Please let me know ASAP...
What are the difference between data mart and data warehouse? : sql server analysis services, ssas
What are sql servers used for?
How to automatically create a log when an exception is being received into SQL Server?
How to disconnect from a sql server using mssql_close()?
What is Sqlpaging in SqlServer 2005 ?
How do we know if any query is retrieving a large amount of data or very little data?
Explain trigger and trigger types?
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)