Viewing 15 posts - 4,216 through 4,230 (of 8,761 total)
Quick suggestion, add a [SALES_MONTH] column to the a date dimension with the offset of 1 day for the month.
π
USE tempdb;
GO
SET NOCOUNT ON;
DECLARE @START_DATE DATE = '2014-01-01';
DECLARE @END_DATE ...
December 20, 2015 at 3:06 am
Alan.B (12/16/2015)
I'm not disagreeing with you but have you ever seen that kill performance in SQL Server? I'm curious - I have never seen a performance...
December 16, 2015 at 2:37 pm
Phil Parkin (12/16/2015)
December 16, 2015 at 1:36 pm
Ed Wagner (12/16/2015)
WayneS (12/16/2015)
Jeff Moden (12/16/2015)
Steve Jones - SSC Editor (12/15/2015)
Jeff Moden (12/15/2015)
According to your blog, you might show up in Cleveland SQLSaturday for 2016. Any way of knowing...
December 16, 2015 at 12:51 pm
Simplest way of writing this query would be a single nodes method on an XML variable
π
DECLARE @TTXML XML = '<?xml version="1.0" encoding="UTF-8"?>
<StaffingOrder>
<OrderId validFrom="12/31/2015" validTo="12/31/2015">
<IdValue>JNJNJP00040440</IdValue>
...
December 16, 2015 at 11:44 am
Alan.B (12/15/2015)
DECLARE @x XML = '<?xml version="1.0" encoding="UTF-8"?>
<StaffingOrder>
<OrderId validFrom="12/31/2015" validTo="12/31/2015">
<IdValue>JNJNJP00040440</IdValue>
<Status>Submitted</Status>
</OrderId>
<StaffingPosition>
<CustomFields>
...
December 16, 2015 at 11:29 am
Jack Corbett (12/15/2015)
Steve Jones - SSC Editor (12/14/2015)
Rodders overlooked you.Get it. It's a joke. :w00t:
2 things:
1. That joke fell short π
2. I'm not sure Rodders is...
December 15, 2015 at 12:16 pm
This should get you started
π
USE tempdb;
GO
SET NOCOUNT ON;
DECLARE @JobInvoicePayload XML =
'<ns2:updateSourcingJobInvoiceRequest xmlns="http://www.tagcmd.com/beans/schema/ebs/jobInvoice" xmlns:ns2="http://www.tagcmd.com/beans/schema/ebs/jobInvoiceService">
<JobInvoiceDtls>
<MUNumber>60040132</MUNumber>
<InvoiceNumber>10000001</InvoiceNumber>
<Currency>GBP</Currency>
...
December 14, 2015 at 12:44 am
Welsh Corgi (12/13/2015)
BACKUP LOG [PrismData] TO DISK = N'E:\Backup\PrismData_backup_2015_12_13_042945_6506526.trn' WITH NOFORMAT, NOINIT, NAME = N'PrismData_backup_2015_12_13_042945_6506526', SKIP, REWIND, NOUNLOAD, COMPRESSION, STATS...
December 13, 2015 at 2:39 am
We go travelling and take out a travel insurance, we insure our houses, our lives etc. but regularely fail to take even the most elementary measures when it comes to...
December 13, 2015 at 2:35 am
Jeff Moden (12/12/2015)
December 13, 2015 at 2:21 am
ThomasRushton (12/11/2015)
Grant Fritchey (12/10/2015)
Grant Fritchey (12/10/2015)
BrainDonor (12/10/2015)
Bought this one in Portland - designed to upset as many sci-fi fans as possible - http://fashionablygeek.com/t-shirts/trolling-shirt/
That is beautiful. The sad thing would be...
December 11, 2015 at 2:17 am
Quick suggestion, use CASE instead of IF
π
December 10, 2015 at 1:21 am
BrainDonor (12/8/2015)
Here's one I've never seen before - every thread on a full page of the search started by the same person.Someone is very busy.
Too busy for RTFM
π
December 8, 2015 at 4:24 am
hila.bar (12/8/2015)
December 8, 2015 at 3:15 am
Viewing 15 posts - 4,216 through 4,230 (of 8,761 total)