Viewing 15 posts - 2,191 through 2,205 (of 10,144 total)
Thanks for the sample data - what a treat 🙂
Have a play with this. To "ice the cake", use DENSE_RANK() to renumber the groups. Ask if you're unsure but you...
September 3, 2015 at 8:17 am
Tac11 (9/3/2015)
doesn't tell me that, I posted the error
Can't you tell by looking at the data? Can you post a few random samples here?
September 3, 2015 at 7:58 am
Tac11 (9/3/2015)
I am able to create the table below but trying to execute 'Insert' query below I get this :
Msg 8152, Level 16, State 10, Line 2
String or binary...
September 3, 2015 at 7:47 am
Eirikur Eiriksson (9/3/2015)
patilar (9/3/2015)
you can use Fn_split () function . The Code for it is available in googleQuick suggestion, don't use the Fn_split function, use DelimitedSplit8K [/url]instead
😎
For your amusement, here's...
September 3, 2015 at 7:45 am
tt-615680 (9/3/2015)
and I get the following error:
Conversion failed when converting date and/or time...
September 3, 2015 at 7:14 am
-- sample data:
DROP TABLE #source_table_1
CREATE TABLE #source_table_1 ([contract] VARCHAR(2), [date] DATE, amount INT)
INSERT INTO #source_table_1 ([contract], [date], amount) VALUES
('XX','20160101',100),
('XX','20160104',200),
('YY','20160101',300),
('YY','20160104',400),
('ZZ','20160101',500),
('ZZ','20160104',600)
DROP TABLE #source_table_2
CREATE TABLE #source_table_2 ([date] DATE)
INSERT INTO #source_table_2 ([date]) VALUES...
September 3, 2015 at 6:19 am
tt-615680 (9/3/2015)
Conversion failed when converting date and/or time from character string.
-- 9...
September 3, 2015 at 6:02 am
tt-615680 (9/3/2015)
I commented out the insert into statement but all I get in return is the details about the files, e.g. file name file extension. LSN...
September 3, 2015 at 4:25 am
in section 9
-- 9 - Populate the #ParsedFileList table with the final data
INSERT INTO #ParsedFileList
(DateTimeStamp,
LSN,
FileSize,
FileName1)
SELECT LTRIM(SUBSTRING (Col1, 1, 20)) AS...
September 3, 2015 at 2:30 am
-- Your query looks like this...
DELETE FROM CSV_Details
WHERE CSVID NOT IN
(
-- level 2
SELECT CSVID
FROM CSV_Details d2
INNER JOIN Transmittal_Planning_MarkNo m2
ON m2.Mark_No = d2.Mark_Rev_No_fab
WHERE d2.DeleteFlag IS NOT...
September 3, 2015 at 1:48 am
yb751 (9/1/2015)
September 1, 2015 at 7:37 am
WHERE [DETERMINATION] <> 'Denied'
AND [Number] ='A150731000039'
---- Removes incorrect records where these names match----
AND (
[Name] IS NULL
OR [PName] IS NULL
OR ([Name] NOT IN ('GLASSMAN','NANCY','LUDEMANN') AND [PName] = 'DEFAULT')
)
Avoid using...
September 1, 2015 at 7:31 am
TSQL Tryer (9/1/2015)
This has two columns. "username" and "companyid"
A sample of data for "companyid" is - "1,2,3,4".
How would I go about join...
September 1, 2015 at 7:23 am
Jeff Moden (8/25/2015)
ChrisM@Work (8/25/2015)
Hi JoshIIRC a hard tally table is usually slightly faster than an inline one. Google will tell you for sure.
No need to Google. Here's a chart...
August 26, 2015 at 2:17 am
ScottPletcher (8/25/2015)
ChrisM@Work (8/25/2015)
ScottPletcher (8/25/2015)
ChrisM@Work (8/25/2015)
ScottPletcher (8/25/2015)
ChrisM@Work (8/25/2015)
ScottPletcher (8/21/2015)
ChrisM@Work (8/21/2015)
ScottPletcher (8/21/2015)
ChrisM@Work (8/21/2015)
The inner select can be accelerated with this index:
CREATE INDEX ix_Helper ON [cts].[exception_Main]
(productArea, reportable, reportYear, reportMonth, queueID)
INCLUDE (volume,...
August 25, 2015 at 10:01 am
Viewing 15 posts - 2,191 through 2,205 (of 10,144 total)