- Data Structure
- Networking
- RDBMS
- Operating System
- Java
- MS Excel
- iOS
- HTML
- CSS
- Android
- Python
- C Programming
- C++
- C#
- MongoDB
- MySQL
- Javascript
- PHP
- Physics
- Chemistry
- Biology
- Mathematics
- English
- Economics
- Psychology
- Social Studies
- Fashion Studies
- Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Delete duplicate alphanumeric entries from column data in SQL
You can opt for using regular expressions to remove the duplicate numbers from column c or any other intended column.
Example
SELECT REPLACE_REGEXPR ('([A-Za-z0-9])\1+' in 'BB11222343CC' WITH '\1' OCCURRENCE ALL) FROM <table_Name>
Output
B12343C
Advertisements