R
R
RST2812022-01-13 13:28:24
SQL
RST281, 2022-01-13 13:28:24

Why does SELECT MAX(uuid) return A-22-999 when there is A-22-1000 in the database?

Why does SELECT MAX(uuid) return A-22-999 when there is A-22-1000 in the database?
How to build the right query?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Adamos, 2022-01-13
@RST281

String comparison is character-by-character, without highlighting numeric parts. '9' > '1'.
You won't achieve anything by standard means here.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question