php - Left join is not working on web server -
below sql query working in localhost, when im trying in web server not working.
select t1.student_id,t1.id id1,t2.id id2,t3.id id3,t1.costperhour cs1,t2.costperhour cs2,t3.costperhour cs3,t1.sub_hours th1,t2.sub_hours th2,t3.sub_hours th3,min(t1.subjectass_id) sub1,min(t2.subjectass_id) sub2,min(t3.subjectass_id) sub3 tb_adhocdetails t1 left join tb_adhocdetails t2 on t1.student_id = t2.student_id , t2.subjectass_id > t1.subjectass_id left join tb_adhocdetails t3 on t2.student_id = t3.student_id , t3.subjectass_id > t2.subjectass_id left join tb_adhocdetails t4 on t3.student_id= t4.student_id , t4.subjectass_id > t3.subjectass_id t1.student_id=360
on linux mysql servers, table/column names case-sensitive. declaring tables uppercase "t" , using them lowercase "t", might have errors unrecognized table
Comments
Post a Comment