« first day (819 days earlier)      last day (4066 days later) » 

JNK
8:00 PM
@Lamak its an old insult
 
@JNK very old
 
@JNK oh, didn't know about it
 
@Lamak An inference that one's mother is not very lady like because she wears foot gear supplied by the armed forces.
 
@MikeFal right, right
 
@MikeFal And she could possibly shit-kick you.
 
JNK
8:04 PM
nobody flag that
we are NOT OFFENDED
 
@JNK my flag finger has been triggered
 
@JNK so. tempted. to. flag. that. comment
never flagged anything on chat
 
JNK
also about that terrible answer, the dude is still unregistered
 
Phew, @JNK thanks - that was close! Could have been chat-banned for that!
 
JNK
I am not expending energy being overly nice to someone who posts terrible and inaccurate answers and doesn't even make an account
 
8:06 PM
@JNK look at that. Didn't realize it that an unregistered member could have a custom avatar
 
@JNK I"m trying to appear nice, after flagging 3 mods yesterday :)
 
just saw the "member for today" part of his profile
 
JNK
if you look at the top you can see UNREGISTERED too
that means he just gives a potentially fake email and gets to post
 
@JNK yup, I saw it
@ypercube sorry about calling you out previously.
@JNK let's effing bury him on downvotes then!!
On a side note, I think that the fact that a comment containing a curse was flagged and then deleted had the opposite expected outcome
 
JNK
yeah this is going to be bacchinalian now
 
8:10 PM
@JNK first time seeing that word in my life
 
JNK
it could be misspelled I didn't look it up
relating to Bacchus who was a god of wine and had some epic parties in his honor
 
@JNK yeah, according to google it is "bacchanalian"
 
JNK
there you go
 
@Lamak Right, Bacchanalia were the festivals.
 
Ah, I can post
Got chat banned!
 
8:15 PM
@Phil wut?
when?
why?
 
For something that had 6 stars on here!
 
what has been happening here!!!
 
@Lamak Someone is being vengeful?
 
@Phil oh, the six stars comment
 
I said "fuck, fuck, fuck!" last night when it was all kicking off. It got 6 stars on here because it was funny at the time
 
JNK
8:16 PM
@Phil did you seriously get flagged for that?
 
But got chat banned today!
Yes
Unbelievable
 
@JNK They really need to leave moderation to the in-house mods
 
@Phil bummer
 
@Phil ok, that's it, I'm calling the supreme gods of chat and telling them "NO MORE BANS TO REGULAR USERS HERE!"
 
A protest for @Phil's ban. FUCK FUCK FUCK!
 
8:18 PM
@Phil how long were you banned for?
 
Was a bot user that did it, so the message said. chat.stackexchange.com/users/-2/feeds
@Lamak No idea - been at work today. Less than 12 hours
 
JNK
I think that user implements bans based on non-mod users approving flags
 
Hello @WorldEngineer - I hope chat flags didn't send you here ;)
 
JNK
me too
I did just mention in the moderator room that we want to be left alone
and pinned it
 
uh-oh, it seems some of those comments brought some mods again?
 
user20683
8:21 PM
I didn't know what the Heap was
 
user20683
so I went and looked
 
user20683
I'll be going now
 
JNK
NP
 
@WorldEngineer no need, we are friendly, I swear!
 
@WorldEngineer Best mod award.
 
JNK
8:22 PM
they mean well
you see a flag and think something needs to be dealt with
 
@JNK so, there was a flag now?
 
JNK
I didn't see one
 
I didn't see one.
 
JNK
but they pop up and down fast so I donno
I just asked in the mod room if everyone would leave us alone in The Heap
and I think he/she just popped in to see what it was
 
@JNK Mod power. Jelly.
 
JNK
8:24 PM
so we can still have things validated by 10ks
and I'm just ASKING them not to, I can't stop anyone from doing anything
There's no "YOU SHALL NOT PASS" checkbox for the bridge into the room
 
@JNK I can picture you as a one red eyed gandalf
 
I'm sorry Dave, I can't let you flag that.
 
