Viewing 15 posts - 1 through 15 (of 18 total)
I have been learning a lot about FOR XML, Pivot, and Unpivot in the past few days. I believe I have what I need using those tools.
I was able...
March 23, 2018 at 8:06 am
Oh, by the way, I have another table that contains the number of Indexes in each site, or rather lists the names for each index along with the index number...
March 23, 2018 at 1:34 am
October 4, 2017 at 9:13 pm
Is it a memory hog?
Would just a decimal(10,5) be better?
October 3, 2017 at 4:25 pm
If you want the output to be identical to what's in the input,...
October 3, 2017 at 11:04 am
SELECT
t.Job_Prod
,t.Job_No
,TrDate = DATEADD(DAY, sc.ItemNumber -1, t.Act_Start)
,[Hours] = MAX(CASE WHEN trk.tType = 'A' THEN CONVERT(FLOAT,sc.Item)...
October 3, 2017 at 8:22 am
Jeff,
I was just wondering if you used that same test data and found the same results with 0's where there ought not be, when not using the STUFF function.
October 3, 2017 at 7:48 am
Good, Sir, with the quality of the code you write, you never have...
October 3, 2017 at 7:21 am
Jeff,
First let me say thank you for taking the time to reply to my post. Thank you to all of you who have taken time to assist a nearly...
October 1, 2017 at 11:26 pm
Jason,
OMG! 300K+ records output in 6 seconds versus what I was doing which took between 1 and 2 minutes.
I've checked a few records so far and they match...
September 30, 2017 at 9:04 am
-- Test data ...September 30, 2017 at 2:23 am
September 30, 2017 at 2:21 am
Given this sql code:
USE TEMPDB
GO
IF OBJECT_ID('dbo.TABLEA','U') IS NOT NULL DROP TABLE dbo.TABLEA;
CREATE TABLE TABLEA (
[Job_Prod] varchar(100),
[Job_Id] varchar(16),
Actual_Start datetime,
actual_Track varchar(1000),
pieces_track varchar(1000)
)
September 29, 2017 at 11:34 pm
Viewing 15 posts - 1 through 15 (of 18 total)