Hi
I can't get this table join to work
lets say I have 2 tables
table 1
table 2
What I want to query is "S1" and "S2" and then join the table 2 like "ON table1.id=table 2.id" but I want only the latest value (1 record) created (ORDER by TIMECREATED , LIMIT 1) for that ID join the first table and if it is also possible to check for table2.ACTIVE , even better.
I can't seem to work it out :(
I can't get this table join to work
lets say I have 2 tables
table 1
Code:
ID NAME 1 S1 2 S2
Code:
ID TIMECREATED ACTIVE 1 time 1 2 time 0 1 time 1 1 time 0 2 time 1
I can't seem to work it out :(
Comment