@MikeFal I'm sorry Dave, I'm afraid I can't let you flag that
 
who is Dave?
 
@ypercube Imaginary friends. Best leave them alone.
 
8:27 PM
@MikeFal arg! I was so close to writing that.
 
@ypercube the guy from the movie. (From wich @JNK took inspiration for his avatar)
 
@ypercube From 2001 A Space Oddysey
 
@ypercube @JNK's avatar is HAL from 2001.
HAL says these sort of things to Dave.
 
Ah, I should see this movie again.
 
8:29 PM
@bluefeet Nice use of
 
@FreshPrinceOfSO ha, thanks
If people see it maybe they will use it
 
JNK
if the same individual comes and validates a flag then I'll speak to them
 
@bluefeet Concur. IMHO, at best the comment should probably stay for a few hours and get eventually fixed up. SO/SE does allow us to improve answers after all.
 
@RichardTheKiwi yes, and there is sqlfiddle if you don't have access to a database engine
 
Interesting...
6
Q: Howto view deleted posts <10k rep

juergen dHave you ever wanted to view a deleted question even if you don't have the required 10k rep for it? All you need is the link: Take for instance a question from the deleted meta questions archive like Envelope lighting up arbitrarily and unpredictably. Take the link: http://meta.stackoverflo...

 
8:37 PM
But the guy's got some skills, I'll give him that. Half of a 6-digit rep in barely 15 months.
 
@RichardTheKiwi might have skills but has an attitude that is unfriendly
 
@RichardTheKiwi yes, he is quite knowledgeable about sql, but I think that that makes it kinda worse that he some times doesn't take the time to polish his answers
 
JNK
it does make it worse
 
but that impression might come because he frequently posts an answer when I'm still in the middle of posting one, I may be jealous ;-)
@JNK "some times doesn't take the time" sigh I need to read what I'm writing before posting
 
@Lamak I still feel he just vomits answers left and right and most are code only
 
8:44 PM
@bluefeet yeah, that might be true. But I'm guilty of posting code only answers myself (though I tend to test them first)
 
@bluefeet I don't disagree with that, at all
 
@bluefeet And, if you get past the somehow abbrasive language, I have the impression that he is quite reasonable. Might be a language barrier. I do remember some confrontation between you and him, and I think that you were in the right
 
JNK
@Lamak he made a comment about someone posting a pivot answer before her I think
 
@JNK He made that comment plus others in the past
He just comes across as rude
 
@JNK yes, I remember it, and actually posted another comment to tell him about it
 
8:48 PM
@bluefeet Who are you talking about?
 
@Lamak Maybe he's a young person who read too much into this answer programmers.stackexchange.com/a/20491/15192
 
@FreshPrinceOfSO gordon
 
@bluefeet Don't think I've ever interacted with him
 
You have a high rep, @bluefeet Does that sit you in a 100k+ job?
 
but, - oh dear lord I'm playing devil's advocate- he may have wanted to say that comment as a compliment to the user, because he acknowledges @bluefeet's skills
@GordonLinoff Not so hard to do when posting a code only answer. Not that this answer isn't upvote worthy, but the comparison is just not fair — Lamak Mar 21 at 20:19
That was my response to him at the time
@JNK and he said this afterwards:
@Lamak . . . when I wrote that comment, both answers had just the code. The other answer has been modified and much improved with explanation (as is usually the case for bluefeet). — Gordon Linoff Mar 21 at 20:21
 
8:52 PM
i suck at sql ..
 
@RichardTheKiwi I wish
 
I'll admit I post answers first, improve later. Maybe in a rush I don't test it (rare), but then I do hope I come back and clean up my poo
 
My high rep has come from lots of pivot questions
 
@bluefeet Imagine if you answered UNPIVOT questions too!
 
JNK
@RichardTheKiwi well hopefully you aren't one of the ones who cries when you get downvoted if that fast answer is wrong
 
8:53 PM
@RichardTheKiwi I do both but my preference is pivot
 
@bluefeet lots of pivot answers, actually ;-)
 
