Ver Mensaje Individual
  #3 (permalink)  
Antiguo 19/12/2006, 12:55
Avatar de jimadri
jimadri
 
Fecha de Ingreso: julio-2006
Ubicación: Buenos Aires
Mensajes: 487
Antigüedad: 17 años, 10 meses
Puntos: 1
Re: Filtrado Segun Variable

Gracias por querer ayudarme, estas son las estructuras

CREATE TABLE `categoria` (
`id_categoria` int(1) NOT NULL,
`desc_categoria` varchar(50) NOT NULL,
PRIMARY KEY (`id_categoria`)
) TYPE=MyISAM AUTO_INCREMENT=6 ;

CREATE TABLE `ciudades` (
`id_ciudad` int(5) NOT NULL,
`desc_ciudad` varchar(50) NOT NULL,
PRIMARY KEY (`id_ciudad`)
) TYPE=MyISAM AUTO_INCREMENT=16 ;

CREATE TABLE `habitacion` (
`id_habitacion` int(5) NOT NULL,
`desc_habitacion` varchar(50) NOT NULL,
PRIMARY KEY (`id_habitacion`)
) TYPE=MyISAM AUTO_INCREMENT=32 ;

CREATE TABLE `hotel` (
`id_hotel` int(250) NOT NULL,
`nombre` varchar(200) NOT NULL,
`cod_ciudad` int(5) NOT NULL,
`cod_categoria` int(1) NOT NULL,
`cod_habitacion` int(5) NOT NULL,
`cod_regimen` int(5) NOT NULL,
`single` int(10) default NULL,
`doble` int(10) default NULL,
`triple` int(10) default NULL,
`cuadruple` int(10) default NULL,
`vigencia` date default NULL,
`family_plan` varchar(250) default NULL,
`traslados` varchar(250) default NULL,
`observaciones` text,
PRIMARY KEY (`id_hotel`),
KEY `cod_ciudad` (`cod_ciudad`),
KEY `cod_categoria` (`cod_categoria`),
KEY `cod_habitacion` (`cod_habitacion`),
KEY `cod_regimen` (`cod_regimen`)
) TYPE=MyISAM AUTO_INCREMENT=2 ;

CREATE TABLE `regimen` (
`id_regimen` int(5) NOT NULL,
`desc_regimen` varchar(50) NOT NULL,
PRIMARY KEY (`id_regimen`)
) TYPE=MyISAM AUTO_INCREMENT=5 ;