Viewing 15 posts - 4,831 through 4,845 (of 59,101 total)
Invoice line items can have a ship date
Only with a bad data model. Parts from the same invoice line could be shipped on different dates. You...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2021 at 6:22 am
I don't see the need for all that, this is much simpler:
SET @ytdfrDate = DATEFROMPARTS(YEAR(@frdate) -
CASE WHEN MONTH(@frdate) < 4 THEN...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2021 at 6:03 am
Bruin wrote:With the same Line,subline?
Look at the PK you've chosen. IMHO, only the first 3 columns of InvoiceNbr, Line, and SubLine should make up the PK.
I'm more confused...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2021 at 4:53 am
unfortunately it is not something simple that T-SQL can handle. There are complicated logic to calculate stop corners according to time and direction of the bus etc, that is...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2021 at 4:48 am
SSIS only has one execute task that calls the web service. I run today, there are 2000 routes to process, it runs about 8 hours on dev, and 10...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 18, 2021 at 12:03 am
Ok... assuming the following requirements...
In...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 17, 2021 at 11:28 pm
Yes, 3226. My bad on the typo.
It is a third party backup which I've looked at their documentation to see if there is a setting to prevent writing to...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 17, 2021 at 9:11 pm
there are LineNo, itemNo and qty fields in one table, I want to the accumulative qty (totalQty) for each item and want to the totalqty shown as below picture,...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 17, 2021 at 9:02 pm
Phil Parkin wrote:DECLARE @FRDate DATE = '20210228';
DECLARE @newFRDate DATE = DATEFROMPARTS(YEAR(@FRDate) - 1, 4, 1);
SELECT @FRDate
,@newFRDate;+1000
Would agree - except the...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 17, 2021 at 8:49 pm
however dev and test have exactly same databases and application
That never turns out to be the truth. At the very least, they live on different hardware, they have different...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 17, 2021 at 8:11 pm
With the same Line,subline?
Look at the PK you've chosen. IMHO, only the first 3 columns of InvoiceNbr, Line, and SubLine should make up the PK.
--Jeff Moden
Change is inevitable... Change for the better is not.
August 17, 2021 at 7:59 pm
The windows teams have a nasty habit of installing SQL Server on the "C:" drive. They have the same nasty habit for the page file, which really needs to have...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 17, 2021 at 7:52 pm
I have found that just putting that together will often lead to a solution or helps identify the actual issue.
Heh... PREACH IT BROTHER! 😀
--Jeff Moden
Change is inevitable... Change for the better is not.
August 17, 2021 at 5:46 pm
Answering Post by Jeff
"Two tables (one of existing data, one for new data) would be great."
Are you absolutely sure that you want to include the invoice date and the...
--Jeff Moden
Change is inevitable... Change for the better is not.
August 17, 2021 at 4:06 pm
DECLARE @FRDate DATE = '20210228';
DECLARE @newFRDate DATE = DATEFROMPARTS(YEAR(@FRDate) - 1, 4, 1);
SELECT @FRDate
,@newFRDate;
+1000
--Jeff Moden
Change is inevitable... Change for the better is not.
August 17, 2021 at 3:49 pm
Viewing 15 posts - 4,831 through 4,845 (of 59,101 total)