gupta24 Posted February 12, 2018 Report Posted February 12, 2018 Table: DEV Qa PROD S1,S1,S1,S2 S3,S3,S3 S4 Result: Dev QA PROD S1,S2 S3 S4 Quote
Bhai Posted February 12, 2018 Report Posted February 12, 2018 1 hour ago, gupta24 said: Table: DEV Qa PROD S1,S1,S1,S2 S3,S3,S3 S4 Result: Dev QA PROD S1,S2 S3 S4 Quote
WigsandThighs Posted February 12, 2018 Report Posted February 12, 2018 Delete from table kottu bhayya antha crystal clear ga untadhi Quote
rapchik Posted February 12, 2018 Report Posted February 12, 2018 1 hour ago, gupta24 said: Table: DEV Qa PROD S1,S1,S1,S2 S3,S3,S3 S4 Result: Dev QA PROD S1,S2 S3 S4 group by ani option untadhi chudu.. group by Dev, QA add cheyi last lo Quote
ramu Posted February 12, 2018 Report Posted February 12, 2018 Regular expression use cheyyali... direct remove duplicates from column value ani google cheyyi regexp_replace( 'VA - HRD 1, VA - HRD 1, VA - NOVA 1, VA - NOVA 1' ,'([^,]+)(,[ ]*\1)+', '\1') Quote
alooparata Posted February 12, 2018 Report Posted February 12, 2018 1 hour ago, WigsandThighs said: Delete from table kottu bhayya antha crystal clear ga untadhi Quote
coolie Posted February 13, 2018 Report Posted February 13, 2018 3 hours ago, gupta24 said: Table: DEV Qa PROD S1,S1,S1,S2 S3,S3,S3 S4 Result: Dev QA PROD S1,S2 S3 S4 If you have another seq field or audit fields.. its easy to remove.. See below as an example.. Here all rows will be deleted except the one whose insert_date is lowest. delete films f where insert_date not in ( select min(insert_date) from films s where f.title = s.title and f.uk_release_date = s.uk_release_date ) Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.