I need to calculate a checksum for a resultset in Oracle, SQL Server and C#, because i want to check if they are all equal.
Sample Data:
CREATE TABLE [dbo].[TestTable](
    [ParentArticleNumber] [nvarchar](50) NOT NULL,
    [ArticleNumber] [nvarchar](50) NOT NULL,
    [Amount] [decimal](18, 4) NOT NULL
)
GO
Insert Into TestTable (
    ParentArticleNumber
    , ArticleNumber
    , Amount) 
values 
    ('Art1', 'Art3', 10.5)
    , ('Art1', 'Art2', 20)
    , ('Art4', 'Art2', 22.35)
Go
In C# the fields are of type string and decimal
Sample Query:
Select 
    ArticleNumber
    , Amount
From
    TestTable
Where
    ParentArticleNumber = 'Art1'
Any ideas how to calculate a kind of checksum which gets the same result on each system?
 
     
    