Tables [dbo].[QueuedGroups]
Properties
PropertyValue
Row Count0
Created12:44:46 PM Thursday, October 04, 2007
Last Modified12:44:46 PM Thursday, October 04, 2007
Columns
NameData TypeMax Length (Bytes)Allow Nulls
Cluster Primary Key pk_queuedgroups: queueID\groupID\divisionIDForeign Keys fk_queuedgroups_queue: [dbo].[Queues].queueIDqueueIDint4
No
Cluster Primary Key pk_queuedgroups: queueID\groupID\divisionIDForeign Keys fk_queuedgroups_group: [dbo].[Groups].groupIDgroupIDint4
No
Cluster Primary Key pk_queuedgroups: queueID\groupID\divisionIDForeign Keys fk_queuedgroups_div: [dbo].[Divisions].divisionIDdivisionIDint4
No
Indexes Indexes
NameColumnsUnique
Cluster Primary Key pk_queuedgroups: queueID\groupID\divisionIDpk_queuedgroupsqueueID, groupID, divisionID
Yes
Foreign Keys Foreign Keys
NameColumns
fk_queuedgroups_divdivisionID->[dbo].[Divisions].[divisionID]
fk_queuedgroups_groupgroupID->[dbo].[Groups].[groupID]
fk_queuedgroups_queuequeueID->[dbo].[Queues].[queueID]
SQL Script
CREATE TABLE [dbo].[QueuedGroups]
(
[queueID] [int] NOT NULL,
[groupID] [int] NOT NULL,
[divisionID] [int] NOT NULL
) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QueuedGroups] ADD CONSTRAINT [pk_queuedgroups] PRIMARY KEY CLUSTERED ([queueID], [groupID], [divisionID]) ON [PRIMARY]
GO
ALTER TABLE [dbo].[QueuedGroups] ADD CONSTRAINT [fk_queuedgroups_div] FOREIGN KEY ([divisionID]) REFERENCES [dbo].[Divisions] ([divisionID])
GO
ALTER TABLE [dbo].[QueuedGroups] ADD CONSTRAINT [fk_queuedgroups_group] FOREIGN KEY ([groupID]) REFERENCES [dbo].[Groups] ([groupID])
GO
ALTER TABLE [dbo].[QueuedGroups] ADD CONSTRAINT [fk_queuedgroups_queue] FOREIGN KEY ([queueID]) REFERENCES [dbo].[Queues] ([queueID])
GO
Uses