Viewing 15 posts - 1,246 through 1,260 (of 1,419 total)
What you posted is not valid json. The elements of SecondaryData should be in array brackets.
{
"odata.id": "0001",
"MediaId": "0001",
"SecondaryData": [
...Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
December 4, 2019 at 7:04 pm
Yes there are / will be additional tables where locations and other things will be stored and yes Primary Keys will be introduced as well.
We have literally no choice...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
December 4, 2019 at 4:09 pm
This should come with a warning though. If there are repeated 'docdata' dates within a partitioning window, then this code will not produce correct results. If it's possible to implement...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
December 4, 2019 at 2:43 pm
select
t.*,
iif((t.totalinvoice+sum(t.totalreceived-t.totalinvoice) over (partition by receipt_nr order by docdata))<0,0,
iif((t.totalinvoice+sum(t.totalreceived-t.totalinvoice) over (partition by receipt_nr order by docdata))>t.totalinvoice,
t.totalinvoice, (t.totalinvoice+sum(t.totalreceived-t.totalinvoice) over...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
December 4, 2019 at 1:51 pm
Does this produce the correct remainder column?
select
t.*,
sum(t.totalreceived-t.totalinvoice) over (partition by receipt_nr order by docdata) remainder
from
#temptab t
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
December 4, 2019 at 3:12 am
Yes, unfortunately it's absolutely not feasible to make changes to the OLTP System where data is inserted initially, it's an 3rd party ISV. All we get is some CSV...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
December 2, 2019 at 8:57 pm
the funny part is: If you look at the OLTP DB and their flow it would appear valid (as in: there seems to be no real checks) and when...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
December 2, 2019 at 1:53 pm
Ok - Joe Celko. Good luck.
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
December 1, 2019 at 2:57 pm
Identity() is a piece of automation that solves a set of tricky problems for you. Choosing not to use it is tantamount to saying you can do it better. Well,...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
November 30, 2019 at 3:38 pm
How would I approach checking the OrderNumbers for validity within the steps so an item in "AU" and locked cannot appear at a different site as next record, same...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
November 29, 2019 at 6:30 pm
The S in SCD is "slowly" so I don't see much benefit either. Also, afaik this feature is not available in SQL DW.
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
November 28, 2019 at 3:25 pm
Unless you are required to do this by law, it's more trouble than it's worth. If you absolutely have to do it, I would use a SEQUENCE and run...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
November 27, 2019 at 9:38 pm
Either by querying your own table or by storing the maximum sequence per day somewhere. Fyi, this is really not a good way to handle keys and is not recommended. ...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
November 27, 2019 at 8:10 pm
I don't see where you used a GUID either in the original post nor here as a part of the formula. To be sure, what you did with the...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
November 27, 2019 at 6:46 pm
With 550 columns it's not possible to test every combination of 2 or more columns to see if they are unique. It's a combinatorial problem with a search space...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
November 27, 2019 at 3:36 pm
Viewing 15 posts - 1,246 through 1,260 (of 1,419 total)