@bluefeet Did I leave out the smiley? :)
 
@Lamak just did another one 4 answers in one
0
A: SQL Server 2012 PIVOT without aggregate

bluefeetYou can still use an aggregate function to pivot the data. There are several ways that this can be done. Aggregate with CASE: select name, max(case when category = 'A' then category else '' end) CategoryA, max(case when category = 'B' then category else '' end) CategoryB, max(case when c...

 
anybody interested?
Greetings,

My name is Rahul and I am recruiter at eTeam Inc. eTeam Inc is a global contingency staffing firm servicing fortune 1000 clients globally.We have an excellent job opportunity with one of our client.

eTeam is a professional services firm with competencies in Data Management, Business Process Automation & Professional Contingency Staffing Services. eTeam works for fortune 1000 companies and large system integrators.

Job Title: Desktop support
Duration: 6 Months
Location: Denver, CO & Louisville, KY
 
@JNK I think I got past that before Gordon was born onto SO
 
8:55 PM
DESKTOP FRICKIN SUPPORT
 
@bluefeet nevermind
 
@swasheck :))
you poor guy
 
@bluefeet just got another upvote from me
 
@Marian eh ... another learning moment for the bayesian filter
 
@swasheck In louisville, kentucky no less
 
8:56 PM
@swasheck I got a message last week from careers 2.0 for a php job. I don't even answer php questions
@Lamak too bad they don't count rep wise today. But they will for my gold badge
 
@bluefeet well, see?, you could have showed me that answer tomorrow ;-)
 
@Lamak oh well, no biggie
 
@swasheck I have some friends that are recruiters, they truly try to make a difference. But some are just retards :). Just spam everyone..
 
JNK
@SimonRigharts Louisville is nice, we have an office there
I had a great visit when I went to that office
parts of town are sketchy but 4th street is great
 
@SimonRigharts you'd get to participate in the Kentucky Derby....or is that Lexington...always get those confused
 
8:58 PM
@swasheck That kinda mail should have perfect grammar. globally.We no space there?....*one of our client.* singular?
@bluefeet And me?, still struggling to get to 20k
 
@Lamak you will get it you are not that far away
 
@Lamak Struggling? :) Still fighting for rep?
 
@Marian nah, struggling with my laziness to post answers.
 
Is there a better approach to this question?
0
A: Detect "change of step" between rows in a db column using SQL query?

FreshPrinceOfSOPerhaps something like this? This will compare the current row's datetime to the next row's datetime. WITH cte AS ( SELECT ROW_NUMBER() OVER(ORDER BY dd ASC) rn, dd FROM sample ) SELECT a.dd, DATEDIFF(hour, a.dd, b.dd) hourDiff FROM cte a LEFT JOIN cte b ON b.rn = a.rn + 1 Result | ...

 
@Marian I want to get to 20k, but I see some questions that I can answer and then just say meh
 
9:02 PM
I just saw @JNK's answer. Can you pin it? Or..mod star it? So that any new mod / powah user reads it before he comes with trigger finger effect? :)
@Lamak I don't struggle it anymore. I just embrace it, mate!
 
Ugh this recursive is killing me
 
just in case some of you didn't see this earlier...
9
Q: Can we change the comment-flag system on The Heap chatroom?

Max VernonYesterday (April 1st, April Fools Day notwithstanding) we had some high-ranking members of DBA.SE banned from chat by moderators/10k users from other sites that did not take an appropriate amount of time to evaluate the situation. The Heap is a place where many 10k+ users hang out and talk about...

 
this is waiting for you @bluefeet
0
Q: combine multiple records into one line

user2237816I have a SQL Server 2005 table that records each step of a process as shown below ResourceID EventType Time ABC123 Job Activated 2013-01-08 10:01:31.000 ABC123 Download Complete 2013-01-08 10:03:32.000 ABC123 Job Complete 2013-01-08 10:07:42.000 XYZ789 ...

 
@Lamak mmhmmm
@Marian one of my best friends is married to a recruiter. super nice and tries really hard
this email was just sofa king stupid
 
