Joins on encrypted columns  Movement of encrypted data as ciphertext

New Features Adaptive Server® Enterprise 12.5.3a

Constant valued search arguments and encrypted columns

For equality and non-equality comparison of an encrypted column to a constant value, Adaptive Server optimizes the column scan by encrypting the constant value once, rather than decrypting the encrypted column in each row of the table. The same restrictions listed in “Joins on encrypted columns” apply.

Adaptive Server cannot make use of an index to perform a range search on an encrypted column; it must decrypt each row before performing data comparisons. If a query contains other predicates, Adaptive Server selects the most efficient join order which often leaves searches against encrypted columns last, on the smallest data set.

If your query has more than one range search where there is no useful index, write the query so that the range search against the encrypted column is last. For example, the following query searches for Social Security Numbers of taxpayers in Rhode Island with incomes above $100, 000. The range search of the zipcode column is positioned before the range search of the encrypted adjusted gross income column:

select ss_num from taxpayers
       where zipcode like ‘02%’ and
       agi_enc > 100000




Copyright © 2005. Sybase Inc. All rights reserved. Movement of encrypted data as ciphertext

View this release bulletin as PDF