
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Structure of Symbol Tables using AutoNumber on Key fields
Hello,
Am I correct in understanding that if I use AutoNumber on a key field, for instance
AutoNumber(ProductID&CustomerID)
that the symbol table for the Key Field "ProductID&CustomerID" would look like this?
Pointer Value
1
2
that is, that the Value is empty because a look-up is not needed? Or would the symbol table look like this?
Pointer Value
1 1
2 2
Also is there a way to view the symbol tables? Thank you.
Accepted Solutions


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It would look like neither. When a field contains only sequential integers, the index value in the table row is used as the value. So there is no symbol table. I think you might be saying this in your first example.
-Rob

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Yes the Value becomes a simple integer, and the original concatenated string is no longer stored in the field.
Or try this
AutoNumberHash128(ProductID, CustomerID)


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It would look like neither. When a field contains only sequential integers, the index value in the table row is used as the value. So there is no symbol table. I think you might be saying this in your first example.
-Rob

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks for your replies!
I did not realize there would be no symbol table at all. But it makes sense.
Should we always use AutoNumber on key fields? Or is there a drawback?


- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I recommend always using the AutoNumber on key fields.
I would also recommend using the AutoNumber statement rather than the AutoNumber() function. Just put the statement at the end of your script. Much easier and much faster.
-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com
