Dear all,
I have this table: [machine_bods]
I would like to see if there is something repeated between this 3 fields:
a.machine_number,
a.bmb_market_id,
a.valid_from
I mean, I would like to see if I have more than one record with the same information on those 3 fileds.
Is the below query ok?
select
a.machine_number,
a.bmb_market_id,
a.valid_from,count(*)
from
[ARF_DBW].[bmb_ms].[machine_bods] a
group by
a.machine_number, a.bmb_market_id,a.valid_from
having count(*) >1
order by bmb_market_id, machine_number