Zitat von
MarkusB:
SQL-Code:
where (
(BuchungStart between NeueBuchungStart and NeueBuchungEnd)
or
(BuchungEnd between NeueBuchungStart and NeueBuchungEnd)
or
(BuchungStart <= NeueBuchungStart and BuchungEnd >= NeueBuchungEnd)
)
Du kannst dir aber auch eine Abfrage sparen:
SQL-Code:
where (
(BuchungStart between NeueBuchungStart and NeueBuchungEnd)
or
(NeueBuchungStart between BuchungStart and BuchungEnd)
)