on 2025 Feb 13 9:24 AM
Hi there,
I am looking for a solution to combine the selection of values from database and counting them in 1 SQL statement.
Unfortunately I don't get the solution so far by my own :(.
Example:
| matnr | text |
-----------------
| 1 | test1 |
| 2 | test2 |
| 3 | test3 |
The preferred SELECT should lead to the following result:
| matnr | text | count |
-------------------------
| 1 | test1 | 3 |
| 2 | test2 | 3 |
| 3 | test3 | 3 |
Any ideas?
BR
Request clarification before answering.
For recent versions, which SQL expressions/functions did you already try?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Was the WITH already available in 7.50 (and not only from 7.51 on)
User | Count |
---|---|
61 | |
8 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.