« first day (2257 days earlier)      last day (2605 days later) » 

2:32 AM
1
Q: How do you count the occurrences of an anchored string using PostgreSQL?

Evan CarrollIf I have a string in a column on a row in a table like this 1 2 2 2 2 2 2 How would I count the occurrence of a substring 2 inside the string. Assume nothing other than a space-delimiter of " ". For the purposes of this, let's treat the numbers as substrings Sample data CREATE TABLE foo ...

 
2:48 AM
@AndriyM / @ErikE You guys are totally right. I tried to bust yyyymmdd hh... but could not:
0
Q: What date/time literal formats are LANGUAGE and DATEFORMAT safe?

Aaron BertrandIt is easy to demonstrate that many date/time formats other than the following two are vulnerable to misinterpretation due to SET LANGUAGE, SET DATEFORMAT, or a login's default language: yyyyMMdd -- unseparated, date only yyyy-MM-ddThh:mm:ss.fff -- date dash separated, date/time...

 
3:29 AM
@AaronBertrand Upvotes from me. :)
@AaronBertrand Funny the coincidence that Andriy and I would both ping you about this in a short time.
 
 
4 hours later…
7:45 AM
Good morning
 
Good morning
@ErikE Not denying the fact itself but I probably need to refresh my memory. Could you please clarify what occasion(s) you are talking about?
 
12 hours ago, by Andriy M
YYYYMMDD has always been safe for me (2000 and on) both with and without the time part.
I guess Erike assumed you pinged Aaron.
 
8:02 AM
Good morning
 
@ypercubeᵀᴹ I didn't, I was just contributing to the discussion. My impression was Erik was talking about an occasion where I pinged Aaron on the matter shortly before or after him, possibly outside SE, too.
Which I think I did, probably on SQL Performance, possibly more than once. I'm just not sure how recent that was and if Erik could indeed have some of those occasions in mind.
 
I did the ping. Aaron read the discussion and pinged you and Erike in the reply
 
You mean you pinged him this time. Erik specifically said that he and I pinged Aaron, so I'm thinking it's something else.
Anyway, I've had my misconceptions about the "YYYYMMDD + time" format too, just that they were not about its safety.
 
8:56 AM
@AndriyM I could be mistaken. I thought Aaron said something to me about you having told him about it recently. I don't have any more detail than that.
 
Fab
Hi, is there a SQLite-expert? :D
 
@Fab Not me but you can always ask your question and see if somebody can answer
 
9:16 AM
@ErikE Perhaps it was one of my comments on a blog post of his (at SQL Performance or somewhere else). I think I did leave one not very long ago.
 
@AndriyM do you have any evidence the wikipedia page is wrong? Why do you state yyyyMMdd hh:mm:ss.fff is not a valid format? — Evan Carroll 8 mins ago
@EvanCarroll I don't think @AndriyM suggested the Wikipedia page is wrong, just that he misremembered what it said
I've deleted your answer there — it's NAA in my view
 
NAA?
That deletion is absurd.
By any means this is exactly what was said, I mistakenly used to think that yyyyMMdd hh:mm:ss.fff was one of ISO 8601 formats, even was sure it was listed in the Wikipedia page, but eventually found out my mistake
The problem with that is that if you used to think that, it wasn't "mistakenly." yyyyMMdd hh:mm:ss.fff really is ISO 8601.
 
@EvanCarroll What Jack said. I merely said I'd thought it was listed on that page as one of valid ISO formats.
 
It is, because it is a valid ISO format.
So I'm confused how you mistakenly used to think that... you were right..
 
Fab
Can I ask technical questions here or is against the chat policies?
 
9:21 AM
You'd have mistakenly thought that yyyyMMdd hh:mm:ss.fff was NOT one of ISO 8601 formats.
 
@Fab only being rude is against policy
 
@EvanCarroll That specific format is not listed on that page, only the similar one with a T. That's what I meant to convey.
 
and not explaining joke at great length
 
@AndriyM can you explain the use of "mistakenly" there?
@JackDouglas what is NAA and how do you feel that's it's not a valid contribution to the question. I'm totally lost at what's going on here?
 
@EvanCarroll It is not valid ISO without a connecting 'T', but the question is not about ISO, it is about date format ambiguity.
 
9:24 AM
That's not true though.
 
@EvanCarroll link?
 
It is valid ISO without a connecting T, and that's what the question is about.
Respectfully, it's in my question I both quote RFC 3339 AND provide a screen shot of the spec.
 
@EvanCarroll At first I thought I saw that format among the valid ISO formats on the Wikipedia page, which made me think that format was an ISO format. Later I discovered that the format is not there. I concluded that my previous opinion was mistaken. That's what "mistakenly" means in my comment.
 
On what basis did you conclude that your previous opinion was mistaken? How did you discover that you were wrong?
 
If you're happy and you know it clap your hands clap clap
 
9:26 AM
Because, you weren't wrong, as far as I can see.
 
Fab
very briefly -> in **SQLite** if I create an External Content FTS4 Table based on a non-empty table
`CREATE VIRTUAL TABLE Tab_fts USING fts4(content="TabSource", a, b)`
would I be able to search something from it right after?
`SELECT * FROM Tab_fts WHERE TabSource MATCH 'hello'`
 
From ISO 3339,

> NOTE: ISO 8601 defines date and time separated by "T". Applications using this syntax may choose, for the sake of readability, to specify a full-date and full-time separated by (say) a space character. [...] ISO 8601 states that the "T" may be omitted under some circumstances.
 
@EvanCarroll Absence of that format on the Wiki page made me decide I was wrong to think previously it was an ISO format
 
I posted that link @JackDouglas. I'm quoting from that very paper.
 
9:29 AM
Why are you conflating RFC 3339 and ISO 8601
 
It's seriously the very next paragraph.
I'm not!
Look at the very next paragraph that you're reading.
 
2 mins ago, by Evan Carroll
From ISO 3339,

> NOTE: ISO 8601 defines date and time separated by "T". Applications using this syntax may choose, for the sake of readability, to specify a full-date and full-time separated by (say) a space character. [...] ISO 8601 states that the "T" may be omitted under some circumstances.
 
Here I'll screen shot it.
 
"From ISO 3339"
 
@dezso Except for exceptions
 
9:30 AM
the very next paragraph in iso 8601
 
@EvanCarroll yes, I see that, it's not what I was asking about. You mentioned ISO 3339 which is about tractors
 
RFC<>ISO
 
I'm quoting RFC 3339 which is a profile of ISO 8601 which explicitly says the same thing I'm telling you.
 
2 mins ago, by Jack Douglas
2 mins ago, by Evan Carroll
From ISO 3339,

> NOTE: ISO 8601 defines date and time separated by "T". Applications using this syntax may choose, for the sake of readability, to specify a full-date and full-time separated by (say) a space character. [...] ISO 8601 states that the "T" may be omitted under some circumstances.
"ISO 3339"
 
9:32 AM
Whatever, typo.
 
ok whatever, discussion over
1 message moved to Trash
1 message moved to Trash
 
morning
 
Does anyone have a SQL Server installation up and running
I have a quick question
 
@EvanCarroll sure
 
morning/evening
 
9:44 AM
Can you emulate any of this stuff in this question.
Does this work for you inside of MS SQL.
SELECT CAST(x AS timestamp)
FROM ( VALUES
( '20100330' ),
( '20100330 12:00:00.000' ),
( '2010-03-30 12:00:00.000' ),
( '2010-03-3012:00:00.000' ),
( '20100330T12:00:00.000' ),
( '20170313 23:22:21.020' ),
( '2017-03-13 23:22:21.020')
) AS t(x);
I'm using Rextester, I can't even get the results that the OP is getting.
 
timestamp is probably not what you think it is. msdn.microsoft.com/en-us/library/ms182776(v=sql.90).aspx
2
 
oh gawd.
that's horrifying. separate issue.
 
I'm sure that question get's asked 10 times a day.
that is soo weird.
why would the iso 8601 parser work differently in different locales.
what the hell is happening here. that question is horrible but something really weird is happening.
So microsoft has seperate code paths to parse a standardized iso 8601 date?
(which we established it is)
 
9:50 AM
Works fine in English, fails in French
I'm not sure what you're showing me but that display of data is making my head explode. =(
 
2 messages moved to Trash
 
What does "may be omitted" mean generally, anyway? Can it really mean the same as "may be replaced with a space"? Or at least is it conventional to treat the two as meaning the same thing specifically in computer technology?
 
@AndriyM yeah, and who are "the partners in information exchange"?
sounds to me like a very specific local exception in certain applications, not a general relaxation of the standard
 
@EvanCarroll changed to datetime and datetime2 instead and these two does not work.
( '2010-03-3012:00:00.000' ),
( '20100330T12:00:00.000' ),
 
@EvanCarroll The string format you are asking about is sensitive to language only when cast to the older smalldatetime and datetime types. This behaviour is preserved for backwards-compatibility reasons.
 
10:02 AM
@JackDouglas Sounds like that to me, too.
 
@PaulWhite Yeah, I was reading that 2 days ago. Seems like a good guide - if not the ultimate.
 
@ypercubeᵀᴹ you can always expect a bit of boasting from a Hungarian
 
@ypercubeᵀᴹ It's the best I'm aware of. The official documentation has been changed based on it, for example.
Dates and times are hard work.
We need to move to a system of decimal stardates as soon as possible.
 
@PaulWhite The horror.
 
10:08 AM
Need a change fast, at least before time travel in the other direction is possible.
 
I found the Persian calendar fascinating.
> The calendar is divided into periods of 2820 years. These periods are then divided into 88 cycles whose lengths follow this pattern:

29, 33, 33, 33, 29, 33, 33, 33, 29, 33, 33, 33, ...

This gives 2816 years. The total of 2820 years is achieved by extending the last cycle by 4 years (for a total of 37 years).
 
That seems like a sensible system.
 
@dezso Why is he referring to himself as being Swedish? ‘Being Swedish, I find it a bit amusing that Sweden had the weirdest implementation.’ (speaking of switching to the Gregorian calendar)
 
19
Q: In an ISO 8601 date, is the T character mandatory?

SCOI'm wondering if the following date is ISO8601 compliant : 2012-03-02 14:57:05.456+0500 (for sure, 2012-03-02T14:57:05.456+0500 is compliant, but not that much human readable !) IOW, is the T between date and time mandatory ?

Evan's on a mission :)
@AndriyM Presumably that section was contributed by Erland Sommarskog.
> I like to thank the following persons who provided valuable suggestions and input for this article: Steve Kass, Aaron Bertrand, Jacco Schalkwijk, Klaus Oberdalhoff, Hugo Kornelis, Dan Guzman and Erland Sommarskog.
 
10:23 AM
@AndriyM from what I see, it may be his father who moved to Sweden. Or whatever. The name is definitely Hungarian (I know Tibors only from Hungary and Slovakia, but 'Karaszi' is definitely not arch-Slovakian)
 
@PaulWhite Yes, I saw that, just didn't expect that such references would remain (or at least remain unquoted, as though he was speaking for himself).
@dezso A Hungarian Swede was my guess as well. Could be.
 
@AndriyM I'm only guessing.
 
@PaulWhite Could be it considered 'vandalism'?
 
He clicked the wrong button, I think.
I rejected as attempt to reply, which it clearly looks to me like.
 
10:28 AM
@AndriyM ok, I did the same
 
And I was a tad slower than Paul. Of course.
 
@McNets Of course.
 
 
1 hour later…
11:47 AM
quick question
I did this query
SELECT * FROM
(
SELECT t.*,
row_number() over (partition by t."Internal_reference",t."Movement_date" order by t."Movement_date") as "count"
 FROM (
      SELECT "Internal_reference",
      MAX("Movement_date") AS maxtime
      FROM dw."LO-D4_Movements"
      GROUP BY "Internal_reference") r
INNER JOIN dw."LO-D4_Movements" t
ON t."Movement_date" = r.maxtime AND t."Internal_reference" = r."Internal_reference"
) AS a
ORDER BY a.count DESC
 
the outermost query looks somewhat superfluous
 
I know Deezo
 
you did not ask any question, so I just gave unsolicited wisdom :D
 
lol
My aim is to try to have a similar version with access and without the row_number()
I did this
SELECT * FROM
(
SELECT
      t."Internal_reference",
      t.from_code,
      t.to_code,
      t."Movement_date",
      t.shipment_number,
      t."PO_number",
      t."Quantity",
      t."Movement_value",
      t."Site",
      t."Import_date",
	COUNT(t."Internal_reference") AS "count"
 FROM (
      SELECT "Internal_reference",
      MAX("Movement_date") AS maxtime
      FROM dw."LO-D4_Movements"
      GROUP BY "Internal_reference") r
INNER JOIN dw."LO-D4_Movements" t
        ON t."Movement_date" = r.maxtime AND t."Internal_reference" = r."Internal_reference"
but it gives me a different result
as the count, all of them, have 1 only
I had a look at SO
and it does not say a lot
first query is fine
I have the correct result
I'm unsure what I'm missing here
Should I put a question on SO?
 
@AndyK In your first query the ROW_NUMBER column is aliased as count, which, combined with the COUNT as the ROW_NUMBER's replacement in the second query, looks as if you think that COUNT and ROW_NUMBER are the same thing. Do you realise that they are not?
 
12:03 PM
@AndriyM yes I realized that ... now
 
@AndyK Do you want row numbers actually, like in the first query?
 
yes I need them AndryM
I just went for a break and I realized that my query could be something like this
 
6
Q: Row_Number() in Access select statement

user2770656I believe similar questions have been asked but I can't quite find a solution that works for me. I've got a database that I use to sort through digitised books and their pages and I'm trying to sort through several thousand pages that contain maps. Of the two tables I'm using the first lists all...

2
Q: Access query producing results like ROW_NUMBER() in T-SQL

user3030342Do we have ROW_NUMBER function in MS Access? If it has then please let me know any syntax for it as I am stuck here. I have tried forums but I get sql server syntax. Following is my query: select ROW_NUMBER() OVER (ORDER BY t.TID) AS uni , t.TSource as [Source], t.TText as [Text], ...

3
Q: Achieving ROW_NUMBER / PARTITION BY in MS Access

saikriHow to achieve the Row number over partition by in the MS access .I Google but cant find information can you please how to do this RowNumber Over(Partition by city Order By EmployeeID) My Data looks like this DOC_TYPE Ino 3a 1800xxc1 3b 1810xxc2 3c 1700xxc3 3a 1700xxc4 3a 1800xxc5 3...

There are others, I just don't want to spoil you the excitement of your discovering them yourself :)
 
Andry M, I don't like excitement T_T
:)))
I went for a
break
and I think I've figured out my issue
 
Good :)
 
12:13 PM
It is this part COUNT(t."Internal_reference") AS "cnt"
I need to have 2 count
something like that COUNT(t."Internal_reference","Movement_date") AS "cnt"
 
 
1 hour later…
1:32 PM
To whoever maintains SQLFiddle: I think, humbly, that the site is giving away too much on a few errors that can be reproduced by inputting a string (') in front of the parameters. eg. dbfiddle.uk/…
 
@NelsonCasanova sqlfiddle and dbfiddle are two different sites
 
@Lamak my mistaykeyo. dbfiddle
 
@JackDouglas ^^^
 
hey @JackDouglas, are you around?
 
@NelsonCasanova Thank you.
 
1:37 PM
@AndriyM No worries!
 
I mean, it would be enough if you had just said: MySQL is nasty!
 
@Philᵀᴹ Pretty sweet indeed...
 
Sorry @AndriyM I thought you had recently pointed out this issue about YYYYMMDD on another question.
 
although, generally attacks that manage to touch database level are all shell (webshell) based so it would be interesting to see a real scenario where a person would actually root through a comment on a mysql dump... dang, sounds dope
 
1:46 PM
@AaronBertrand I remember commenting about it somewhere on one of your blog posts, but I'm not sure when or where. Don't seem to have bookmarked the location, but I'll probably take another look, even if just to satisfy my own curiosity.
 
@PaulWhite I updated my answer to reflect this, thanks.
Also, for the room, Tibor is definitely Swedish, or at least he has lived in Sweden for the ~20 or so years I've known him, though I am sure people are right about name origins.
 
@AaronBertrand and he does not list Hungarian as a language he speaks
 
Right. My name is Bertrand but I don't speak French.
I've been to France and Quebec, but I am not from there. I have heritage that dates back to France but in the 1500s.
 
@AaronBertrand I think I've saw you at least write in french ;)
 
@Lamak passable, maybe, but probably only to make a point. :-)
 
1:56 PM
oh, I just meant this type of french:
Jan 25 at 17:58, by Aaron Bertrand
Pardon my French, but he is determined to win a dick contest
 
Oh, yes, I do speak that kind of French on occasion. :-)
 
> Server Error in '/' Application.

Runtime Error
@AaronBertrand the best type
 
@Lamak maybe MVPs are not allowed to see that page
 
@AaronBertrand you're excused
 
2:05 PM
@Philᵀᴹ quickly checked, pg_dump (at least version 9.5.5) is not affected
 
2:37 PM
@NelsonCasanova Thanks, I appreciate the input. In this case I'm not sure I need to hide that — the schema and code will be on GitHub anyway, and it's useful to see the error. I've neatened it up a bit (dbfiddle.uk/…) and will add some custom error handling at some point. I've added some custom error handling to catch that particular case but only to make it more user friendly!
 
2:48 PM
My MVP profile said I spoke Afrikaans for a long time
 
3:38 PM
1
Q: Postgres: what index to use with lots of duplicate keys?

fooLet's make a few assumptions: a. I have table that looks like this: a | b ---+--- a | -1 a | 17 ... a | 21 c | 17 c | -3 ... c | 22 b. I have millions of rows with value a in the a column, similar for other values (e.g. c). c. Most of my queries will read all or most of the values...

@JackDouglas possible use case for Brin indexes? ^^
 
0
Q: Why and when should Read/Write Splitting in MySQL and PostgreSQL?

WoodenI am a fresher for database tuning, I am trying to learning improve my PostgreSQL database performance, So I search lots of articles in google There are many advices are Read/Write Splitting for MySQL, because of read will affect write. But when I reading PostgreSQL official documentation that ...

If someone interested.
 
@ypercubeᵀᴹ The part of the title that says "duplicate keys" is weird.
 
@PaulWhite I asked Adam a question and he asked me if I had heard of you
 
@ypercubeᵀᴹ yes, they do exist :)
it's just that the heap needs the right clustering
 
@JackDouglas I thought of a 3rd option, besides btree and brin, that's why I asked how many different a values.
Filtered indexes, one for each a value.
It would act like the B-tree, but less wide (a value not stored at all)
 
3:55 PM
@ypercubeᵀᴹ nice!
 
and another option: (a) INCLUDE (b) index. But they'll need to wait till September for that ;)
 
@ypercubeᵀᴹ what is INCLUDE?
 
@JackDouglas Similar to SQL Server's INCLUDE indexes.
It's like (a,b) where the index is only on (a) but the leaf pages have the b values, too (unordered).
Slightly less space needed than a (a,b) index.
If they have more columns in the table, an index on (a) INCLUDE (b,c,d) would make sense for queries similar to that he showed
I guess we could describe it as a btree index with a small heap (for each a value).
 
that's nice — it's a bit like GIN compression
 
4:30 PM
bye folks
 
@AaronBertrand Found it.
 
 
2 hours later…
6:07 PM
bhwahhaha
PostgreSQL on my cell phone.
Life is good.
You can now run a @postgresql server on Android with the newly created Termux package: packages install postgresql
 
 
1 hour later…
7:13 PM
@EvanCarroll which is your favorite linux distribution?
 
@McNets Anything that runs WINE. He can't do without Windows for too long ;)
 
@ypercubeᵀᴹ I've received my ssd primary disc, and I'd set a dual boot, Linux - Windows
 
I develop using Ubuntu but I've seen others using only Debian.
Or even Arch
 
7:29 PM
The question is that, at work, we only use Windows. But all my tools are located on VM. We need to maintain different compilers (C++Builder, VStudio 2008 & VStudio 2015). In fact I only use host machine for Office356, and eventually it can be installed on another VM. I'd like to install a light-weight linux version just to save memory resources.
 
@ypercubeᵀᴹ does this make sense to you? dbfiddle.uk/…
why is the 2-column index not larger than the 1-column index?
 
 
1 hour later…
8:44 PM
24 messages moved to Trash
I moved the prior messages to The Trash since the conversation is, again, totally off-topic. @ErikE - I appreciate that you made some great observations - if you want to debate like that, perhaps create a room where the rest of us don't need to see it. Thanks!
 
too much science DOING recently
 
Thanks @Max!
 
@JackDouglas my unequivocal pleasure
 
@MaxVernon unequinoctal, too
 
@dezso thank you. I had to look that one up, which makes it even more special to me!
 
8:59 PM
@MaxVernon Understood.
 
thanks
 
@JackDouglas Sorry, Jack.
@MaxVernon My apologies.
 
@ErikE it's not your fault. I've done the same thing previously.
I now realize it's a waste of time.
 
@ErikE We understand the temptation you face
 
@MaxVernon I made it up first (having learnt Latin helps when you want to sound scientific), then turned out the word already existed
 
9:01 PM
@dezso very cooool
 
@MaxVernon Oh you mean like just 6 days ago... haha. Ok thanks for the comfort.
 
@ErikE yah... and no problem!
 
9:24 PM
@JackDouglas I guess it's because the rows are few and the column very narrow. It shows when I put 5 characters: dbfiddle.uk/…
It probably has to do with rows (in tables and indexes) using multiples of 8 bytes.
The int fits at 8. int+1char fits at 8, too.
 
10:01 PM
Hello everyone
Let's talk about something not-divisive.
=P
 
How can I simulate a cross apply rextester.com/SHVY39269?
 
CROSS JOIN LATERAL ?
 
on mysql?
yep
 
10:17 PM
not sure if MySQL has that syntax
I doubt it
 
not lateral, but cross join works fine
 
@ypercubeᵀᴹ "poor man's CROSS APPLY". ;)
 
10:58 PM
I like those problems.
I wrote a self-post somewhere on dba.se about a Poor Man's Row Number in PostgreSQL from the pre-window functions days
those were some really clever solutions
 
11:22 PM
If you're working on a self-answered problem, can you post it and delete right away and come back later and the undelete it when you're done?
Is there any downside to that?
 
I'm not sure if there is a limit time for deleted answers.
 
@EvanCarroll Are you talking about deleting the question or the beginning of a self-answer to a question that remains visible?
 
Deleting the question
I want to be sure I know what I am asking and answering on it.
 
I don't see the advantage over composing the question and answer at the same time?
 
If I make a mistake in the question, i'm not wasting other people's time
 
