How to get the length of the longest text in a column. Including Db2 specific syntax.
Category: SQL Server
Create a cross-table unique ID
Most tables are created with a unique, progressive ID. But how to create an ID whose values are unique across multiple tables? For example, if value 1 is in table A, it must not be in table B.