How do i compare 2 rows from the same table (SQL Server)

后端 未结 6 554
太阳男子
太阳男子 2020-12-02 16:15

I need to create a background job that processes a table looking for rows matching on a particular id with different statuses. It will store the row data in a string to comp

6条回答
  •  有刺的猬
    2020-12-02 16:49

    SELECT * FROM A AS b INNER JOIN A AS c ON b.a = c.a
    WHERE b.a = 'some column value'
    

提交回复
热议问题