set @b:=0;
set @b1:=3; #
#select distinct salary,@b:=@b+1 as Row_no from emp
select * from emp where salary=(
select salary from (
select a.salary,@b:=@b+1 as row_no from (
select distinct salary from emp
) a) b
where b.row_no=@b1
)
set @b:=0;
set @b1:=3; #
#select distinct salary,@b:=@b+1 as Row_no from emp
select * from emp where salary=(
select salary from (
select a.salary,@b:=@b+1 as row_no from (
select distinct salary from emp
) a) b
where b.row_no=@b1
)
set @b:=0; set @b1:=3; # #select distinct salary,@b:=@b+1 as Row_no from emp select * from emp where salary=( select salary from ( sele...
No comments:
Post a Comment