Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

SQL Question

$
0
0

Get the error when run the SQL Query, anyone can help me?

SQL:

UPDATE BOM
SET EQM_UPDATE_DT_GMT = 
(Select distinct (UPDATE_DT_GMT) from dbo.EQM WHERE EQP_NUM = 'TCKU364304' 
AND FAC_NAME = 'SIN01' )
WHERE EQP_NUM = 'TCKU364304' 
AND FAC_NAME = 'SIN01'

Error Message:

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.


wailun3


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>