on 12-05-2016 8:45 AM
Hi Friends,
I am facing a situation where I get a difference in count when a cast is applied on the count value of a counter column.
To identify the reason behind this occurence , I have taken an id column which has multiple names assigned to it and i basically want the distinct count of the id column.
When the counter value is read directly we get the right result as 1 for the counter but when the counter value is casted to a big integer or integer this leads to a shift in the aggregation to the name column.
I have attached detailed snapshots covering all the scenarios , experts please provide your recommendations on what could be the cause of this issue.
Thanks in advance!
Chetan Pant
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.