T
Thorben Grosser
Hey folks,
it got to build a database for a company archive. It cotains some
queries. The last query I got to do shall show the unused racks.
If using the following query: SELECT zuordnungfa.archiv,
zuordnungfa.schrank AS zuordnungfa_schrank, zuordnungfa.seite,
zuordnungfa.fa, archiv.schrank AS archiv_schrank
FROM zuordnungfa INNER JOIN archiv ON zuordnungfa.schrank =
archiv.schrank;
the query returns every rack, containing one or more folders. This is
exactly the opposite of what I want. Is there any way to select the
inverse or should I write a new (better) query, and how?
Here are the tables
table zuordnungfa (shows the racks and the linked departments;
archiv=number of archive, schrank=racknumber, seite: 1=left, 2= right,
fa=department)
archiv schrank seite fa
1 620 1 ORG
1 5 1 FKA
table archive (has the entries for every folder, ordner=unique
folderid, lagerort=archive on zuordnungfa)
ordner lagerort schrank seite
2-2-124-0001 2 124 2
2-1-620-001 2 62 1
2-1-024-0001 2 24 1
2-1-254-0002 2 254 1
thanks in advance
Thorben Grosser
it got to build a database for a company archive. It cotains some
queries. The last query I got to do shall show the unused racks.
If using the following query: SELECT zuordnungfa.archiv,
zuordnungfa.schrank AS zuordnungfa_schrank, zuordnungfa.seite,
zuordnungfa.fa, archiv.schrank AS archiv_schrank
FROM zuordnungfa INNER JOIN archiv ON zuordnungfa.schrank =
archiv.schrank;
the query returns every rack, containing one or more folders. This is
exactly the opposite of what I want. Is there any way to select the
inverse or should I write a new (better) query, and how?
Here are the tables
table zuordnungfa (shows the racks and the linked departments;
archiv=number of archive, schrank=racknumber, seite: 1=left, 2= right,
fa=department)
archiv schrank seite fa
1 620 1 ORG
1 5 1 FKA
table archive (has the entries for every folder, ordner=unique
folderid, lagerort=archive on zuordnungfa)
ordner lagerort schrank seite
2-2-124-0001 2 124 2
2-1-620-001 2 62 1
2-1-024-0001 2 24 1
2-1-254-0002 2 254 1
thanks in advance
Thorben Grosser