Viewing 15 posts - 3,871 through 3,885 (of 5,590 total)
If I understand correctly, in either table you can have no records for a match in the other table, but you want to show the data from both tables. correct?
If...
June 29, 2010 at 1:00 pm
mjackson-1128654 (6/29/2010)
June 29, 2010 at 12:46 pm
aberndt (6/29/2010)
the data in the shift_date column doesn't really use the 'time' portion, it shows as 2008-11-25 00:00:00.000 (example).
This explains why just the = works.
Thank you for the reference to...
June 29, 2010 at 12:41 pm
aberndt (6/29/2010)
June 29, 2010 at 12:16 pm
gideon.kahl (6/28/2010)
Thanks for everyone's contributions. I wasn't the one asking the questions, but I learned a lot from the post.
I've learned the most not from the questions asked, but...
June 29, 2010 at 12:01 pm
David Tooker (6/29/2010)
June 29, 2010 at 10:01 am
vince.chittenden (6/29/2010)
If the month function never returns a zero-length string (and it never will in this case, AFAICS), then why not '0' instead of '00'?
You are correct, this would work.
I...
June 29, 2010 at 8:01 am
Sigh... I sure wish we could put into the briefcase an individual post on the forum... This one of Jeff's certainly would be in it.
@jeff -
1. Did you test...
June 29, 2010 at 7:38 am
And if there are any gaps, then this will work for you:
DECLARE @test-2 TABLE (ID INT)
INSERT INTO @test-2
VALUES (1),(2),(3),(4),(5),(6)
;WITH CTE AS
(
SELECT ID, RN = ROW_NUMBER() OVER (ORDER BY ID)
...
June 28, 2010 at 10:28 pm
Sigh... duplicate post.
Please continue discussion at this post
June 28, 2010 at 10:17 pm
How does this work?
declare @test-2 table (Col1 varchar(50))
insert into @test-2
select '[abcdef] Client' UNION ALL
select '[gdhdnuidd] 1st Party SW' UNION ALL
select 'testbusiness'
select case when charindex(']', Col1) > 0 then substring(Col1,...
June 28, 2010 at 10:13 pm
Agile (6/28/2010)
June 28, 2010 at 10:08 pm
lmu92 (6/28/2010)
The first person who "forced" me to do it actually created the...
June 28, 2010 at 5:31 pm
I would suggest the following:
declare @MyDate datetime,
@fn varchar(100),
@cmd varchar(200)
set @MyDate = DateAdd(day, -1, getdate())
set...
June 28, 2010 at 5:15 pm
lmu92 (6/28/2010)
This thread include a post by WayneS showing the DelimitedSplit8K function I'm using at the moment.
I believe I saw a follow-up post from Jeff where he found that the...
June 28, 2010 at 3:51 pm
Viewing 15 posts - 3,871 through 3,885 (of 5,590 total)