Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with generating a checksum

Status
Not open for further replies.

rickholc

Programmer
Sep 18, 2003
6
US
Is there a built in way of computing a checksum on a field, a group of fields or a whole record in a Teradata table?
Example:
Select Checksum(field1) as check_1, checksum(*) as check_2
from table

 
You mean MS SQL Server checksum?

The closest thing to checksum is the HashRow function, the resulting Datatype is BYTE(4):

sel hashrow('bla');

*** Query completed. One row found. One column returned.
*** Total elapsed time was 1 second.

HASHROW('bla')
--------------
22C3F10B


sel hashrow('bla', 1, 123.45, 'foo');

*** Query completed. One row found. One column returned.
*** Total elapsed time was 1 second.

HASHROW('bla',1,123.45,'foo')
-----------------------------
D8BE2563



Dieter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top