Hi All,
Ok, I want the sum of either JobDescID = 1 thru 11 or any JobDesc containing the word "Field"....I tried the following but not getting the correct results.
this is a new field in my select statement query....
my results for LocID 1 should be 33 but its returning 3003Code:(SELECT SUM(ActThreeMoAgo) FROM vwPlanning B WHERE LocID = B.LocID AND JobDescID = 1 OR LocID = B.LocID AND JobDescID = 2 OR LocID = B.LocID AND JobDescID = 3 and so til 11... :o) AS SumAllField
also tried...
results come back NULL ....Code:(SELECT SUM(ActThreeMoAgo) FROM vwPlanning B WHERE LocID = B.LocID AND JobDesc = '%Field%') AS SumAllField
Thanks for any help with this....![]()



LinkBack URL
About LinkBacks



Reply With Quote




Bookmarks