« first day (4831 days earlier)      last day (30 days later) » 

12:47 AM
@PaulWhite glad you approve
 
 
2 hours later…
2:25 AM
@ErikDarling 😳😳😳
 
 
6 hours later…
8:37 AM
@Criggie It's not just about dairy though. Another reason that the sheep population dropped, was due to a new regulation in the EU that forbid the import of lamb from just one country. As a result the need for N.Z. lamb dropped on the international market and the N.Z. farmers had to reduce the sheep population.
As a result there was no excess lamb on the N.Z. market and the prices for lamb in N.Z. sky rocketed, which had the side effect that N.Z. families were no longer able to afford a lamb roast on Sunday.
or so I was told
 
9:28 AM
One person was told to stop growing sheep and the others just sort of mindlessly followed along
 
9:49 AM
Does one grow sheep?
 
10:07 AM
Of course
Well, not any more
 
I thought it was called "raising sheep". But I'm not a native so I've asked for clarification
 
That parses too
As does, "farming sheep"
I find, "growing sheep" preferable
 
fair enough, thank you
 
an invoice will not be sent this time
 
10:24 AM
I appreciate it
 
That's paying invoices talk
 
🤐
 
10:41 AM
Before anyone asks, your nice xml chat became ephemeral because you both know better
 
10:53 AM
@ErikDarling In some cases yes, but not every byte can be converted in every collation. I suppose it might work if you use a binary collation dbfiddle.uk/AtRbfkzB it's just messy. SUBSTRING works on varbinary there is no reason why STRING_AGG couldn't
 
11:33 AM
@Criggie Oh, I thought it was NZ slang for something. I guess it was face value then :D
 
 
1 hour later…
12:56 PM
@Charlieface but... just don't try to render the bytes then. that's what hex and base64 are for dbfiddle.uk/VExiwtQL?hide=8
@SeanGallardy when can we get base64_encode() in on-prem versions pleaseandthanku
 
1:20 PM
@PeterVandivier xml reigns supreme once again
 
Wordle 1,012 3/6*

⬛🟨🟨⬛⬛
🟨🟨⬛⬛⬛
🟩🟩🟩🟩🟩
 
Wordle 1,012 6/6*

⬜⬜⬜⬜🟨
🟨⬜⬜⬜⬜
🟩🟩🟩⬜⬜
🟩🟩🟩⬜⬜
🟩🟩🟩⬜⬜
🟩🟩🟩🟩🟩
Wife did it in two today
 
1:35 PM
@PeterVandivier It might happen!
 
0
Q: How does a NULL value get created in the various DBMS?

Andrea NerlaI'm wondering if the creation of a NULL value is standardized across the various DBMS and, if not, how it differs across them.

i can't find anything academic/agnostic on null bitmaps
if anyone knows of anything like that, it would be a good general answer
 
@ErikDarling there's an old Aaron Bertrand SO answer that seems to imply convert() can do varbin->base64 conversion but dbfiddle was bombing out on it and i didn't care enough to start my localhost sql server and try it out ¯\_(ツ)_/¯
 
at least for row stores
@PeterVandivier link?
 
2
A: Convert a hexadecimal varbinary to its string representation?

Aaron BertrandDECLARE @x VARBINARY(64); SET @x = 0x4b78374c6a3733514f723444444d35793665362f6c513d3d; SELECT CONVERT(VARCHAR(64), @x), SUBSTRING(CONVERT(VARCHAR(64), @x, 1), 3, 64); ----- style number is important ---^ Results: Kx7Lj73QOr4DDM5y6e6/lQ== 4B78374C6A3733514F723444444D357936653...

@PaulWhite ✋
@HannahVernon roadkill frog
 
1:42 PM
yea, the standalone example works. but i couldn't get it working over a table
and like i said... didn't care enough to try more than a couple syntax variations
 
what a little creep
 
1:55 PM
@PeterVandivier db<>fiddle just isn't interested in displaying a character with code 0x00
 
from Aaron's answer though, i thought that was meant to display the base64 encoding - not the rendered ASCII :\
misreading on my part
quel surprise
 
quelle
anyway
 
my surprise is masculine kthx
 
strings were just this huge mistake
@PeterVandivier oic
 
oh lollllll the literal ASCII of that varbinary string in Aaron's answer is itself a base64 string
cheeky
 
2:00 PM
traps for the unwary
or the unfamiliar with beaker's sense of humour
 
😂😂
yea i was wondering wtf was up when i read that
like... no way have i never realized it's that simple
oh weird... it's actually the premise of the OP
turtles strings all the way down
 
Wordle 1,012 6/6*

⬛⬛⬛⬛⬛
🟩⬛⬛🟨⬛
🟩🟩🟩⬛⬛
🟩🟩🟩🟩⬛
🟩🟩🟩🟩⬛
🟩🟩🟩🟩🟩
 
@PeterVandivier every day's a little voyage of discovery and wonder
tales to tell the grandchildren
 
@PeterVandivier yeah I would just convert it back to varbinary anyway (not sure why you would touch string representations such as base64).
 
weren't you asking how to string_agg() them?
 
2:15 PM
But I don't know for sure if STRING_AGG works on weird characters. It seems to, with a binary collation, but I don't know.
I was asking if you could aggregate binary not strings.
 
you must first string before you can agg
it's right there in the name
3
 
SUBSTRING has the same naming argument and that's not true for it. There's no reason why you shouldn't be able to aggregate up binary data as varbinary rather than strings.
You take say 6 rows of varbinary(16) and make varbinary(96) out of it.
 
expecting consistency from SQL Server is the road to disappointment
 
is the road to disappointment on the map for the voyage of discovery & wonder?
 
