Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
Databased
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Øystein Kristoffer Tveit
Databased
Commits
3128fdfa
Commit
3128fdfa
authored
3 years ago
by
Øystein Kristoffer Tveit
Browse files
Options
Downloads
Patches
Plain Diff
Finish query 2
parent
ff8bc08a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
queries/2.sql
+10
-8
10 additions, 8 deletions
queries/2.sql
with
10 additions
and
8 deletions
queries/2.sql
+
10
−
8
View file @
3128fdfa
S
ELECT
Bruker
.
Navn
,
C
OUNT
(
UNIKE_KAFFER
)
S
elect
Bruker
.
Fullt
Navn
,
C
ount
(
Epost
)
FROM
(
FROM
(
SELECT
DISTINCT
Bruker
.
Navn
,
Kaffe
.
Navn
SELECT
Epost
FROM
((
FROM
Kaffe
Kaffesmaking
JOIN
Kaffe
USING
(
KaffeID
))
JOIN
Kaffesmaking
USING
(
KaffeID
)
JOIN
Bruker
using
(
Epost
))
WHERE
strftime
(
'%Y'
,
SmaksDato
)
IS
strftime
(
'%Y'
,
'now'
)
GROUP
BY
Bruker
.
Navn
GROUP
BY
KaffeID
,
Epost
ORDER
BY
COUNT
(
UNIKE_KAFFER
)
DESC
)
)
JOIN
Bruker
USING
(
Epost
)
GROUP
BY
Epost
ORDER
BY
Count
(
Epost
)
DESC
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment