# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# Termine ORT und Umkreis lesen
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
SELECT
 SQL_CALC_FOUND_ROWS
 trm1.*
,trm1.id                    TID
,DATE_FORMAT(trm1.tag,'%w') wotag
,IF ( trm1.festival_kz = '1', trm1.id, IF( trm1.gastgebende_TID IS NOT NULL AND trm1.gastgebende_TID > '0', gastgebende_TID +1, '99999' ) )  festival_id # 2017-05-27
,IF ( trm1.festival_kz = '1', '0', '1' )  festival_sort  # Festivals vor Teilnehmer

#,trm1.mp3_titel
#,trm1.mp3_url
,trm1.html_position_lang
,trm1.html_position_kurz

,ort1.land_kz
,ort1.plz
,ort1.name    ort_name
,ROUND( 6366.0 * ACOS( SIN(0.87632632676785) *SIN(RADIANS(ort1.geo_breite)) +COS(0.87632632676785) *COS(RADIANS(ort1.geo_breite)) *COS(RADIANS(ort1.geo_laenge) -0.14926963334267 ))) distanz_km
,adr1.id      VIP
,adr1.firma1
,trp1.id          TRP
,trp1.bild_url    trp_bild_url  -- fuer icon_webcam
,typ1.id          TYP
,typ1.name    typ_name
FROM        (bia_termine trm1
            ,bia_orte ort1 )

LEFT JOIN   bia_adressen adr1
ON          adr1.id = trm1.adress_id

LEFT JOIN   bia_treffpunkte trp1
ON          trp1.id = trm1.treffpunkt_id

LEFT JOIN   bia_termintypen typ1
ON          typ1.id = trm1.typ_id

WHERE       trm1.owner_id = '1'
AND        (ort1.id = trm1.ort_id
            OR ort1.name = 'Hessen' ) # Ferientermine
# Filter:

AND        (trm1.gesperrt_bis IS NULL OR trm1.gesperrt_bis <= NOW())
AND         trm1.intern_kz = 0
AND         (trm1.tag >= '2019-03-24' OR  trm1.tag_bis >= '2019-03-24' )
AND         (trm1.tag <= '2020-03-23' OR  trm1.tag_bis <= '2020-03-23' )
#AND         ROUND( 6366.19773095 * ACOS( SIN(0.87632632676785) *SIN(RADIANS(ort1.geo_breite)) +COS(0.87632632676785) *COS(RADIANS(ort1.geo_breite)) *COS(RADIANS(ort1.geo_laenge) -0.14926963334267 ))) <= '20'
#AND          ort1.id IN (9067,9067,13162,9070,9068,13161,9301,9034,9069,9308,13163,9304,9065,9033,9037,9311,9030,9031,9038,9316,9061,9066,9036,9071,9302,9310,9062,9019,9021,9032,9035,9312,9315,9018,9020,9022,9023,9314,13160,9046,9014,9015,9017,9024,9025,9029,9313,9305,9026,9040,9042,9043,9051,9060,9016,9028,9300,9309,9282,9027,9039,9044,9056,9045,9303,9274,9049,9073,9063,9041,9050,9281,9059,9072,9064,9084,13991,9077,9253)
AND          trm1.ort_id IN (9067,9067,13162,9070,9068,13161,9301,9034,9069,9308,13163,9304,9065,9033,9037,9311,9030,9031,9038,9316,9061,9066,9036,9071,9302,9310,9062,9019,9021,9032,9035,9312,9315,9018,9020,9022,9023,9314,13160,9046,9014,9015,9017,9024,9025,9029,9313,9305,9026,9040,9042,9043,9051,9060,9016,9028,9300,9309,9282,9027,9039,9044,9056,9045,9303,9274,9049,9073,9063,9041,9050,9281,9059,9072,9064,9084,13991,9077,9253)
ORDER BY  trm1.tag, festival_id, trm1.uhr 
LIMIT 0,25
D-61440 Oberursel: 3 Events - remso.org

Town-calendar

D-61440 Oberursel + 20 km  

You have not selected a favourite town. Click the note icon to save D-61440 Oberursel as a cookie.

3 dates for area km.  days from   right

1
TID=26904

up Sunday, 24.03.2019  10:00

Trödelmarkt

Flohmarkt   Preussmaerkte

D-63075 Offenbach am Main  |  Mühlheimer Straße 325
4  views *
20 km von 61440 Oberursel

2

up Wednesday, 03.04.2019  15:00

Chor-Workshop / Konzert mit „The Real Group”   saearching

Chorkonzert, Chorfestival  

D-60327 Frankfurt am Main  |  Friedrich Ebert Anlage 33 +
28  views *
14 km von 61440 Oberursel

3

up Wednesday, 01.05.2019  

Rhein-Main Skate-Challenge

Inline Speedskating  

D-65760 Eschborn  | 
37  views *
7 km von 61440 Oberursel

Enter new date for 61440 Oberursel

Seitenaufrufe «D-61440 Oberursel»

Jan 30% 255
Feb 29% 245
Mrz 27% 233
Apr 0%
Mai 74% 637
Jun 97% 857
Jul 86% 733
Aug 60% 512
Sep 81% 696
Okt 80% 686
Nov 68% 579
Dez 54% 464