Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
2
20240528-BJava
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Patryk Czarnik
20240528-BJava
Commits
10082fd5
Commit
10082fd5
authored
May 30, 2024
by
Patryk Czarnik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Poprawki w kodach SQL - głównie wcięcia :)
parent
067dfbfa
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
5 additions
and
6 deletions
+5
-6
1-hr-create-tabele.sql
PC22-BazyDanych/sql/hr-postgresql/1-hr-create-tabele.sql
+0
-0
2-hr-create-dodatki.sql
PC22-BazyDanych/sql/hr-postgresql/2-hr-create-dodatki.sql
+0
-0
4-hr-moje-dodatki.sql
PC22-BazyDanych/sql/hr-postgresql/4-hr-moje-dodatki.sql
+0
-0
wyklad_kompleksowy.sql
PC22-BazyDanych/sql/wyklad_kompleksowy.sql
+1
-2
zawodnicy-postgresql.sql
PC22-BazyDanych/sql/zawodnicy/zawodnicy-postgresql.sql
+4
-4
No files found.
PC22-BazyDanych/sql/hr-postgresql/1-hr-create-tabele.sql
View file @
10082fd5
PC22-BazyDanych/sql/hr-postgresql/2-hr-create-dodatki.sql
View file @
10082fd5
PC22-BazyDanych/sql/hr-postgresql/4-hr-moje-dodatki.sql
View file @
10082fd5
PC22-BazyDanych/sql/wyklad_kompleksowy.sql
View file @
10082fd5
...
@@ -1110,8 +1110,7 @@ FROM employees
...
@@ -1110,8 +1110,7 @@ FROM employees
GROUP
BY
GROUPING
SETS
((
department_id
,
job_id
),
(
department_id
));
GROUP
BY
GROUPING
SETS
((
department_id
,
job_id
),
(
department_id
));
--* Analiza przedzialowa i funkcje okna - OVER (PARTITION BY) *--
---- Analiza przedzialowa - PARTITION BY ----
-- przypomnienie podzial pracownikow wg job_id i wyliczenie sredniej pensji:
-- przypomnienie podzial pracownikow wg job_id i wyliczenie sredniej pensji:
SELECT
job_id
,
count
(
*
)
AS
ilu
,
avg
(
salary
)
AS
srednia
SELECT
job_id
,
count
(
*
)
AS
ilu
,
avg
(
salary
)
AS
srednia
...
...
PC22-BazyDanych/sql/zawodnicy/zawodnicy-postgresql.sql
View file @
10082fd5
CREATE
TABLE
skocznie
(
CREATE
TABLE
skocznie
(
id_skoczni
integer
,
id_skoczni
integer
primary
key
,
miasto
text
,
miasto
text
,
kraj_s
text
,
kraj_s
text
,
nazwa
text
,
nazwa
text
,
...
@@ -9,14 +9,14 @@
...
@@ -9,14 +9,14 @@
CREATE
TABLE
trenerzy
(
CREATE
TABLE
trenerzy
(
kraj
text
,
kraj
char
(
3
)
primary
key
,
imie_t
text
,
imie_t
text
,
nazwisko_t
text
,
nazwisko_t
text
,
data_ur_t
date
data_ur_t
date
);
);
CREATE
TABLE
zawodnicy
(
CREATE
TABLE
zawodnicy
(
id_skoczka
integer
,
id_skoczka
integer
primary
key
,
imie
text
,
imie
text
,
nazwisko
text
,
nazwisko
text
,
kraj
char
(
3
),
kraj
char
(
3
),
...
@@ -27,7 +27,7 @@ CREATE TABLE zawodnicy (
...
@@ -27,7 +27,7 @@ CREATE TABLE zawodnicy (
CREATE
TABLE
zawody
(
CREATE
TABLE
zawody
(
id_zawodow
integer
,
id_zawodow
integer
primary
key
,
id_skoczni
integer
,
id_skoczni
integer
,
data
date
data
date
);
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment