0
I am comparing two tables "A" and "B" in which I want to compare values of the columns with the same meaning, but they are written in different ways.
Table "A" has the column "Mes_ano" and has values "jan,fev,mar,abr..." while table "B" has column "Meses_promoção" and has random values from 01 to 12.
How can I make these correlations via SQL by taking "Funcio_mes" from table "A" when "Feb" from table A corresponds to "02" from table "B"?
The result of SQL should only bring the months cited in table "B". Someone could help me?
which SGDB you are using ?
– Rovann Linhalis
Search by CASE.
– Motta
Solved your question ?
– Rovann Linhalis