sybase/sql self join multiple rows
问题 Hi stackoverflow community, I'm trying to do a self join if the unique ID in Col 1 is the same. Table code: CREATE TABLE #table ( Unique_ID int, Product_code varchar(10) ) INSERT INTO #table (Unique_ID, Product_code) VALUES (1111111111, 1) INSERT INTO #table (Unique_ID, Product_code) VALUES (1111111111, 2) INSERT INTO #table (Unique_ID, Product_code) VALUES (1111111111, 3) INSERT INTO #table (Unique_ID, Product_code) VALUES (2222222222, 4) INSERT INTO #table (Unique_ID, Product_code) VALUES