Hoteles en centros de esquí de Chile


-2147217871: Query timeout expired

WITH tarifas AS (SELECT * FROM OPENQUERY(dagobah, 'SELECT t.cod_producto, min(tarifa) AS tarifa, moneda FROM tarifas.tarifas_mem t JOIN tarifas.dicc d ON t.cod_producto = d.cod_producto AND d.combinaciones LIKE CONCAT(''%['', CAST(t.combinacion AS CHAR CHARACTER SET utf8), '']%'') AND d.strpax = ''2A,0N'' WHERE t.cod_producto LIKE ''A-0%'' GROUP BY t.cod_producto, moneda')) SELECT h.*, cercano, distancia_pistas, nombre_atractivo_0 AS nombre_atractivo_original, h.id_atractivo AS id_atractivo_original, h.url_atractivo_0 AS url_atractivo_original, 0 AS distancia, distancia_pistas, dbo.aURL(cs.nombre) AS url_centro, cs.nombre AS nombre_centro, IIF(t1.tarifa IS NOT NULL, t1.tarifa/2, t2.tarifa * [oris-manacrox].dbo.fn_tipo_cambio(getDate()) / 2) AS tarifa_ref_clp, IIF(t2.tarifa IS NOT NULL, t2.tarifa/2, t1.tarifa / [oris-manacrox].dbo.fn_tipo_cambio(getDate()) / 2) AS tarifa_ref_usd FROM vw_listado_hoteles_v2 h JOIN alojamiento_centro_ski acs ON h.id_alojamiento = acs.id_alojamiento JOIN centro_ski cs ON cs.id_centro_ski = acs.id_centro_ski LEFT JOIN tarifas t1 ON t1.cod_producto = 'A-' + RIGHT('000000000' + CAST(h.id_alojamiento AS varchar(max)), 7) AND t1.moneda = 1 LEFT JOIN tarifas t2 ON t2.cod_producto = 'A-' + RIGHT('000000000' + CAST(h.id_alojamiento AS varchar(max)), 7) AND t2.moneda = 2 WHERE acs.id_centro_ski = 15 AND sitio_1 = 1 AND cercano = 0 ORDER BY acs.distancia_pistas, estrellas DESC

An error occurred on the server when processing the URL. Please contact the system administrator.

If you are the system administrator please click here to find out more about this error.