I would like to create a primary key that is complex from two different columns and also IDENTITY. For example:
My table:
create table Location (
locationID int primary key,
lat int not null,
lng int not null,
)
lat = 43
lng = 567
I would like the primary key value will be like the following:
locationID = 43.567-1
The "-1" will be add if there is already a locationID that starts with "43.567".
Is it possible at all?