R
Rick
Hi-
Here's the scenario. I'm retrieving data from two different tables. Once I
get this data I am looping through the data and I have to update a couple
columns in the same table. Doesn't anyone know of where I can find a good
example of this. I've been looking every where for this.
Example:
Stored Proc:
SELECT IL.listing#, IL.imageID, o.brokerNum, IL.imageStatus, o.companyid,
L.ListingID AS 'L_ListingID', IL.listingID AS 'IL_ListingID'
FROM ImageListings IL
JOIN listings L ON IL.listing# = L.listing#
AND (IL.SourceMLS = L.SourceMLS
OR IL.SourceMLS = '')
JOIN Offices O ON o.officeid = l.officeid
WHERE IL.imageStatus in(1,6)
I need to loop through the dataset and update the image status of
particuliar rows with a company id of a certain number within the
ImageListings table.
Can someone explain a simple way to do this? I would appreciate it greatly.
Thanks,
Rick
Here's the scenario. I'm retrieving data from two different tables. Once I
get this data I am looping through the data and I have to update a couple
columns in the same table. Doesn't anyone know of where I can find a good
example of this. I've been looking every where for this.
Example:
Stored Proc:
SELECT IL.listing#, IL.imageID, o.brokerNum, IL.imageStatus, o.companyid,
L.ListingID AS 'L_ListingID', IL.listingID AS 'IL_ListingID'
FROM ImageListings IL
JOIN listings L ON IL.listing# = L.listing#
AND (IL.SourceMLS = L.SourceMLS
OR IL.SourceMLS = '')
JOIN Offices O ON o.officeid = l.officeid
WHERE IL.imageStatus in(1,6)
I need to loop through the dataset and update the image status of
particuliar rows with a company id of a certain number within the
ImageListings table.
Can someone explain a simple way to do this? I would appreciate it greatly.
Thanks,
Rick