Viewing 15 posts - 1,096 through 1,110 (of 1,473 total)
Jeff Moden (11/18/2008)
The really good part about it all is that no matter what goes wrong, I always learn something new even if it's only how to "read minds" a...
November 18, 2008 at 5:57 am
Take a look at this post, the concept is the same:
http://www.sqlservercentral.com/Forums/Topic602485-1291-1.aspx
If you need help applying this method to your situation, please provide table DDL/sample data as inserts.
November 18, 2008 at 5:53 am
Heh, I was about to post roughly the same query, and specifically waited until you posted because I saw you reading it too :P.
November 17, 2008 at 2:29 pm
If you only want citations with a date > 11/12/05 that don't exist in the table, add
AND C.Date > '11/12/2005'
to the end of Lynn's query.
Also, for future reference,...
November 17, 2008 at 2:26 pm
I was counting those as gaps, even though the new enrollment period started the next day. Let me see if I can re-work it to not count those.
November 17, 2008 at 1:13 pm
My final select query was wrong. It's always the little things! If that's what you were using to check all of your tests, that explains the results. After...
November 17, 2008 at 12:53 pm
Here's an example. Jeff may have some fine tuning to suggest for this.
[font="Courier New"]
------------- CTE to concatenate U_soBLNo -----------------
;WITH ConcatB(DocDate, [Shipping Line],CB) AS(
SELECT QC.DocDate,[Shipping Line],STUFF((SELECT
', ' + U_soBLNo
FROM
[Query_Concat] QC2
WHERE...
November 17, 2008 at 7:46 am
[font="Courier New"]
--------------- CREATE SAMPLE DATA TABLE ------------------
DECLARE @a TABLE(
A VARCHAR(5),
B VARCHAR(5))
INSERT INTO @a(A,B)
SELECT 'a','x1' UNION ALL
SELECT 'a','x2' UNION ALL
SELECT 'a','x3' UNION ALL
SELECT 'b','y1' UNION ALL
SELECT 'b','y2'
-----------------------------------------------------------
------------- CTE to...
November 17, 2008 at 6:56 am
Omair Aleem (11/14/2008)
November 14, 2008 at 12:53 pm
You've been attacked by Single quotes! FIND COVER! (Sorry, it's Friday, and I need a beer)(And the Select and from's I told you to add were from when I...
November 14, 2008 at 12:39 pm
Yerp, that's correct as it is. Just add a SELECT to the beginning, and a FROM, and replace the column names with your actual field names, and you're in...
November 14, 2008 at 12:00 pm
November 14, 2008 at 11:21 am
Viewing 15 posts - 1,096 through 1,110 (of 1,473 total)