hi,
i have a small query :
-----------------------------------------------------------------------
SELECT *
FROM Fares INNER JOIN Routes
ON Fares.RouteID = Routes.RouteID
WHERE Routes.Origion = @Origion
AND Routes.Destenai tion = @Destenaition
AND Fares.ValidFrom < @Date AND Fares.ValidUnti ll > @Date
-------------------------------------------------------------------------
as i see it my first option is get the results as the are back to my code and do all the loops in there while executing another Query's, but that will consume lots of network traffic between my web application and the SQL Server.
so am wondering if there is any way to loop on each row that was returned from the query above
thank you.
i have a small query :
-----------------------------------------------------------------------
SELECT *
FROM Fares INNER JOIN Routes
ON Fares.RouteID = Routes.RouteID
WHERE Routes.Origion = @Origion
AND Routes.Destenai tion = @Destenaition
AND Fares.ValidFrom < @Date AND Fares.ValidUnti ll > @Date
-------------------------------------------------------------------------
as i see it my first option is get the results as the are back to my code and do all the loops in there while executing another Query's, but that will consume lots of network traffic between my web application and the SQL Server.
so am wondering if there is any way to loop on each row that was returned from the query above
thank you.
Comment