sql - How to compare one table's column against another? -


i'm working on merging 2 tables , trying verify if there duplicates across 2 columns. suppose i'm looking query lats me compare every value of columns like:

where 'column1' = 'value1'  

but in place of 'value1' it'd 'column2'

where 'column1' = 'column2' 

there bit of function count duplicates.

does know if there's function this? far i've drawn blanks.

cheers!

doesn't matter - seems yesterday made bit problem on nothing. getting mind whirring. i'll update result when output.

use similar to:

select * table inner join table b on (//whatever condition need) a.column1=b.column2 

Comments

Popular posts from this blog

How to mention the localhost in android -

php - Calling a template part from a post -

c# - String.format() DateTime With Arabic culture -