Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
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.
Pivot the Hard Way..
select from json[]
PostreSQL: Left Join
Pivot the Hard Way.
finaleHFEIZFIDSHI
1
Correlated subquery in SELECT clause, and rewritten for Netezza
postgres group by by function
Movie Rating SQL Analysis Project
Replace key of json
Please log in to post a comment.