Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DBS-Project
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Deploy
Releases
Container registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
iso
DBS-Project
Commits
36b0e1f6
Commit
36b0e1f6
authored
8 years ago
by
iso
Browse files
Options
Downloads
Patches
Plain Diff
Replace tables.sql
parent
2b0c83b0
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
iteration2/tables.sql
+20
-1
20 additions, 1 deletion
iteration2/tables.sql
with
20 additions
and
1 deletion
iteration2/tables.sql
+
20
−
1
View file @
36b0e1f6
...
...
@@ -44,4 +44,23 @@ CREATE TABLE public."tweetedWith"
CONSTRAINT
"FremdschluessselTweetedWith2"
FOREIGN
KEY
(
"Hashtag2"
)
REFERENCES
public
.
"Hashtag"
(
text
)
MATCH
SIMPLE
ON
UPDATE
NO
ACTION
ON
DELETE
NO
ACTION
)
\ No newline at end of file
)
\\
Zur
Abfrage
f
ü
r
die
Relation
tweetedWith
(
mit
pgadmin
exportiert
und
dann
wieder
importiert
)
SELECT
DISTINCT
h1
.
text
,
h2
.
text
FROM
public
.
has
h1
,
public
.
has
h2
WHERE
h1
.
"ID"
=
h2
.
"ID"
AND
h1
.
text
!=
h2
.
text
;
\\
Zur
Abfrage
f
ü
r
die
Relation
Hashtag
(
mit
pgadmin
exportiert
und
dann
wieder
importiert
)
SELECT
has
.
text
,
Count
(
has
.
text
)
as
amountTweets
FROM
public
.
has
GROUP
BY
has
.
text
;
\ 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