Recordsetclown
Technical User
I want to change the listingsdb_featured value for records returned by this query to 'yes'. I was hoping to use update, but haven't found a working syntax. Can anyone assist?
SELECT listingsdb_featured from default_en_listingsdb as r1
LEFT OUTER JOIN default_classlistingsdb as r4
ON r4.listingsdb_id = r1.listingsdb_id
AND r4.class_id = '1'
LEFT OUTER JOIN default_en_listingsdbelements as r2
ON r2.listingsdb_id = r1.listingsdb_id
AND r2.listingsdbelements_field_name = 'price'
AND r2.listingsdbelements_field_value > '70000'
LEFT OUTER JOIN default_en_listingsdbelements as r3
ON r3.listingsdb_id = r1.listingsdb_id
WHERE r3.listingsdbelements_field_name = 'MLSID'
AND r3.listingsdbelements_field_value = 'idnum'
SELECT listingsdb_featured from default_en_listingsdb as r1
LEFT OUTER JOIN default_classlistingsdb as r4
ON r4.listingsdb_id = r1.listingsdb_id
AND r4.class_id = '1'
LEFT OUTER JOIN default_en_listingsdbelements as r2
ON r2.listingsdb_id = r1.listingsdb_id
AND r2.listingsdbelements_field_name = 'price'
AND r2.listingsdbelements_field_value > '70000'
LEFT OUTER JOIN default_en_listingsdbelements as r3
ON r3.listingsdb_id = r1.listingsdb_id
WHERE r3.listingsdbelements_field_name = 'MLSID'
AND r3.listingsdbelements_field_value = 'idnum'