mirror of
https://gitlab.cern.ch/wotsubo/PSBoardDataBase.git
synced 2025-06-11 07:19:23 +09:00
update: add more example for sqlite3 cli in docs
This commit is contained in:
parent
c5c57acb4b
commit
367ccf75fc
2 changed files with 98 additions and 3 deletions
18
src/sql/get_psbids_for_run.sql
Normal file
18
src/sql/get_psbids_for_run.sql
Normal file
|
@ -0,0 +1,18 @@
|
|||
WITH
|
||||
single AS (
|
||||
SELECT
|
||||
qaqc_single_run_results.psboard_id,
|
||||
qaqc_single_run_results.runid
|
||||
FROM
|
||||
qaqc_single_run_results
|
||||
UNION
|
||||
SELECT
|
||||
qaqc_extra_run_results.psboard_id,
|
||||
qaqc_extra_run_results.runid
|
||||
FROM
|
||||
qaqc_extra_run_results
|
||||
)
|
||||
SELECT *
|
||||
FROM single
|
||||
WHERE single.runid BETWEEN 90 AND 93
|
||||
ORDER BY runid, psboard_id
|
Loading…
Add table
Add a link
Reference in a new issue