Viewing 15 posts - 16 through 30 (of 104 total)
John,
Yes. I agree that would work. I was hoping to find a query solution. I was thinking that if the table were Ordered by item number and Start date,...
December 23, 2015 at 9:55 am
Lynn,
Ooops. Sorry. You are correct. Item B should have two date ranges that do NOT overlap each other.
Insert into OverlapTest
(ItemNo, Start_Dt, End_Dt)
Select 'A',20150101,20151231
Union all
Select 'A',20140101,20151231
Union all
Select 'B',20150101,20151231
union all
Select 'B',20140101,20141231
union all...
December 23, 2015 at 9:47 am
Both solutions worked. The Union only worked fine. So did the double CTE. I didn't know that (a second CTE) could be done. The key seems to be the comma....
June 9, 2015 at 11:14 am
Thanks for your replies. I should have thought about the UNION. I will try that now.
I do not understand how to create a CTE from a CTE. Could you reference...
June 9, 2015 at 9:29 am
Gila,
Thank you. I didn't try that.
I did find an answer that worked for all of my questions. On the new server and newer version of SQL, I found that if...
November 25, 2014 at 7:33 am
Lynn,
There is still an error. Notice line 2 and Line 5 are both Item 2. Yet the grid shows a different per item cost $20 and $40, respectively. Line 5...
November 18, 2014 at 11:05 am
Lynn,
You are correct. My posted data is incorrect. Please see below.
MMartin1 and Serg-52, Thank you and I will review your comments more closely this evening.
thanks,
pat
November 18, 2014 at 6:47 am
Further testing on more complicated BOM's show that the above response does not return the correct results.
Creating a BOM listing or an indented BOM is well documented on this and...
November 16, 2014 at 12:21 pm
The following query gives the result I want. But I consider it a ham fisted approach. I am sure there must be a better way and I would appreciate it...
November 10, 2014 at 11:04 am
Jeff,
Thanks for the clarification. I appreciate it.
May 14, 2014 at 8:07 am
Scott, Thanks for the confirmation.
Jeff, I tried the [0-9] and it worked. I am not sure if there is a performance gain. This query will not be used very often...
May 14, 2014 at 4:17 am
You have correctly identified the declaration of the parameters, specifically the data type, as the problem. My VS statement, “.addwithValue(“@LotNo”,”000000113855”) which is implicitly converted to @LotNo=N' 000000101058' is the...
May 7, 2014 at 11:46 am
Grant,
I did not know that so thanks for the advice. In this instance I have a Server dedicated to testing. I am the only one using it. I turn the...
March 28, 2014 at 7:51 am
I have found a partial answer. I am capturing, ShowXMLPlan, RPC:Completed, SP:StatementCompleted, SQL:BatchCompleted and SQL:BatchStarting. So far in the trace I am following, only Stored Procedures have been called. It...
March 27, 2014 at 7:51 am
Gail,
I am still a bit lost so let me paraphrase. A CTE never writes data to the TempDb. But in this instance since the TempDb grows from 8MB to 3.8...
February 26, 2013 at 4:58 am
Viewing 15 posts - 16 through 30 (of 104 total)