Viewing 15 posts - 676 through 690 (of 1,413 total)
A man goes to the doctor and says, "Doc, it hurts when I do this." The doctor's response: "Don't do that." What about not deleting the data within the transaction?
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 24, 2021 at 11:40 am
I think you're looking for something like this. The first CROSS APPLY 'cma_check(cnt)' counts the number of commas. The second CROSS APPLY 'wrd_check(cnt)' counts the number of words in the...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 23, 2021 at 8:40 pm
Yes I mostly agree with ratbak and I even narrowly agree with Joe. If you've got access to pro software then use that 🙂 The code provided does sort of...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 23, 2021 at 2:05 pm
The query could split the input into left and right strings based on the location of the comma. Then determine if the trailing character of the right string is a...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 22, 2021 at 11:59 pm
If the display order of the result set doesn't matter, using TOP(1) WITH TIES and ordering by the ROW_NUMBER
select top(1) with ties *
from #t1
order by row_number() over...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 22, 2021 at 11:06 pm
Regarding the specifics of trading scenarios it's just not my cup of tea. If there was a specific SQL question (or answer) without any lingo then maybe. But so to...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 22, 2021 at 2:52 pm
;with
loc_cte(loc) as (
select distinct location
from @tablom),
n(n) as (
select n
from (values...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 21, 2021 at 3:58 pm
Thank you for your responses Rob. It's an interesting story and your experiences with server code ring a bell which really resonates with me. Ha, more could be said about...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 19, 2021 at 4:08 pm
So you think MONEY is a bad column for storing MONETARY values and that an INT which stores PENNIES (CENTS in US), is better. Is there a reason...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 18, 2021 at 1:42 pm
Thank you for your qualified thanks, I think. You've been on this site for a long time so ok maybe something like this is helpful.
declare
@totalstake...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 16, 2021 at 1:02 pm
My apologies there was a mistake in the code. You're correct there shouldn't be duplicates as you described. In the 'xply_cte' CTE the 4th column contained an incorrect table alias. ...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 15, 2021 at 12:53 pm
It's not a good approach imo. It's not necessary or polite to call anyone out. For my part I'm not familiar with the terms and I'm generally uninterested in gambling. ...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 14, 2021 at 3:19 pm
You could maybe replace the whole WHILE LOOP'ing function with Eirikur's LEAD splitter. If this is SQL Server 2016+ you could use the built-in STRING_SPLIT itvf (since the order...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 13, 2021 at 8:23 pm
The query could be simplified, no? Maybe something like this
select top(1) p.AkcesAutoID
from dbo.podrobnosti p
join ro.fntStringsToTable('J') ltrs on ltrs.EvidenceLetter = p.EvidenceLetter
...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 13, 2021 at 7:44 pm
Here's another approach which uses a tally function to row multiply the 'Amount' column value(s) for both credits and debits. A similar approach to FIFO calculation recently won some...
Aus dem Paradies, das Cantor uns geschaffen, soll uns niemand vertreiben können
April 5, 2021 at 8:02 pm
Viewing 15 posts - 676 through 690 (of 1,413 total)