Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
CTE with recursive
declare @n int =20; WITH hier(cnt) AS ( SELECT 1 UNION ALL SELECT cnt + 1 FROM hier WHERE cnt < @n ) SELECT cnt FROM hier
run
|
edit
|
history
|
help
0
a
Select empID whose salary is greater than their managers
Pivot unpivot
Trabalho.Agrecação
Hotel
Jean
New
get first parent with a value
Escola
sql