Re: Compare lookup
> the syntax alludes me
That'd be neat, you mean 'eludes' :-)
> If one the durations is not matching its peers for a result to return
> with all materialID on each location with the discrepancy under duration.
Unclear. You mean do not report materialIDs for which durations are identical, otherwise report all per-materialID durations?
For a materialID where all durations are identical, count(distinct duration)=1. So it seems you want ...
select materialID, group_concat(duration)
from locations
group by materialID
having count(distinct duration)>1;
Subject
Written By
Posted
December 03, 2014 10:50AM
Re: Compare lookup
December 03, 2014 11:05AM
December 03, 2014 12:45PM
December 03, 2014 01:15PM
December 03, 2014 03:24PM
December 03, 2014 04:44PM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.