[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More
Experts Exchange Solution brought to you by
"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.
Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!
for row = 2 to max(row)-1
for nextrow = row +1 to max(row )-1 do
if (row.category <> nextrow.category)
swap(row + 1, nextrow) // can be same row
Open in new window
Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.
CREATE TABLE [dbo].[Conductor](
[Id] [int] IDENTITY(1,1) NOT NULL,
[Program] [varchar](50) NOT NULL,
[ProgId] [int] NOT NULL,
[Material] [varchar](50) NOT NULL,
[MaterialId] [varchar](50) NOT NULL,
[Category] [varchar](50) NOT NULL,
[CategoryId] [int] NOT NULL,
[BreakNo] [int] NOT NULL,
[BreakSequ] [int] NULL,
[Ddate] [date] NULL,
CONSTRAINT [PK_Conductor] PRIMARY KEY CLUSTERED
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
SET ANSI_PADDING OFF
ALTER TABLE [dbo].[Conductor] ADD CONSTRAINT [DF_Conductor_BreakNo] DEFAULT ((0)) FOR [BreakNo]
ALTER TABLE [dbo].[Conductor] ADD CONSTRAINT [DF_Conductor_BreakSequ] DEFAULT ((0)) FOR [BreakSequ]
From novice to tech pro — start learning today.
Premium members can enroll in this course at no extra cost.