Hi to all i have to schedule 10 to 20 team within expected date range Like 01/01/2015 to 10/01/2015 (dd/mm/yyyy). with the use of round robin algorithm.- team-1 must play only once with remaining teams
- one pair must come once.
Data SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOCREATE TABLE [dbo].[tbl_Team]( [Id] [int] NOT NULL, [TeamName] [nvarchar](50) NOT NULL) ON [PRIMARY]GOINSERT [dbo].[tbl_Team] ([Id], [TeamName]) VALUES (1, N'Team1')GOINSERT [dbo].[tbl_Team] ([Id], [TeamName]) VALUES (2, N'Team2')GOINSERT [dbo].[tbl_Team] ([Id], [TeamName]) VALUES (3, N'Team3')GOINSERT [dbo].[tbl_Team] ([Id], [TeamName]) VALUES (4, N'Team4')GOINSERT [dbo].[tbl_Team] ([Id], [TeamName]) VALUES (5, N'Team5')GOINSERT [dbo].[tbl_Team] ([Id], [TeamName]) VALUES (6, N'Team6')GOINSERT [dbo].[tbl_Team] ([Id], [TeamName]) VALUES (7, N'Team7')GOINSERT [dbo].[tbl_Team] ([Id], [TeamName]) VALUES (8, N'Team8')GOINSERT [dbo].[tbl_Team] ([Id], [TeamName]) VALUES (9, N'Team9')GOINSERT [dbo].[tbl_Team] ([Id], [TeamName]) VALUES (10, N'Team10')GO
-------------Chirag India Sr.Software Engineer