skip to Main Content

MySQl multivalued and in query

I have two tables device_part: device_id part_id software_version jdvjdksfks 1 v1 jdvjdksfks 2 v2 peirizkdsf 1 v1 peirizkdsf 2 v3 strategy_part: strategy_id part_id source_version target_version 1 1 v1 v3 1 1 v2 v3 1 2 v2 v3 2 3 v1…

VIEW QUESTION

Substituting variable into raw SQL in Laravel

I have a Laravel controller and here is a piece of my code for the SQL query that I made: $query = <<<SQL SELECT day, date, product1_shift1, product1_shift2, product1_shift3, COALESCE(product1_shift1, 0) + COALESCE(product1_shift2, 0) + COALESCE(product1_shift3, 0) AS total_product1_qty FROM…

VIEW QUESTION
Back To Top
Search