Viewing 15 posts - 3,001 through 3,015 (of 4,820 total)
v.razaghzadeh (12/14/2016)
ITH VALID_CUSTOMERS AS (
SELECT DISTINCT BK.CustomerLoyaltyNumber , rs.RwdMember_id, bk.Day_Uid_TRADE
FROM HUDS.dbo.SALE_Basket AS BK
INNER JOIN HUDS_Analytics.dbo.map_SiteBusinessManager AS GSM
ON GSM.Site_Code =...
December 15, 2016 at 2:21 pm
halifaxdal (12/15/2016)
DECLARE @test-2 varchar(max);
set @test-2 = 'US01/00000/12345/123456';
set @test-2 = Replace(@test, '/', '.');
SELECT ParseName(@test, 4)
SELECT ParseName(@test, 3)
SELECT ParseName(@test, 2)
SELECT ParseName(@test,...
December 15, 2016 at 2:07 pm
Just curious if this is any easier?
WITH MyData (A, B) AS (
SELECT 'ProdA', 'ProdB' UNION ALL
SELECT 'ProdB', 'ProdA' UNION ALL
SELECT 'ProdB', 'ProdC' UNION ALL
SELECT 'ProdC', 'ProdB' UNION ALL
SELECT 'ProdD', 'ProdE'...
December 15, 2016 at 8:47 am
ChrisM@Work (12/15/2016)
yuvipoy (12/15/2016)
Error converting data type nvarchar to float is returning
Select Convert(mycolumn as float) from mytable;
mycolumn is nvarchar(100)
but my destination table is float , so i am converting...
December 15, 2016 at 6:50 am
yuvipoy (12/15/2016)
Error converting data type nvarchar to float is returning
Select Convert(mycolumn as float) from mytable;
mycolumn is nvarchar(100)
but my destination table is float , so i am converting to...
December 15, 2016 at 6:48 am
Doug.F (12/14/2016)
sgmunson (12/14/2016)
Doug.F (12/14/2016)
To be completely honest, I had rewritten it with ISNULL by the time I got back to...
December 14, 2016 at 9:14 pm
Doug.F (12/14/2016)
To be completely honest, I had rewritten it with ISNULL by the time I got back to reading the...
December 14, 2016 at 3:01 pm
SQL-DBA-01 (12/13/2016)
I want to write a windows batch file, to take backup file and once the backup is taken successfully, want to delete the backup files older than 7...
December 14, 2016 at 8:43 am
Please don't duplicate your posts. But to answer the question, I just realized that the VALID_CUSTOMERS cte does not have any date controls in it. It...
December 14, 2016 at 8:21 am
drew.allen (12/14/2016)
It looks like a simple pivot/crosstab. Cross Tabs and Pivots, Part 1 – Converting Rows to Columns[/url]Drew
Yes, but that assumes that the values "StartDate" and "EndDate" are always...
December 14, 2016 at 8:15 am
squvi.87 (12/14/2016)
Need to generate random number based on ID3 column. Have mentioned each rows logic in remarks. Note: This is a sample data I need to apply on big set...
December 14, 2016 at 8:02 am
Manic Star (12/13/2016)
Getting the message "[Execute Process Task] Error: An error occurred with the following error message: "The requested operation requires elevation"."
I've tried to date:
1) Calling this...
December 14, 2016 at 7:47 am
bradwilliams51 (12/14/2016)
I am creating an invoice report from scratch in report builder, all the report data is correct and working fine. The issue I am having is adding the...
December 14, 2016 at 7:44 am
csyz (12/14/2016)
I have following issue:
2 Tables (Zusatzfeld, Vorschuss)
dbo.Zusatzfeld
Bold_ID (PK)
WertDatum (the one with the values)
MetaZusatzfeld (the one with Searchvalue)
UserEintrag (connection to dbo.Vorschuss)
dbo.Vorschuss
Bold_ID (PK)
Description (one column with the value)
Projekt (one column...
December 14, 2016 at 7:37 am
How about using a well-known highly performant string splitter function, that you can find here:
http://www.sqlservercentral.com/articles/Tally+Table/72993/%5B/url%5D
SELECT Col1, Col2, S.Item AS Col3
FROM YourTable AS YT
CROSS APPLY dbo.DelimitedSplit8K(YT.Col1, ',') AS S
WHERE YT.Col2 =...
December 14, 2016 at 7:26 am
Viewing 15 posts - 3,001 through 3,015 (of 4,820 total)