กระทู้เก่าบอร์ด อ.Yeadram
        
           1,771   2		  
          
					  
		    URL.หัวข้อ / 
		    URL
        
        sql update ข้อมูลครับ      
    
      update poreport  inner join (select  suno, pono, partno, min(podate) pday   from ordernbt  where  ordernbt.poline  =  999  group by suno, pono,  partno) ordernbt  on poreport.suno = ordernbt.suno and poreport.pono = ordernbt.pono and poreport.partno = ordernbt.partno set  fmonth1 = ordernbt.pday  where  ordernbt.pono = '1903094'
ต้องการหาค่า min อีกตาราง ไป update อีกตาราง แต่เกิด error
Syntax error (missing operator) in query expression 'min(podate) pday'.
ผิดตรงไหน ช่วยแนะนำหน่อยครับ
ขอบคุณครับ
    
  ต้องการหาค่า min อีกตาราง ไป update อีกตาราง แต่เกิด error
Syntax error (missing operator) in query expression 'min(podate) pday'.
ผิดตรงไหน ช่วยแนะนำหน่อยครับ
ขอบคุณครับ
				2 Reply in this Topic. Dispaly 1  pages and you are on page number 1 
				
        
    2 @R05539    
        
    
      ได้แล้ว ขอบคุณมากนะครับ    
    
  
      Time: 0.6036s
    
      
		
UPDATE suppliers
SET city = ( SELECT customers.city
FROM customers
WHERE customers.customer_name = suppliers.supplier_name)
WHERE EXISTS
( SELECT customers.city
FROM customers
WHERE customers.customer_name = suppliers.supplier_name);