Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RFID
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Szymon Langer
RFID
Commits
eac1209d
Commit
eac1209d
authored
3 years ago
by
Jakub Szczegiecki
Browse files
Options
Downloads
Patches
Plain Diff
Added SQL query
parent
74bc5d04
Branches
Branches containing commit
No related merge requests found
Pipeline
#2136
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
SQL Query.sql
+36
-0
36 additions, 0 deletions
SQL Query.sql
with
36 additions
and
0 deletions
SQL Query.sql
0 → 100644
+
36
−
0
View file @
eac1209d
/* Dane dla pomiaru nr 1 */
SELECT
PROXIMITY
,
TIMESTAMP
,
MEASUREMENT
,
StyleColor
,
ITEMID
FROM
rfid
.
Logs
JOIN
rfid
.
EanEpc
ON
rfid
.
Logs
.
EPC
=
rfid
.
EanEpc
.
EPC
JOIN
dw
.
Item
ON
rfid
.
EanEpc
.
EAN
=
dw
.
Item
.
EAN
WHERE
MEASUREMENT
=
1
ORDER
BY
TIMESTAMP
/* Ile stylokolorow */
SELECT
StyleColor
FROM
rfid
.
Logs
JOIN
rfid
.
EanEpc
ON
rfid
.
Logs
.
EPC
=
rfid
.
EanEpc
.
EPC
JOIN
dw
.
Item
ON
rfid
.
EanEpc
.
EAN
=
dw
.
Item
.
EAN
WHERE
MEASUREMENT
=
1
GROUP
BY
StyleColor
/* Dla SF078-MLC */
SELECT
PROXIMITY
,
TIMESTAMP
,
MEASUREMENT
,
StyleColor
,
ITEMID
FROM
rfid
.
Logs
JOIN
rfid
.
EanEpc
ON
rfid
.
Logs
.
EPC
=
rfid
.
EanEpc
.
EPC
JOIN
dw
.
Item
ON
rfid
.
EanEpc
.
EAN
=
dw
.
Item
.
EAN
WHERE
MEASUREMENT
=
1
AND
StyleColor
=
'SF078-MLC'
ORDER
BY
TIMESTAMP
/* Dla ID 2296876 */
SELECT
PROXIMITY
,
TIMESTAMP
,
MEASUREMENT
,
StyleColor
,
ITEMID
FROM
rfid
.
Logs
JOIN
rfid
.
EanEpc
ON
rfid
.
Logs
.
EPC
=
rfid
.
EanEpc
.
EPC
JOIN
dw
.
Item
ON
rfid
.
EanEpc
.
EAN
=
dw
.
Item
.
EAN
WHERE
MEASUREMENT
=
1
AND
ITEMID
=
2296876
ORDER
BY
TIMESTAMP
This diff is collapsed.
Click to expand it.
Preview
0%
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