Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
SQl_QUEST_2_PRESENTATION_IMG_COUNT
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 EVENT_LOGS ( UserId INT, [TimeStamp] DATETIME ) GO INSERT INTO EVENT_LOGS VALUES (1, GETDATE()); INSERT INTO EVENT_LOGS VALUES (2, GETDATE()); INSERT INTO EVENT_LOGS VALUES (5, GETDATE()); INSERT INTO EVENT_LOGS VALUES (1, GETDATE()); INSERT INTO EVENT_LOGS VALUES (3, GETDATE()); INSERT INTO EVENT_LOGS VALUES (2, GETDATE()); INSERT INTO EVENT_LOGS VALUES (1, GETDATE()); INSERT INTO EVENT_LOGS VALUES (4, GETDATE()); INSERT INTO EVENT_LOGS VALUES (1, GETDATE()); INSERT INTO EVENT_LOGS VALUES (1, GETDATE()); INSERT INTO EVENT_LOGS VALUES (2, GETDATE()); INSERT INTO EVENT_LOGS VALUES (5, GETDATE()); INSERT INTO EVENT_LOGS VALUES (1, GETDATE()); INSERT INTO EVENT_LOGS VALUES (3, GETDATE()); INSERT INTO EVENT_LOGS VALUES (2, GETDATE()); INSERT INTO EVENT_LOGS VALUES (1, GETDATE()); INSERT INTO EVENT_LOGS VALUES (4, GETDATE()); INSERT INTO EVENT_LOGS VALUES (1, GETDATE()); INSERT INTO EVENT_LOGS VALUES (1, GETDATE()); INSERT INTO EVENT_LOGS VALUES (2, GETDATE()); INSERT INTO EVENT_LOGS VALUES (5, GETDATE()); INSERT INTO EVENT_LOGS VALUES (1, GETDATE()); INSERT INTO EVENT_LOGS VALUES (3, GETDATE()); INSERT INTO EVENT_LOGS VALUES (2, GETDATE()); INSERT INTO EVENT_LOGS VALUES (1, GETDATE()); INSERT INTO EVENT_LOGS VALUES (4, GETDATE()); INSERT INTO EVENT_LOGS VALUES (1, GETDATE()); INSERT INTO EVENT_LOGS VALUES (1, GETDATE()); INSERT INTO EVENT_LOGS VALUES (2, GETDATE()); INSERT INTO EVENT_LOGS VALUES (5, GETDATE()); INSERT INTO EVENT_LOGS VALUES (1, GETDATE()); INSERT INTO EVENT_LOGS VALUES (3, GETDATE()); INSERT INTO EVENT_LOGS VALUES (2, GETDATE()); INSERT INTO EVENT_LOGS VALUES (2, GETDATE()); INSERT INTO EVENT_LOGS VALUES (2, GETDATE()); INSERT INTO EVENT_LOGS VALUES (1, GETDATE()); INSERT INTO EVENT_LOGS VALUES (4, GETDATE()); INSERT INTO EVENT_LOGS VALUES (1, GETDATE()); Go SELECT UserId, COUNT(UserId) AS IMAGE_COUNT FROM EVENT_LOGS GROUP BY UserId HAVING COUNT(UserId) BETWEEN 10 AND 20
View schema
Execution time: 0,02 sec, rows selected: 2, rows affected: 38, absolute service time: 0,17 sec, absolute service time: 0,16 sec
edit mode
|
history
|
discussion
UserId
IMAGE_COUNT
1
1
16
2
2
10