Guest User

Untitled

a guest
Mar 13th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. Select HTAR_AcomodacionId, HOTA_Acomodacion, HTAR_CategoriaId,
  2. Categoria, HTAR_PrecioTar from HotTarifas,
  3. (Select HotCategoriasId, CAT_Cat1 as Categoria from HotCategorias
  4. where HotCategoriasId
  5. in ( SELECT HTAR_CategoriaId FROM HotTarifas
  6. Where HTAR_HotelID = 2
  7. and HTAR_AcomodacionId = 3))
  8. as NomCategoria, HotAcomodaciones
  9. Where HTAR_CategoriaId
  10. in (SELECT HTAR_CategoriaId FROM Hot
  11. Where HTAR_HotelID = 2
  12. and HTAR_AcomodacionId = 3)
  13. and HotCategoriasId = HTAR_CategoriaId
  14. and HotAcomodacionesId = HTAR_AcomodacionId
Add Comment
Please, Sign In to add comment