How can we find the maximum Alphanumeric value in the primary key?
Select 'prefix' + convert(varchar(20), max(convert(int, substring(AlphNumField, 4, 100))) + 0) from TableName
Read More..   [55 clicks]
Published under: SQL Server Interview Questions · · · ·