Database is Oracle. I have a single table with three columns, A, B and C.
- A is a string column
- B is an int column
- C is an int column
I need an SQL select that groups on A and returns the share (in percent) where B = C = [particular int value] for each value of A.
Something like
SELECT A, percentBEqC
...
GROUP ON A
You may want to check if
B = 256 AND C = 256has better performance.Another way for your problem would be: