Welcome Guest, Not a member yet? Register   Sign In
Help writing Sql with CI4 active record
#1

Hello. I 'm struggling to write sql with subquery, How can I write it with codeigniter methods.
Thanks!

//SQL
PHP Code:
SELECT p.idp.catIdp.imagec.id, (c.name) as category
                FROM product_feature p
                JOIN categories c ON p
.catId c.id
                WHERE p
.id IN(
                    SELECT MAX(p.idFROM product_feature p 
                    GROUP BY p
.catId 
                 

Reply


Messages In This Thread
Help writing Sql with CI4 active record - by venance - 03-25-2021, 01:13 AM



Theme © iAndrew 2016 - Forum software by © MyBB