@Lamak @AaronBertrand beat me to it
 
9:05 PM
@FreshPrinceOfSO Gordon to the rescue on that one
 
@bluefeet when has that stopped you from posting 4 other alternatives for doing that ;-)
 
@RichardTheKiwi K great. Didn't feel like reworking it. Had SQL Server in my mind from a previous question.
 
@Lamak I feel the same, too lazy sometimes. But then again, we have our stars that make a page long answer and I start to feel ashamed.
 
@Marian I feel your pain
 
@swasheck yep, same here. Some really are warmhearted and try to do their jobs well. Others just read some HR book and start shooting stupid questions :).
 
9:08 PM
my dev is so cute ... "why is my update so slow?" "because you're updating the index data" "that should make it faster, right?"
 
@swasheck varchar key? :)
 
@Marian mmmmhmmmmm
domain username ... we're moving domains
so it's somewhat legit ... but still ... at least he's a good listener and i 'splained page splits and b-trees
so ... Phil got banned?
 
@swasheck lol, and @Zane is going to be... despite the stars :-)
 
@swasheck yup
 
it appears stars don't protect you from getting banned
 
9:10 PM
for one of his comments from yesterday
 
@Lamak nothing, I answered
 
this is getting out of hand
so ... for how long is Phil gone?
 
@bluefeet never expected something else :-)
 
@swasheck he's back now, he was banned today
 
well, from now on when i see flags from the islam chat room i'm approving the flag and then i'm going in and flagging it again.
 
9:12 PM
@swasheck and he doesn't know for how long was he banned since he was busy in the morning
 
well usually 30 minutes is one of those language bans
from what I remember of reading all the story
 
everything outside of The Heap is offensive to me. FLAG ALL THE THINGS!!!!!
 
@MaxVernon saw and up-voted, but I'm not really sure what kind of answer you're expecting. Or from whom?
 
@swasheck So tempted to flag that comment.....
 
ok, I'm out for today. see you guys tomorrow. Follow @swasheck's example
 
9:14 PM
@MikeFal do it
 
@MikeFal sure not to star it? :)
 
@Marian Not really expecting any kind of answer. Thinking perhaps the StackExchange dev team will see it and consider it.
 
disco inferno
 
@MaxVernon Ah, I get it. Just raise the awareness?
 
@ypercube you around?
 
9:15 PM
yep
 
@MichaelFredrickson Your example of yesterday, with the LIKE, did you find an answer? :)
Was Paul's article useful to find your way?
 
@Marian LIKE, OMG
 
@Marian The article you gave me explained a lot of things that I didn't know...
@Marian But, I couldn't find a root cause for what I was seeing...
 
@swasheck Please, SQL-LIKE!
or what ever tag BF build today :)
 
@Marian Some details that I omitted yesterday... it's SQL Server 2005... and the table is a heap...
 
9:17 PM
Hmmm. My estimated rows is different in SQL plan explorer than in is in SQL sentry.
 
@Marian But, I fixed the issue by wrapping the statement in a parameterized sp_ExecuteSql... and it then used the indexes instead of scanning...
@Marian using "Fixed" loosely, because it was just a hack to get it working...
 
@MichaelFredrickson well I'm sure some row estimations are changed, as the same query that Mike or Max tried (not sure who made that query to AdventureWorks) returned different no of estimated rows.
@MichaelFredrickson well, as long as it doesn't bleed, it's a fix.
 
@Zane flagged
 
@Marian Good point... let me check the estimated row counts...
 
@Zane guess whom should you ask?
 
9:21 PM
Someone who is not in chat atm.
 
Am I wrong on this?
Still your answer just points at a link that shows what CLR/RegEx is. It is probably better suited as a comment than an answer. IMHO. — Aaron Bertrand 34 secs ago
 
SQL is giving me the estimate I'm expecting however plan explorer is showing me what the performance suggests.
 
@Zane But is now :D.
 
@AaronBertrand that was timely.
 
@Zane @ pings are global, so even if he's not in the chat room, he still gets the message ;).
 
9:24 PM
@Marian OK so... serialNumber like @criteria Estimated rows: 300K (every row in the table)
 
@MichaelFredrickson actually I've found it's usually at least an hour behind. I think there's some kind of queue mechanism.
 
@Marian serialNumber like '1234%' Estimated Rows: 4.9
 
@MichaelFredrickson I was sure about that..
though now we need a smart one to actually explain why. :)
 
@AaronBertrand IMHO You're right, and your answer has been accepted. I think the other answer is right too, since the asker said "For bonus points.." The guy got an upvote for his contribution. (He should elaborate - you won't get an argument - that's more of a quality issue)
 
@RichardTheKiwi while his contribution is helpful, it is not really an answer.
If I asked "and for bonus points, how do i do this using pivot" and you linked me to the PIVOT documentation, do you think that's technically an answer?
 
9:27 PM
@AaronBertrand Did someone say PIVOT?
 
groan
 
sorry, trying to keep the mood light
 
@RichardTheKiwi PS my comments have nothing to do with my answer.
 
@AaronBertrand I have a possibly quick question for you.
 
@Zane yep
 
9:29 PM
I have saved a query plan and am looking at it in both sql server and plan explorer.
 
I think the answer is: when you review a plan in SQL Sentry, you are reviewing the cached plan at the time of execution. When you generate an actual plan in Plan Explorer, you are generating a new plan.
 
I see.
 
I'm not an old time user of the Heap, but an oldie of DBA.SE. I, as Max said it, think that you shouldn't really shut the cowboys, even if they don't wear a tie daily.. Talking to naughty servers daily isn't really a poetry lesson. So please don't ban anyone for just dropping the F bomb or some other gentlemen's locker chat. Thank you! — Marian 1 min ago
 
But elaborate. Saved a query plan from where? Saved it how?
Opened it in SQL Sentry how?
 
@MaxVernon tried to add some (small) weight :-).
 
9:31 PM
@Marian Great!
 
@AaronBertrand it was sent to me by someone else. However I believe they did a right click save as once the query finished.
 
@Marian One last pointless factoid then I'll stop bothering everyone with this weirdness... it doesn't scan if I only select a few columns... but when I select *, then it scans with the parameterized like.
 
right-click save as where?
@MichaelFredrickson sorry to jump in (I haven't reviewed all of the transcript), but are "a few columns" covered by an index?
 
In SSMS on the execution plan .
 
Ok, can you send me the plan and tell me what is showing differently? Also can you tell me what build of Plan Explorer and what build of SQL Sentry? The codebase is the same, so if we make a fix in Plan Explorer, and you have the latest build of that, but your SQL Sentry client is a year old, you won't have all the fixes.
 
9:34 PM
@MichaelFredrickson yes, I saw that yesterday already. Curious as how in AdventureWorks even Select * used a seek.
 
@AaronBertrand will do as soon as I get the opportunity.
Have to fix the query he was troubleshooting first. Recursive is performing not so well.
 
@MichaelFredrickson Now, for @AaronBertrand's sake, you should've made it a real Q :-).
Now you'll have to explain again, he can surely help.
 
@AaronBertrand Ah... OK, plan reading fail on my part... when the like uses a parameter there is a seek, and then there is a separate scan on a different index than the one that is seeked that covers the few columns that are returned...
Good point... let me make this a real question...
Let me see if I can recreate it in a bastardized AdventureWorks...
 
@Zane ok. You know my e-mail address right? Plans and issues are always welcome there. Hopefully I can explain it. Estimated rows where? Coming out of a specific operator? Which type of operator? We do some corrections for certain operators (since SSMS totally underestimates certain scenarios by not multiplying by number of executions), but we didn't get them all perfect at the beginning.
@Zane So I suspect you have a fairly newish build of Plan Explorer but an old version of the SQL Sentry client.
@Marian SELECT * used a seek for what part of the query? Didn't that also add a lookup?
Eep replied to the wrong post because the chat window shifted
 
@AaronBertrand yes, of course. Let @MichaelFredrickson ask a normal question and you'll see all details there.
mainly he had a query with a LIKE where it behave differently when comparing to a @variable or a 'string%'. Though they both had the same value.
 
9:41 PM
@AaronBertrand from what I gathered by the performance of this query Plan explorer is correct and SSMS is underestimating. And yes it is one specific operator. I'll send you the plan tomorrow. Thanks in advance.
 
@Zane see? That was easy :-).
how's the new job?
 
@Marian different cached plans? Were there other textual differences in the query (and I mean anything - CaSe, whitespace, etc.)?
 
@AaronBertrand didn't see his plans, we only chit chatted here in the room. But textual differences yes, one was declaring a variable and using it, one was not.
 
dbcc freeproccache
dbcc dropcleanbuffers

declare @criteria varchar(50)
set @criteria = '1234%'

select *
from dbo.device
where serialNumber like @criteria

select *
from dbo.device
where serialNumber like '1234%'
serialNumber is defined as varchar(50) null in the table...
the index is just a non-clustered on serialNumber
the table is a heap
SQL Server 2005
 
I got thrown a question - Does SSSB queues use public/private keys? For routing and endpoint setup?
 
9:47 PM
First query is a table scan, second query uses an index seek / RID Lookup
 
@AaronBertrand if you want to dig it, our original chit chat is here:
yesterday, by Michael Fredrickson
Quick question: does parameterizing a like guarantee a table scan?
 
@Michael Isn't it a case of plan stability? The first one is stored for the text which ends with "like @criteria", knowing that the value for that param may change in the next invocation of the plan from the cache. The second one stores a plan for a SQL Statement that ends with 'like 1234%' which can use an index on serialNumber optimized to search for the prefix '1234'
 
@RichardTheKiwi Good idea... reversing the order of the queries still results with a scan on the parameterized like
Let me make this a real question so you guys can get rep for spending time on my silly problems...
 
@MichaelFredrickson it seems like a real question
 
@MichaelFredrickson We're just having fun, and they're not silly problems at all.
 
9:52 PM
My database is so messed up that I'm just afraid that it is super localized... SQL Server 2005 and a heap?
 
@MichaelFredrickson if we can get one high user to really explain, we'll all win.
 
@MichaelFredrickson Messed up databases are more common than you think :p
 
i was gonna answer that Q ... but then i got high
 
@swasheck :)) sorry
meant high end user :P
 
Re-reading @RichardTheKiwi's comment makes me realize I didn't understand it the first time so my reply made no sense... sorry about that...
 
9:54 PM
@MichaelFredrickson what is the index on? What other columns are in the table?
 
i have a really nasty query that is super local
 
@AaronBertrand CREATE NONCLUSTERED INDEX IX_Device_SerialNumber ON dbo.Device (SerialNumber)
@AaronBertrand There's about 40 other columns in the table...
 
For example, say SQL Server puts a plan of "seek on index against serialNumber, RID lookup" (or bookmark if you have a clustered index) for the query `select * from dbo.device where serialNumber like @criteria`
Then someone fires the same query (same SET settings etc) and uses `@criteria = '%A'` - you'd end up with the wrong plan
I hear you @Michael about that formatting in chat...
 
@RichardTheKiwi So what you're saying makes sense... but other people are reporting that using a parameter with like uses seeks as long as the value of the parameter is SARGable...
 
@MichaelFredrickson but it also depends on what plan(s) have been cached before it. Same behavior when you add OPTION (RECOMPILE)?
I think I'll need a full repro to even start to comment. However I am not installing SQL Server 2005 for this. And I hope you have a very good reason for leaving this table as a heap.
 
10:04 PM
@AaronBertrand I was going to suggest OPTION (RECOMPILE) too but it seems 2005 doesn't do anything with it. I have a varchar index on table clustered on an int column, and the parameterized query with OPTION (RECOMPILE) still generates a clustered index scan.
 
Ah yes, 2005, duh. So glad I don't have to deal with that on a regular basis.
If the code is in a stored procedure you could play with WITH RECOMPILE at the module level rather than statement level. Might not help but would be interesting to try.
 
