Update TabA with value fromTabB
From: Jen (anonymous_at_discussions.microsoft.com)
Date: 04/02/04
- Next message: Andreas Klemt: "Re: How to change date format culture/language in sql server?"
- Previous message: Jen: "Update Table 1 with a value from Table 2"
- Next in thread: David Portas: "Re: Update TabA with value fromTabB"
- Reply: David Portas: "Re: Update TabA with value fromTabB"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 2 Apr 2004 02:01:26 -0800
I need help on this..
update TabA set Col A = (Select Col B from TabB where
ColC=ColC)
TabA is a Detail Table, Col A belong to TabA
TabB is a Header Table , Col B belong to TabB
ColC is the DocumentNo of both Tables (share same name
and is the link in my query)..
But I got error when I run which I don't understand
since Header to Detail is one to many
relationships...there's aren't duplicate documnets in
Header
Subquery returned more than 1 value. This is not
permitted when the subquery follows =, !=, <, <= , >, >=
or when the subquery is used as an expression.
The statement has been terminated.
- Next message: Andreas Klemt: "Re: How to change date format culture/language in sql server?"
- Previous message: Jen: "Update Table 1 with a value from Table 2"
- Next in thread: David Portas: "Re: Update TabA with value fromTabB"
- Reply: David Portas: "Re: Update TabA with value fromTabB"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|