quite
I feel kinda sorry for them when they start to fill some of the obvious gaps like binary and bits. It only highlights the rest of the missing things
I mean, of course you should be able to aggregate binary
But you can't
Hence strings
 
2:20 PM
@ErikDarling SQLite doesn't seem to use null bitmaps sqlite.org/fileformat2.html#schema_layer
 
It's inefficient but so long as the character encoding you're using has an entry for all the code points, it should hang together ok
It would be wrong to say these things get heaps of testing though
 
clusters of testing perhaps?
 
tested in production as all the best things are
 
@PaulWhite So COLLATE Latin1_General_100_BIN2 is enough?
 
2:24 PM
@Charlieface eh
 
@Charlieface I really wouldn't want to speculate. It's all so horrible all the way down.
One is never quite sure exactly when the conversions occur
Database collation is probably important but ick ick ick code pages and whatnot
It's almost impossible to use precise language about all this
I know it drives Solomon nuts
Let's not even think about what happens in SQL Server on Linux
Not that anyone uses that
 
I wonder how well AT TIME ZONE works on Linux
 
I'm surprised you don't run Linux
 
I could try it, but I'm on vacay
 
Could only assist your efforts to break SQL
 
2:30 PM
I do have a SQL Server on Linux environment on my home network, and it mostly works great.
 
> mostly
also, ofc u do
 
^^^^^
 
I wonder if Microsoft runs Azure SQL on Linux. It wouldn't surprise me.
 
To save on licences?
 
2:32 PM
Hahahaha
Yes
Lol
 
I do wonder about you sometimes
 
Oh I know, and you're not the only one
 
Might just be a little out of phase with reality
Temporally maladjusted or something
 
Did you know birds aren't real
 
For sure
Everyone knows that
 
2:35 PM
@HannahVernon Nope
 
Exceptionally weird transcript so far today
I need chocolate
 
chocolate frog
 
Even has Paul's hat
 
I wonder why it has fairy wings though
The prompt:
> an illustration of a chocolate frog
 
2:45 PM
maybe the frog is just getting back rub from a fairy
 
AI idea of a chocolate fish
We're doomed
 
Mmmm tasty
 
A chocolate fish or choccy fish is a traditional confectionery item in New Zealand, and in New Zealand culture is a common reward for a job done well ("Give that kid a chocolate fish").Chocolate fish have a conventional fish-shape and a length of 5 to 8 centimetres (2.0 to 3.1 in). They are made of pink or white marshmallow covered in a thin layer of milk chocolate with the ripples or "scales" on the fish created simply by the fish moving under a blower; this slides the unset chocolate back, creating the illusion of scales on the fish. Several manufacturers make the fish; the most well-recognised...
Context arrives for the needy
 
@PaulWhite Yummy
 
2:50 PM
@PaulWhite yeah sounds delish
 
Why does my house have no choc fish in
This is hopeless
 
Biggest oversight
 
Stupid country can't even buy them at 4 am
 
what are you doing awake at 4 am?
 
talking about the lakh of choccy fish
please consult the transcript
 
2:53 PM
Hth
 
yes I might try a 24/7 supermarket if we fucking had one
that's so very H
 
Bing being helpful
 
y do u encourage it
always so damned chipper about everything
this is a crisis
 
I'm trying to trap it
 
ask it to run on Linux
 
2:56 PM
Just in case
maybe you need a book on choc fish
Also, see moorewilsons.co.nz/cadbury-chocolate-fish for what appears to be a reasonable wayto ensure you don't run out
I just went to Amazon.nz but it redirected me to amazon.com.au how absurdely rude of it.
Apparently NZ doesn't exist
@SeanGallardy presumably because Linux is a nightmare.
 
@HannahVernon Just has so many issues compared to SQL on Windows
Among other reasons
 
@PaulWhite have you tried moving to nyc
 
3:23 PM
@ErikDarling do they sell choccy fish
 
ofc
choccy everything really
 
3:43 PM
either of those would be acceptable
I could find neither at that link
looks like fake news
now I want a chocolate aquarium
 
4:06 PM
oh you want a specific brand
i see
paul is OPping me
 
 
4 hours later…
8:21 PM
P-cores run on choco fish, TIL
 
9:20 PM
E-core obviously run on ethyl
 
10:12 PM
C10H14N2
C8H10N4O2
CH3CH2OH
That should be nicotine caffeine and alcohol
If it’s not you can whatever and so forth
 
What’s the chemical code for crippling anxiety?
 
YUNOOK2
 
Can anyone get rid of the table spool in this dbfiddle.uk/zaXaafQy
MERGE didn't help, neither did various combinations of filters and check constraints.
Relevance:
0
A: Storing an arithmetic parse tree in SQL

CharliefaceAs I mentioned in my other answer, it is also possible to do this using a temp table. This is again likely more efficient and easier than using a recursive CTE. Note that the following solution is set-based where possible. The number of loops is only up to the max depth of the tree, not for each ...

 
Probably a Halloween problem protection, right?
> The query optimizer recognizes that this pipelined update plan is vulnerable to the Halloween Problem, and introduces an Eager Table Spool to prevent it from occurring. There is no hint or trace flag to prevent inclusion of the spool in this execution plan because it is required for correctness.
There - fixed this for you
https://dbfiddle.uk/fby8T1Pa
 
10:50 PM
@Zikato Yes appears so, well obvs if you introduce a blocking operator it won't need the spool. Point is to avoid it altogether: the child rows cannot be the same as the parent rows, but can't persuade the compiler of this fact.
 
11:09 PM
This might be relevant?
 

« first day (4831 days earlier)      last day (30 days later) »