I take it back. SQL Server is lying. Ctrl-M actual plan shows Index SEEK when OPTION (RECOMPILE) is in use. Ctrl-L estimated shows Index SCAN. Both after DBCC FREEPROCCACHE.
 
@RichardTheKiwi oh yeah I never, ever, ever even bother looking at an estimated plan. They're garbage.
@RichardTheKiwi Are you saying OPTION (RECOMPILE) makes a difference in 2005? Or are you on a 2008+ instance in 90 compatibility?
 
@swasheck I am now.
 
@AaronBertrand Microsoft SQL Server 2005 - 9.00.4035.00. It does make a difference.
(In one case)
 
10:10 PM
@ypercube i was trying to cut back on the amount of math i was doing in a query
 
yes?
 
sqrt(sample size * probability * (1.0 - probability) as a calculation for standard deviation
 
@RichardTheKiwi weird I thought OPTION (RECOMPILE) was added in 2008. Shows how long it's been since I've dealt with that...
I thought that statement-level recompile wasn't really available in 2005. Maybe it's statement-level recompile inside of a module that isn't possible in 2005 - all or nothing.
Egads I love modern versions of SQL Server. Don't have to think about all this stuff.
 
@AaronBertrand I was using SSMS 2012, but the query is sent to a 2005 instance
 
@swasheck What is "probablility" there?
 
10:20 PM
@ypercube simple smoothing ... count+1 / size+1
 
Sorry, I don't get the difference between count and size.
If we have a sample of 10 values, say from 1 to 10. The count is 10.
The size is?
55?
or you mean size=10, count=55 ?
 
10:34 PM
@swasheck?
 
@ypercube sorry
work fire
observed + 1 / size + 1 ... i'm counting words ... so it's observed occurrences of "word" in a corpus of words
 
@swasheck As in literal fire or metaphorical fire?
 
@SimonRigharts i wish it was literal. that would have been easier to handle
@SimonRigharts actual fire is easier than end user expectations
2
 
For actual fire: DR plan. For end users: Louisville Slugger.
 
So, size is number of different words (in a document)
and observed is total number of word count?
 
10:49 PM
@SimonRigharts that'd be nice
"Ypercube is such a nice, smart person. He is my favorite inhabitant of Greece. One day I hope to go back to Greece and spend more time in Athens."
occurrences of "Greece" = 2
total "size" = 29
(2+1) / (29+1) = p of future occurrences of "Greece" based on observed results, right?
 
ok
 
at any rate ... i tried doing just a STDEVP(wordcount) but because it's an aggregate and came back as NULL because of my grouping sets ... i was just going to ask if i was calculating on the correct data point.
g'night all. try not to get banned
 
I think they are confused
-1
Q: SQL Server 2008 pivot data

MonaI have query like this: `SELECT [/BIC/IORSVPTX] as Region, COUNTRY_ID, [/BIC/IOWCNTRY] as Country, [/BIC/IOC_TRLNO] as Trial, [/BIC/IOWQUAL] as ResourceType, case when [/BIC/IOWQUAL] like '%Supporter%' then 1 when [/BIC/IOWQUAL] like '%Monitor%' then 3 when [/BIC/IOWQU...

tagged with mysql?
 
Mean, median and standard deviation have meaning for the whole population or sample.
If you have the SUM(v) and the SUM(v*v) over all the values of the sample (and the sample size), you can calculate the standard deviation.
But if you have Nulls, I guess the STDEVP will come back as Null
Bye all for tonight
 
11:39 PM
OK, I finally made it a real question...
0
Q: Unexpected Table Scan with Parameterized LIKE

Michael FredricksonI'm experiencing an unexpected table scan on SQL Server 2005 against a heap table when parameterizing a LIKE statement... but when the same value as the variable is hard-coded, the expected Index Seek occurs instead. The issue only happens given this specific scenario... so I'm not confused as t...

 

« first day (819 days earlier)      last day (4066 days later) »