How to check a value exists in which table in SQL? -


There are two tables with the same table, called table a and table b and both have column IDs. The value of 'ABC' is that I will check the ABC in which the table ID is present in the table? I need output as table name.

  select table 'name' (selection 1 to one id = 'ABC') Union Everyone's selection 'B' happens separately (selection 1 to B WHERE ID = 'ABC')  

DUAL is a type of placeholder that you choose If you do not have a table to choose from.


Comments

Popular posts from this blog

apache - 504 Gateway Time-out The server didn't respond in time. How to fix it? -

c# - .net WebSocket: CloseOutputAsync vs CloseAsync -

c++ - How to properly scale qgroupbox title with stylesheet for high resolution display? -