11:30 PM
But you're aware you can work on the question and its answer at the same time in the editor (by ticking the Answer your own question checkbox)?
I mean, I don't see a problem with doing what you say, it just seems a bit roundabout.
(Having a deleted answer to a visible question is a bit more disruptive. I'm not a fan of that - every edit to the deleted answer bumps the question.)
 
Right, so delete the question?
working on it in the browser is great, but it's getting long and I'm worried about losing it so I have to back it up or post-it-as-deleted.
I'll just save state in gnote or whatever
 
I sometimes keep a backup in a text editor yes.
@EvanCarroll Ok do that if you like. I'll let you know if it causes an issue or if we'd prefer you not to do that for whatever reason I can't think of in advance.
 
seminar is over
 
why is row_number() taking this weird values?
 
Paul, I got a workaround to that issue around applying a function (such as DATEADD) to a sorted column but SQL Server no longer considering the data to be ordered, if you're interested
@McNets that looks like a bug to me
don't know if it's in dbfiddle or vNext
maybe it's not a bug
 
11:39 PM
@JoeObbish How did it go? What was the context for the top (100) sort thing? If <= 100 would ever be slower?
@JoeObbish Sure.
 
works on SQL Server 2016? weird
 
if I change to sql server 2016 it returns an error message
Msg 245 Level 16 State 1 Line 13
Conversion failed when converting the varchar value 'Not Specified' to data type int.
 
@McNets try my link?
 
a cache issue?
 
@PaulWhite Adam is extremely good at explaining difficult concepts
 
and simple concepts too, I suppose
A friend and I teach an internal SQL performance class
inside the company that we work for
so I was blown away from that perspective too
as in, "wow, he explained that so much better than we do"
to be honest I was disappointed in the level of the class
I thought it would be a higher level. The one you described may have been the all day one about parallelism. I did try to ask as many questions as seemed reasonable though
 
Sorry my mistake
 
did feel self-conscious about it
@McNets were you able to get it working on 2016?
the top N I need to investigate further
Adam had an example of a sort that spilled to disk
 
@JoeObbish yes, I've used your link
 
but it was a TOP 1
that still doesn't make any sense to me
you might explain it in your article. I didn't have time to read it properly
but I don't see how it can't be a bad implementation of the operator
for the sort issue, Adam said that he has used CLR functions
I might not get the details quite correct. But you mark the CLR function as preserving order. Then you can use it as a substitute for DATEADD or whatever you need to do. He did say that he spent a lot of time struggling with that same problem
@McNets check out this one: dbfiddle.uk/…
 
11:50 PM
@JoeObbish Thought it would be higher level - does that mean you thought it would be more detailed or less?
(Higher level can mean simpler or more technical - English is so ambiguous!)
 
I think what bothers me the most about this dense_rank() problem is that is struggle to explain it. I bet math has a name more specific than "sequence offsets." Maybe I should write to numberphile
 
@EvanCarroll You're talking about the gaps-and-islands thing?
 
yea
=(
 
@PaulWhite good question, I see that was ambiguous now
hoped for more detailed/deeper
 
@JoeObbish Yeah it's a problem with workshops, especially SQLSat. Chances of getting attendees that will genuinely benefit from a level 500 talk is pretty small.
People often overestimate the level they're at.
@JoeObbish A TOP(1) won't spill to disk, if the 1 is a literal anyway. Perhaps you could share a repro at some stage.
@EvanCarroll I'm not aware of a neat term for it. People often use analogies like Olympic medals.
 
11:56 PM
@PaulWhite Yes, I understand what you mean. I think that his content made a lot of sense for the people in the room. It was a pleasure to attend the seminar but I couldn't help but feel some disappointment
 
@JoeObbish I vaguely remember a moderately complex/hairy setup where an unsafe clr aggregate wrote rows to a shared memory structure, which was then used by a streaming function with the ORDER property. GUID as a key if memory serves.
 
Which level do you think I'm at when it comes to query performance? you are free not to answer of course
 
@JoeObbish 450?
It's all relative of course. There's always people that know more than any of us.
 
Indeed. I love being humbled from time to time
 
Happens to us all, I promise you.
 
11:59 PM
Any advice for finding good 400-500 sessions/seminars? Is the pass summit all there is?
 

« first day (2257 days earlier)      last day (2605 days later) »