Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
NewQuery
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
select * from (select a.user_id, a.name, a.comment_count from (select u.user_id,u.name,count(c.comment_id) comment_count from Users u, Friendships f, Posts p, Comments c where u.user_id = f.user_id and u.gender = 'F' and c.commenter_user_id = u.user_id and p.post_id = c.post_id and p.user_id != 10 and p.user_id != u.user_id and f.friend_id = 20 and u.user_id !=20 group by u.user_id, u.name having count(c.comment_id) > 2 )a ) b Order by b.comment_count desc;
absolute service time: 0,3 sec
edit mode
|
history
|
discussion