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 |
Can we store videos inside the sql server table?
Can you explain powershell included in sql server 2008?
What is index fragmentation in ms sql server?
What is Inner Join?
What is an indexed view?
Suppose i have a table that contains 5 columns like col1,col2...colm5.I want to import only two column through BCP utility.How to do same through BCP in sybase.
As a part of your job, what are the DBCC commands that you commonly use for database maintenance?
What is the default Port No on which SQL Server listens?
How to verify a login name with sqlcmd tool?
How do I repair damaged sql server mdf file database? In previous day my mdf file has got damage due to unknown reasons then I used dbcc chekcdb command but it failed, MDF file is important for me, I don’ know that how to get back mdf file data. Please anyone suggest me?
Why functions are used in sql server?
What is bcp? When does it used?
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)