Viewing 15 posts - 3,196 through 3,210 (of 3,957 total)
Curiosity got the best of me, so I decided to build a 1.2M row test harness to compare the 2:
DECLARE @Shifts TABLE
(emp_id varchar(7), start datetime, [end]...
July 11, 2012 at 11:37 pm
This may also work:
DECLARE @Shifts TABLE
(emp_id varchar(7), start datetime, [end] datetime)
INSERT INTO @Shifts
SELECT 'Dwain', '2012-07-08 08:00', '2012-07-08 17:00'
UNION ALL SELECT 'Dwain', '2012-07-09 08:00', '2012-07-09 17:00'
UNION ALL...
July 11, 2012 at 11:06 pm
SGT_squeequal (7/11/2012)
July 11, 2012 at 10:53 pm
I don't know much about SSIS but if you're inserting into a table, use an IDENTITY column to generate a unique number.
July 11, 2012 at 10:48 pm
Let me take your questions one at a time.
1. In your experiences, when you get the results of a query, how and who determines if the results are correct?
This will...
July 11, 2012 at 10:45 pm
Les Cardwell (7/11/2012)
I'll run both for time comparisons this weekend when there's not much activity on this server (this...
July 11, 2012 at 8:43 pm
How does generating all possible optimal solutions in under 6 minutes grab ya?
Attached is a write up on the solution including everything you need to run it yourself. I...
July 11, 2012 at 6:21 am
Les Cardwell (7/10/2012)
I did try to use the CTE...
July 11, 2012 at 1:52 am
Hey Garry! Sorry for my late reply but I thought I'd suggest an arguably more readable and succinct approach that works in SQL 2008 (using CROSS APPLY VALUES instead...
July 9, 2012 at 11:56 pm
You'll find a lot more people willing to help you if you post some DDL and sample data in readily consumable format (many regular posters have links in their signatures...
July 9, 2012 at 11:26 pm
Eureka! I have just hit upon a method that generates "hundreds" of triplet combinations that can be combined 11 at a time to cover all the districts included in...
July 9, 2012 at 8:23 pm
Try it with a million invoices (3M detail rows):
CREATE TABLE #OrdLine([OrdNo] [int] NULL,[ItemNo] [varchar](50) NULL) ON [PRIMARY]
;WITH Tally (n) AS (
SELECT TOP 1000000 ROW_NUMBER() OVER (ORDER BY (SELECT NULL))
FROM...
July 9, 2012 at 4:58 am
Without some DDL and sample data I can't post a tested solution but something like this may work (INTERSECT the way you've written it should except you misspelled the keyword):
Select...
July 9, 2012 at 1:26 am
ramsai1973 (7/8/2012)
BEGIN
-- SET NOCOUNT ON added to prevent extra result sets from
-- interfering with SELECT statements.
SET NOCOUNT ON;
DECLARE...
July 9, 2012 at 12:26 am
OK. It's time for a checkpoint, if for no other reason that to get straight in my head what I've been doing.
First, I needed to convince myself of something...
July 8, 2012 at 9:08 pm
Viewing 15 posts - 3,196 through 3,210 (of 3,957 total)