Professional Documents
Culture Documents
CREATE TABLE `proyectoos` ( `CodP` char(5) NOT NULL, `Descrip` char(30) DEFAULT NULL, `Localidad` char(30) DEFAULT NULL, `Cliente` char(30) DEFAULT NULL, `Telefono` int(15) DEFAULT NULL, PRIMARY KEY (`CodP`) )
CREATE TABLE `maquinaas` ( `CodM` char(5) NOT NULL, `Nombre` char(30) DEFAULT NULL, `PrecioHora` int(30) DEFAULT NULL, PRIMARY KEY (`CodM`) )
CREATE TABLE `conductorees` ( `CodC` char(5) NOT NULL, `Nombre` char(30) DEFAULT NULL, `Localidad` char(30) DEFAULT NULL, `Categ` int(5) DEFAULT NULL, PRIMARY KEY (`CodC`)
CREATE TABLE `trabajoos` ( `CodC` char(5) NOT NULL, `CodM` char(5) NOT NULL, `CodP` char(5) NOT NULL, `Fecha` date DEFAULT NULL, `Tiempo` int(15) DEFAULT NULL )
CONSULTAS
5)SELECT codC FROM conductorees WHERE localidad ='arganda'&& categ < 18;
10)SELECT CodC, CodM, CodP, Fecha FROM trabajoos WHERE Tiempo IS NULL;