Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BP
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Model registry
Analyze
Contributor analytics
Repository analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakub Štercl
BP
Commits
75ad7eed
Commit
75ad7eed
authored
7 years ago
by
Jakub Štercl
Browse files
Options
Downloads
Patches
Plain Diff
updated database_create
parent
a4d7b8e8
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Implementace/database_create.py
+10
-11
10 additions, 11 deletions
Implementace/database_create.py
with
10 additions
and
11 deletions
Implementace/database_create.py
+
10
−
11
View file @
75ad7eed
...
...
@@ -66,17 +66,16 @@ curs.execute(
curs
.
execute
(
'''
CREATE
VIEW
Member_history_view
AS
SELECT
t1
.
member_id
member_id
,
t2
.
member_id
With_member_id
,
count
(
*
)
times_together
FROM
Member_to_Team
t1
JOIN
Member_to_Team
t2
ON
t1
.
team_id
=
t2
.
team_id
AND
t1
.
member_id
!=
t2
.
member_id
JOIN
Member
ON
t2
.
member_id
=
Member
.
member_id
GROUP
BY
t1
.
member_id
,
t2
.
member_id
;
t2
.
member_id
With_member_id
,
count
(
*
)
times_together
FROM
Member_to_Team
t1
JOIN
Member_to_Team
t2
ON
t1
.
team_id
=
t2
.
team_id
AND
t1
.
member_id
!=
t2
.
member_id
JOIN
Member
ON
t2
.
member_id
=
Member
.
member_id
GROUP
BY
t1
.
member_id
,
t2
.
member_id
'''
)
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