Re: Subconsulta.
Create View
CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY DEFINER VIEW `vprodlprecios` AS
select `prodlprecios`.`codlpre` AS `codlpre`, `prodlprecios`.`nomlista` AS `nomlista`, `prodlprecios`.`pcneto` AS `pcneto`, `prodlprecios`.`ivac` AS `ivac`, `prodlprecios`.`pc` AS `pc`, `prodlprecios`.`util` AS `util`, `prodlprecios`.`pvneto` AS `pvneto`, `prodlprecios`.`ivav` AS `ivav`, `prodlprecios`.`pv` AS `pv`, `moneda`.`moneda` AS `moneda`, `prodlprecios`.`iic` AS `iic`, `prodlprecios`.`ibc` AS `ibc`, `prodlprecios`.`iiv` AS `iiv`, `prodlprecios`.`ibv` AS `ibv`, `prodlprecios`.`codcoti` AS `codcoti`, `moneda`.`cotiz` AS `cotiz`, `prodlprecios`.`factupre` AS `factupre`, `prodlprecios`.`codpro` AS `codpro` from (`prodlprecios` join `moneda` on ((`prodlprecios`.`codcoti` = `moneda`.`codcot`))) order by `prodlprecios`.`codlpre`