Welcome Guest, Not a member yet? Register   Sign In
trouble with SQL bindings
#4

Your issue isn't exactly with query bindings or CI, you'd have the same issues if you ran the queries directly on the DB. Maybe try this..

PHP Code:
SELECT srat.employee_emailsrat.taxyearsr.itemkt.qualifiedkt.unqualified
FROM survey_results_activities_temp 
AS srat
LEFT OUTER JOIN survey_results 
AS sr ON sr.user_email srat.employee_email AND sr.taxyear srat.taxyear
LEFT OUTER JOIN key_temp 
AS kt ON kt.activity sr.item
WHERE srat
.employee_email = ? AND srat.taxyear = ?
GROUP BY srat.employee_email 
Reply


Messages In This Thread
trouble with SQL bindings - by richb201 - 11-11-2020, 06:44 PM
RE: trouble with SQL bindings - by ojmichael - 11-12-2020, 12:21 AM
RE: trouble with SQL bindings - by richb201 - 11-12-2020, 12:40 AM
RE: trouble with SQL bindings - by ojmichael - 11-12-2020, 04:24 PM
RE: trouble with SQL bindings - by richb201 - 11-13-2020, 01:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB