במתחם : 4 בקתות.
055-4319808 (דינה / אושרי)
שם היחידה |
אמצ"ש בהזמנת לילה |
אמצ"ש לילה בהזמנת 2 לילות |
סופ"ש בהזמנת לילה |
סופ"ש לילה בהזמנת 2 לילות |
SELECT TOP 30 cabin.name, cabin.id, cabin.units, cabin.phone, cabin.cabinOwner, cabin.cordes_zimmer ,cabin.first_pic_location, cabin.show_pics_nums, Cities.cordes, Cities.url, Cities.sub_area, cabin.settlement, cabin.zones, cabin.sales, cabin.max_guests, cabin.num_people_sleep, cabin.place_type, cabin.num_rooms,cabin.num_rates, cabin.price_min, cabin.price_min_wday, bfast, pricesMin.lmin_wend, zimer_type, categories, cabin.address , ACOS(SIN(PI()*32.997698/180.0)*SIN(PI()*SUBSTRING ( cabin.cordes_zimmer ,1 , CHARINDEX (',' ,cabin.cordes_zimmer )-1)/180.0)+COS(PI()*32.997698/180.0)*COS(PI()*SUBSTRING ( cabin.cordes_zimmer ,1 , CHARINDEX (',' ,cabin.cordes_zimmer )-1)/180.0)*COS(PI()*SUBSTRING ( cabin.cordes_zimmer ,CHARINDEX (',' ,cabin.cordes_zimmer )+1 , LEN(cabin.cordes_zimmer)-(CHARINDEX (',' ,cabin.cordes_zimmer )))/180.0-PI()*35.298725/180.0))*6371 AS distance FROM cabin
LEFT JOIN Cities ON (cabin.zones=Cities.name)
LEFT JOIN cabinCat ON cabin.id = cabinCat.idCabin
LEFT JOIN prices_z ON cabin.id = prices_z.idCabin
LEFT JOIN pricesMin ON cabin.id = pricesMin.idCabin
WHERE cabin.sales != '*' AND cabin.types='צימר' AND cabin.id NOT IN (355) GROUP BY cabin.name, cabin.id, cabin.units, cabin.phone, cabin.cabinOwner, cabin.cordes_zimmer ,cabin.first_pic_location, cabin.show_pics_nums, Cities.cordes, Cities.url, Cities.sub_area, cabin.settlement, cabin.zones, cabin.sales, cabin.max_guests, cabin.num_people_sleep, cabin.place_type, cabin.num_rooms,cabin.num_rates, cabin.price_min, cabin.price_min_wday, bfast, pricesMin.lmin_wend, zimer_type, categories, cabin.address , cabinCat.catID , cabinCat2.catID HAVING (COUNT(cabin.id) > 0) ORDER BY distance
Array
(
[0] => Array
(
[0] => 42000
[SQLSTATE] => 42000
[1] => 4104
[code] => 4104
[2] => [Microsoft][SQL Server Native Client 11.0][SQL Server]The multi-part identifier "cabinCat2.catID" could not be bound.
[message] => [Microsoft][SQL Server Native Client 11.0][SQL Server]The multi-part identifier "cabinCat2.catID" could not be bound.
)
[1] => Array
(
[0] => 42000
[SQLSTATE] => 42000
[1] => 16945
[code] => 16945
[2] => [Microsoft][SQL Server Native Client 11.0][SQL Server]The cursor was not declared.
[message] => [Microsoft][SQL Server Native Client 11.0][SQL Server]The cursor was not declared.
)
)