Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
2
Language:
Ada
Assembly
Bash
C#
C++ (gcc)
C++ (clang)
C++ (vc++)
C (gcc)
C (clang)
C (vc)
Client Side
Clojure
Common Lisp
D
Elixir
Erlang
F#
Fortran
Go
Haskell
Java
Javascript
Kotlin
Lua
MySql
Node.js
Ocaml
Octave
Objective-C
Oracle
Pascal
Perl
Php
PostgreSQL
Prolog
Python
Python 3
R
Rust
Ruby
Scala
Scheme
Sql Server
Swift
Tcl
Visual Basic
Layout:
Vertical
Horizontal
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
absolute service time: 0,52 sec
edit mode
|
history
|
discussion
id
time
place
1
2
10
4
2
6
10
4