lunchbox88
Programmer
In my where clause, I need to compare a field in table_1 to a field in table_2. My problem is that the field in table_1 is a text field, and the field in table_2 is a numeric id...so...
table_1.type = "blue" and the equivalent in table_2 would be table_2.type_id = 4
So I essentially need something like
where
if table_1.type = blue and table_2.type_id = 4 then true.
Is something like this even possible?
Does this post even make sense?
table_1.type = "blue" and the equivalent in table_2 would be table_2.type_id = 4
So I essentially need something like
where
if table_1.type = blue and table_2.type_id = 4 then true.
Is something like this even possible?
Does this post even make sense?