Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Viewing all articles
Browse latest Browse all 13329

sql comparison between two rows

$
0
0
Hello

I need some help with a query i'm trying to write but althogh it works on sql server, the query doesn't work in sql access.. so i would appricate your help.

my table is 300 rows and it looks like that:

ID Name City ZipCode Empty
1 Ben Chicago 4321
2 Jerry New York 4321
3 Jerry New York 4321

the ID is the key.
I wish that when a row is similar to another row in columns Name,City and Zip (all of them) so one of them, doesn't matter which, will update the empty column to certain value.

for example, the result of this query shuold be

ID Name City ZipCode Empty
1 Ben Chicago 4321
2 Jerry New York 4321 value
3 Jerry New York 4321

Thanks a lot!!

Viewing all articles
Browse latest Browse all 13329

Trending Articles