Quantcast
Channel: Discussion Forum > Connect Data Services
Viewing all articles
Browse latest Browse all 2504

MAX(id) returns unexpected result

$
0
0

Topic by Hercules Babu

Hello

I am having trouble with max(id) function returning value 9 instead of 522 even though the id column is of Integer Data type. 

----------------------------

select distinct Contact.CustomFields.c.accounttype.id from contact

ID
 
1
10
11
12
13
15
2
4
5
522
6
7
8
81
83
85
9

-------------------------

describe Contact.CustomFields.c.accounttype

NameTypePath
IDInteger 
NameString 
LookupNameString 

select max(CustomFields.c.accounttype.id) from contact

max(CustomFields.c.accounttype.id)
9

 

Any recommendations? Thanks! 


Viewing all articles
Browse latest Browse all 2504

Trending Articles