seron Posted February 16, 2023 Share Posted February 16, 2023 Hola muy buenas, Estoy intentando seleccionar ciertos parámetros en la base de datos, en mi caso las tablas tienen prefijo diferente al que viene por defecto. SELECT pl.name AS 'Nombre' FROM prstshp_product_carrier AS ppl LEFT JOIN prstshp_product_lang AS pl ON p.id_product = pl.id_product GROUP BY ppl.id_product SELECT pl.name AS 'Nombre' FROM prstshp_product_carrier AS ppl LEFT JOIN prstshp_product_lang AS pl ON p.id_product = pl.id_product GROUP BY ppl.id_product Estoy intentando sacar la tabla prstshp_product_carrier pero que al final de la tabla que aparece el id_shop me aparezca el nombre por id de producto, algo estoy haciendo mal y como soy muy nuevo en esto no se que puede ser, si me pueden ayudar estaría muy agradecido, Saludos y Gracias! Link to comment Share on other sites More sharing options...
tucatuca Posted February 16, 2023 Share Posted February 16, 2023 Hola, select pl.name AS NOMBRE FROM prstshp_product_carrier ppl left join prstshp_product_lang as pl on ppl.id_product = pl.id_product group by ppl.id_product Problema que tienes que utilizas muchas abreviaturas muy similares. Un saludo Link to comment Share on other sites More sharing options...
seron Posted February 16, 2023 Author Share Posted February 16, 2023 Buenas, entiendo, oks intento con diferentes, muchas gracias! Link to comment Share on other sites More sharing options...
seron Posted February 16, 2023 Author Share Posted February 16, 2023 solucionado SELECT pc.id_product, pc.id_carrier_reference, pc.id_shop ,pl.name AS 'Nombre' FROM prstshp_product_carrier AS pc LEFT JOIN prstshp_product_lang AS pl ON pc.id_product = pl.id_product GROUP BY pc.id_product; Saludos! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now