I
ILoveAccess
Hello,
SQL Server SP 3, Access 2k on Windows 2k sp2,
I have a query:
SELECT * FROM t1 INNER JOIN t2 ON
t1.subcategory = t2.subcategory
In both tables, column subcategory is a varchar(3).
Each table has a column named category.
When I do SELECT t2.*, I get the correct t2 category,
but when I do SELECT *, I get t1's category column twice,
instead of t1.category and t2.category, I get 2 t1's.
My problem is I'm trying to do an update:
UPDATE t1 SET t1.category = t2.category FROM t1 INNER JOIN
t2 ON t1.subcategory = t2.subcategory
But the updated t1.category has the original t2.category!!!
Is this a bug, or is there something else going on. I
won't jump to that conclusion, but this query is very
simple compared to the ones I write everyday for years...
Thanks for your help.
SQL Server SP 3, Access 2k on Windows 2k sp2,
I have a query:
SELECT * FROM t1 INNER JOIN t2 ON
t1.subcategory = t2.subcategory
In both tables, column subcategory is a varchar(3).
Each table has a column named category.
When I do SELECT t2.*, I get the correct t2 category,
but when I do SELECT *, I get t1's category column twice,
instead of t1.category and t2.category, I get 2 t1's.
My problem is I'm trying to do an update:
UPDATE t1 SET t1.category = t2.category FROM t1 INNER JOIN
t2 ON t1.subcategory = t2.subcategory
But the updated t1.category has the original t2.category!!!
Is this a bug, or is there something else going on. I
won't jump to that conclusion, but this query is very
simple compared to the ones I write everyday for years...
Thanks for your help.