I have a 2 tables.
Table A with the following columns
Id title desc type
Table B with the following columns
Id type
I want to basically update all the rows of Table A in which I would replace the type with the Id value of Table B that has the corresponding same type.
For example
Table A can have
1 ,test1 ,ddd, play
2 ,test2 ,ddd2, go
3 ,test3 ,ddd3, play
Table B has
1, play
2, go
So I want to be able to run the query so Table A looks like
1 ,test1 ,ddd, 1
2 ,test2 ,ddd2, 2
3 ,test3 ,ddd3, 1
How can this be achieved in "SqlLite" query?