Can someone please help me with the syntax to create a multi column key that will eliminate duplicate records during an import if there is a combined duplicate latitude, longitude, and zip_code?
CREATE TABLE mytable (
ZIP_CODE varchar(10) default NULL,
CITY varchar(50) default NULL,
STATE char(2) default NULL,
LATITUDE decimal(10,8),
LONGITUDE decimal(10,8),
ID INT Identity (1000000000,1)PRIMARY KEY
)
Thanks in advance!
PS. I am still looking through Books-On-Line but hope to get help a little quicker this way... thanks again
CREATE TABLE mytable (
ZIP_CODE varchar(10) default NULL,
CITY varchar(50) default NULL,
STATE char(2) default NULL,
LATITUDE decimal(10,8),
LONGITUDE decimal(10,8),
ID INT Identity (1000000000,1)PRIMARY KEY
)
Thanks in advance!
PS. I am still looking through Books-On-Line but hope to get help a little quicker this way... thanks again