how do we find every fifth record in a table

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain what are the steps you will take, if you are tasked with securing an sql server? : Sql server database administration

648


Where the sql logs gets stored?

550


How to call a function from a stored procedure in SQL Server ?

554


Explain the difference between control flow and data flow?

532


How can you tell if a database object is invalid?

619






What are the different methods available under sqlcommand class to access the data?

695


What is local temp table?

558


How to defragment table indexes?

557


What are the steps you should follow to start sql server in single-user mode?

490


Explain steps of normalization?

527


What causes index fragmentation?

585


Tell me what are cursors and when they are useful?

511


Your company has 50 branches all over the country all the branches, including the head office have sql server as the database every night all 50 branches upload certain information to the head office which replication topology is best suited for the above scenario?

633


Can sql servers linked to other servers like oracle?

548


Explain triggers in sql?

558