Reputation: 446
I have this query
SELECT t1.*, t2.* FROM table1 AS t1 LEFT JOIN table2 AS t2 ON t2.id = t1.id
I want to consider "t1.id" (INT type) as negative so basically i simply have to add "-" before "320". I tryed with something like this with no success:
t2.id = 't1.'-'id'
How can i make it?
Upvotes: 2
Views: 55