I have a table that has multiple work records for each day. The reason there is no primary key is because there are multiple records showing each worker each day, and each person works multiple days.
I wrote a query that uses "into" to drop it into a table. The query is very complex so I figured it would be easier to just modify the table.
I wouldn't be having any problems but the table is returning duplicate rows. If I could assign a number to each unique row (or if there's another way that'd be great), I could select the distinct ID number and there'd be no duplicates.
I have tried select distinct *
but it doesn't work.
Here is the table:
CREATE TABLE [dbo].[liaisonperformance](
[sr_name] [varchar](50) NULL,
[workdate] [date] NULL,
[Calls_in] [int] NULL,
[Calls_Out] [int] NULL,
[Chats] [int] NULL,
[reaches] [int] NULL,
[books] [int] NULL,
[attends] [int] NULL,
[hoursworked] [float] NULL
) ON [PRIMARY]
GO