How to find the even number records from SQL table #shorts #sql #sqlqueries #sqlinterview #coding

preview_player
Показать описание
How to find the even number records from SQL table #shorts #sql #sqlqueries #sqlinterview #coding
#programming #youtubeshorts
Рекомендации по теме
Комментарии
Автор

Select * from emo where mod(empno, 2)=0;

Telugupole
Автор

With cte
As
(Select *, row_number() over (order by empid)as rn from emp)
Select * from cte where rn %2=0

vallepupraveen
Автор

Without using row number

Select * from empinfo
Where empid % 2 = 0;

sanjayhc
Автор

select * from table_name where salary %2=0 for even.
And 1 is for odd

Rishi-gyu
Автор

it's a question to check that you actually took a SQL course.

xl
Автор

select * from employee
Where empid%2=0

Jami_Sarat_Kumar
Автор

SELECT emp_id, emp_name, emp_salary
FROM employee
WHERE emp_id % 2 = 0;
Please check this query

JohnWick-irgo
Автор

why can't we simply do like this SELECT * FROM Employee WHERE Empid %2==0;

HCIgroup
welcome to shbcf.ru