Hi!
My QListView after SQL query has that list:
40
40002F
40231S
40297S
And I want to convert all values that begin at 40 to 40, without duplication, so it should be:
40
Can you help me?
Hi!
My QListView after SQL query has that list:
40
40002F
40231S
40297S
And I want to convert all values that begin at 40 to 40, without duplication, so it should be:
40
Can you help me?
Change your SQL:
Qt Code:
Select distinct substr(column, 1, 2) From tableofinterest Order by substr(column, 1, 2); -- or Select substr(column, 1, 2) From tableofinterest Group by substr(column, 1, 2) Order by substr(column, 1, 2);To copy to clipboard, switch view to plain text mode
Bookmarks