I would like to compare two columns in one table. I want to be able to return all rows where two columns have the same value.
I'm looking for something like SELECT * FROM FOO WHERE C1 = C4.
SELECT * FROM FOO WHERE C1 = C4
Therefore, in the example below, I would only return the first row:
C1 || C2 || C3 || C4 -------------------------- 1 || a || b || 1 2 || a || b || 4 3 || b || d || 2 4 || b || d || 2
If that matters, I use SQLite(more specifically WebSQL).
SQLite
WebSQL
SELECT * FROM FOO WHERE C1 = C4must work. Is not it?
If not, are they the same data type and length? You may need to convert.
WebSql, db, , varchar (5), - varchar (10), . -
Convert(varchar, 10, FieldName)
.
https://fooobar.com/questions/1118279/android-translate-imageview-over-surfaceview
https://fooobar.com/questions/1118280/index.html