Run Code
|
Code Wall
|
Users
|
Misc
|
Feedback
|
About
|
Login
|
Theme
|
Privacy
2
create table competition ( id integer, time integer ); insert into competition values (1, 2); insert into competition values (2, 10); insert into competition values (3, 2); insert into competition values (4, 7); insert into competition values (5, 4); insert into competition values (6, 10); insert into competition values (7, 15); select unnest(arr) as id, time, 4 as place from ( select array_agg(id) as arr, time from competition group by time order by time offset 4 - 1 limit 1 ) as fourth
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
IF IN POSTGRESQL
cte
distinct on vs row_number
SQL Lab
Weekly Average Starting on Different Days
pgsql trigger 01 - Ovocie
to_char(now(), 'YYYYddd')
quiz 1
Return IDs where there are exactly 3 occurrences1
Q4_2
Please log in to post a comment.