Ich habe eine Parzelle Tabelle in PostgreSQL db, die ich bestimmte Pakete abfragen muss. 3 Felder - mun, block, losSQL Parzelle Abfrage
mun1: block 46 and lot 2
mun2: block 1 and lot 1.1
block 2 and lot 6
block 2 and lot 7
block 5 and lot 2
block 11 and lot 1
mun3: block 11 and lot 2
block 11 and lot 2.2
block 7 and lot 2
block 8 and lot 2
ich jeden zu einem Zeitpunkt abfragen kann, aber ich kann nicht herausfinden, wie sie in einer Abfrage zu tun ... irgendwelche Vorschläge mit Syntax und Logik
ex:
select * from parcels where mun = 'mun1' and block = '46' and lot = '2'
Können Sie einige Beispieldaten bereitstellen? Deine Frage ist nicht klar, denke ich. –
@GiorgosAltanis check edit – ziggy