Hi,
The following table namely elcbtripselect [contains no primay key ]contains 5147 records.I want to know wether this table contains duplicate records or not.
I tried with following query
1)SELECT elcbtripselect.ELCBTRIP_voltsMIN, elcbtripselect.ELCBTRIP_voltsMAX, elcbtripselect.ELCBTrip_is_partwinding, elcbtripselect.ELCBTrip_is_ydelta, elcbtripselect.ELCBTRIP_starter_size, elcbtripselect.ELCBTRIP_UnitFunction, elcbtripselect.ELCBTRIP_strcb_speedi_frame_ty, elcbtripselect.ELCBTRIP_cb_style, elcbtripselect.ELCBTRIP_ol_relay_type, elcbtripselect.ELCBTRIP_fla_min, elcbtripselect.ELCBTRIP_fla_max, elcbtripselect.ELCBTrip_Speedi_ECM, elcbtripselect.ELCBTRIP_cb_trip
FROM elcbtripselect;
The result is 5147
Then by using Distinct
2)SELECT distinct elcbtripselect.ELCBTRIP_voltsMIN, elcbtripselect.ELCBTRIP_voltsMAX, elcbtripselect.ELCBTrip_is_partwinding, elcbtripselect.ELCBTrip_is_ydelta, elcbtripselect.ELCBTRIP_starter_size, elcbtripselect.ELCBTRIP_UnitFunction, elcbtripselect.ELCBTRIP_strcb_speedi_frame_ty, elcbtripselect.ELCBTRIP_cb_style, elcbtripselect.ELCBTRIP_ol_relay_type, elcbtripselect.ELCBTRIP_fla_min, elcbtripselect.ELCBTRIP_fla_max, elcbtripselect.ELCBTrip_Speedi_ECM, elcbtripselect.ELCBTRIP_cb_trip
FROM elcbtripselect;
The result is 5145
It means that it contains 2 duplicate records.
Now I executed following query to find duplicate records
3)SELECT elcbtripselect.ELCBTRIP_voltsMIN, elcbtripselect.ELCBTRIP_voltsMAX, elcbtripselect.ELCBTrip_is_partwinding, elcbtripselect.ELCBTrip_is_ydelta, elcbtripselect.ELCBTRIP_starter_size, elcbtripselect.ELCBTRIP_UnitFunction, elcbtripselect.ELCBTRIP_strcb_speedi_frame_ty, elcbtripselect.ELCBTRIP_cb_style, elcbtripselect.ELCBTRIP_ol_relay_type, elcbtripselect.ELCBTRIP_fla_min, elcbtripselect.ELCBTRIP_fla_max, elcbtripselect.ELCBTrip_Speedi_ECM, elcbtripselect.ELCBTRIP_cb_trip
FROM elcbtripselect
Group By elcbtripselect.ELCBTRIP_voltsMIN, elcbtripselect.ELCBTRIP_voltsMAX, elcbtripselect.ELCBTrip_is_partwinding, elcbtripselect.ELCBTrip_is_ydelta, elcbtripselect.ELCBTRIP_starter_size, elcbtripselect.ELCBTRIP_UnitFunction, elcbtripselect.ELCBTRIP_strcb_speedi_frame_ty, elcbtripselect.ELCBTRIP_cb_style, elcbtripselect.ELCBTRIP_ol_relay_type, elcbtripselect.ELCBTRIP_fla_min, elcbtripselect.ELCBTRIP_fla_max, elcbtripselect.ELCBTrip_Speedi_ECM, elcbtripselect.ELCBTRIP_cb_trip
having Count (*) >1
result: I got 2 records but they are having different values.
Please suggest me whether this table is having duplicate records or teel me wats the problem with this.
Herewith I have attached table[elcbtripselect] with 5147 records.
Thanks,
Nethra.