mirror of
https://github.com/brmlab/brmbar.git
synced 2025-06-10 14:23:59 +02:00
uncommitted changes from other people... again
This commit is contained in:
parent
6749b2c97a
commit
e04d614e15
5 changed files with 32 additions and 5 deletions
8
brmbar3/USEFUL.txt
Normal file
8
brmbar3/USEFUL.txt
Normal file
|
@ -0,0 +1,8 @@
|
|||
Accounts with multiple barcodes:
|
||||
|
||||
SELECT accounts.name,barcodes.account,barcodes.barcode
|
||||
FROM "barcodes"
|
||||
join accounts on accounts.id = barcodes.account
|
||||
where barcodes.account in (select a from (select count(*) as c, account as a from barcodes group by account) as dt where c > 1)
|
||||
ORDER BY "account" DESC
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue