Variantenpreise

Folgender Befehl sollte das tun, was Du willst. Kleiner Obulus zu Pfingsten :wink:

[B]Achtung: Vorher Datenbank sichern!![/B]


UPDATE oxarticles B
				,(
	SELECT
		 oxparentid
		,MIN( oxprice ) AS min 
		,MAX( oxprice ) AS max
	FROM
		oxarticles
	GROUP BY
		oxparentid
) AS A
SET
oxvarminprice = A.min,
oxvarmaxprice = A.max
WHERE
    B.oxid = A.oxparentid