How to add a constant column with conditions while doing inner join in SQL

后端 未结 0 1910
刺人心
刺人心 2021-01-05 15:27

I have two tables table1 and table2 with ids in bot tables

I want to have target column based on table2 IDs , when joining I need to add 1 for target if we have ids i

相关标签:
回答
  • 消灭零回复
提交回复
热议问题