Einzelnen Beitrag anzeigen

Benutzerbild von Neutral General
Neutral General

Registriert seit: 16. Jan 2004
Ort: Bendorf
5.219 Beiträge
 
Delphi 10.2 Tokyo Professional
 
#6

AW: Sichtbarkeit im Umkreis eines Objektes (Statement)

  Alt 20. Dez 2010, 14:01
Vielleicht so:

SQL-Code:
SELECT
  tabelle.id
FROM tabelle
JOIN tabelle as tabelle_2 on (tabelle_2.id = :id)
WHERE (tabelle.x between (tabelle_2.x-tabelle_2.radius) and (tabelle_2.x+tabelle_2.radius))
  AND (tabelle.y between (tabelle_2.y-tabelle_2.radius) and (tabelle_2.y+tabelle_2.radius))
  AND (tabelle.id <> tabelle_2.id) -- Sich selbst nicht finden
Also bei mir funktionierts so! (Nachdem ich den Post hier ca. 10x editiert hab^^)
Michael
"Programmers talk about software development on weekends, vacations, and over meals not because they lack imagination,
but because their imagination reveals worlds that others cannot see."

Geändert von Neutral General (20. Dez 2010 um 14:07 Uhr)
  Mit Zitat antworten Zitat