SQL Server : join on uniqueidentifier
问题 I have two tables Backup and Requests . Below is the script for both the tables Backup CREATE TABLE UserBackup( FileName varchar(70) NOT NULL, ) File name is represented by a guid. Sometimes there is some additional information related to the file. Hence we have entries like guid_ADD entried in table. Requests CREATE TABLE Requests( RequestId UNIQUEIDENTIFIER NOT NULL, Status int Not null ) Here are some sample rows : UserBackup table: FileName 15b993cc-e8be-405d-bb9f-0c58b66dcdfe 4cffe724