Charles Baldo
asked on
Need update statement
Hi I have two tables
Each table has
Lastname,firstname,housenu mber
the first table has a column called "Permit" lets call this table A
I need a sql statement that updates updates table A, and sets the permit column to 'Y' where the first, last and housumber match in each of table.
Thanks
Chuck
Each table has
Lastname,firstname,housenu
the first table has a column called "Permit" lets call this table A
I need a sql statement that updates updates table A, and sets the permit column to 'Y' where the first, last and housumber match in each of table.
Thanks
Chuck
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
aneeshattingal thanks it worked dqmq, thanks for the advice. Its a one time mailing list that doesnt need to be real accurate. Even if it misses a good percentage its ok because its good advertisement for their services.
set a.Updated_by='Y'
where a.FirstName=B.FirstName and a.LastName=b.LastName and a.HouseNumber=b.HouseNumbe