Closed. This question needs details or clarity . It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post .
Closed 2 months ago.
Improve this question
this is my original table in database.
name | qty |
---|---|
QMORIASDWAD 1 | |
QMORIASDWAD 3 | |
QMORIASDWAD 4 | |
QMORIASDWAD 5 | |
QMORIASDWAD 6 | |
QMORIASDWAD 7 | |
QMORIASDWAD 8 |
and I want my result output with select to be like this.
name | qty |
---|---|
qm2 | 1 |
qm2 | 3 |
qm2 | 4 |
qm2 | 5 |
qm2 | 6 |
qm2 | 7 |
qm2 | 8 |
1条答案
按热度按时间4uqofj5v1#
your data
Just use
Concat
,Lower
andLeft
functiondbfiddle
Based on your query,you can use
with