Skip to content
Advertisement

Use of Regex in SQL query

Trying to SELECT only XY-XY-XY series from the database:

Giving me results:

1212121205, 1121212128 & 1234123425


How 1234123425 is XY-XY-XY series?

DB-FIDDLE

Advertisement

Answer

All your questions are interesting sql puzzles.
This solution also, does not involve regex:

See the demo.
Results:

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement