« first day (2528 days earlier)      last day (2330 days later) » 

5:07 AM
Anyone familiar with a prod environment that successfully deployed TF 4138 (disables rowgoals)?
 
 
2 hours later…
7:09 AM
good morning, evening and midday
 
 
2 hours later…
8:41 AM
evening and morning (or reverse)
 
Morning
Turns out this problem can be solved using variables too:
0
Q: compare two columns and remove duplicates in the same same table

A.RI have table like id | t1 | t2 --------------- 1 | a | b 2 | c | a 3 | a | e 4 | f | g 5 | c | c I want to compare two columns with each other to remove matching records and get unique values in each columns, like t1 | t2 ----------- a | b c | null null | ...

Only the question is closed now.
Somehow it was still unclear to people, even though it had been answered (and the answer accepted) by the time of the last vote.
I guess they were closing it from the Review and thus couldn't see the answer.
Anyway, can we reopen it?
 
8:57 AM
@AndriyM I voted before the edits and didn't think about retracting it in time
I'll vote to reopen
 
Thanks
I'll see if some of the OP responses can be edited into the question to make it clearer too.
 
9:16 AM
@AndriyM voted to reopen
 
@hot2use Thank you
 
 
1 hour later…
10:50 AM
Cast the final reopener.
 
Even as I was flagging the comment thread as no longer needed, a hero came and cleaned up everything.
Thank you, Mr Hero
 
I occasionally fail to do half a job
3
Great work btw @AndriyM
 
hello all, can someone help me in a quick qeustion?
i have the following db:
Employee(eid,ename,salary,did,classification)
dbudget(did,byear,budget)

and i want to find enames that have the same did in both employee and dbudget and that budget > 500,000
how can i do so?
select ename from Employee where Employee.did = dbudget.did and budget >500000 ?
 
Does that work?
 
nop
how can i correct it?
i think i need inner join, but i don't know how to use it
 
11:07 AM
Along the lines of table1 INNER JOIN table2 ON table1.some_column = table2.some_column
The Employee.did = dbudget.did condition in your query above would be the joining condition, and the other one would remain in the WHERE clause.
 
select ename from Employee INNER JOIN Employee on dbudget where budget >500000 ?
select ename from Employee INNER JOIN Employee on Employee.did = dbudget.did where budget >500000 ?
or should it be Employee.name from ... ?
 
Almost there. In this case you are supposed to join the two tables, not one table with self, so it's ... Employee INNER JOIN dbudget ...
 
select Employee.ename from Employee INNER JOIN dbudget where budget >500000 ??
one question mark lol
like that?
 
You forgot the joining condition (the on clause). Your penultimate attempt was almost correct, you only needed to replace one of the Employee instances with dbudget.
select ename from Employee INNER JOIN dbudget on Employee.did = dbudget.did where budget >500000
 
ohh i see
 
11:21 AM
Although qualifying columns names with table names is also a good idea, so perhaps like this: select Employee.ename from Employee INNER JOIN dbudget on Employee.did = dbudget.did where dbudget.budget >500000
 
thank you very much!
 
A further improvement would be to use short aliases for tables (may improve readability): select e.ename from Employee AS e INNER JOIN dbudget AS b ON e.did = b.did where b.budget >500000
 
i need to learn the as *
is this correct?
SELECT Project.pid, Project.budget from Project INNER JOIN Project on Project.did = Employee.did where Employee.classification='500000'
(another task)
(tried to use what you just taught me)
 
Again, you are saying there that you are joining Project with Project, whereas the joining condition seems to suggest you should join Project with Employee.
Therefore, replace the first or second Project with Employee (i.e. either before or after the INNER JOIN)
Anyway, lunch time, BBL
 
okie, understood my mistake
SELECT Project.pid, Project.budget from Project INNER JOIN Employee on Project.did = Employee.did where Employee.classification='500000'
 
12:08 PM
 
12:30 PM
@BeginningMath You probably haven't told us the whole requirements / tables. See my comments in the question.
 
@ypercubeᵀᴹ thank you for your comment
added the full table
is it more clear now?
 
thank you for helping me
 
12:52 PM
@ypercubeᵀᴹ is the helpful heaper
 
he's a good person if he agrees to help a noob like me lol
just dunno how to check whether ddate is passed or not
is it a true or false thing?
 
1:47 PM
bck
 
2:16 PM
andy, can you check that thread please?
i don't know to write the correct query
 
@BeginningMath what's wrong with the answer you got?
 
so sorry, it didn't show me in the notifications that i got an answer
i am working on a c project
so i guess i'm learning concurrency lol
 
Oct 2 at 6:29, by sp_BlitzErik
> Concurrency is hard; sorry about that
 
2:38 PM
@sp_BlitzErik Can you remember seeing TF 4138 in production?
also thanks for looking into the fk thing
 
no, i've never seen anyone with that turned on
at least not server level
 
I'm tempted, but I feel like it would be a bad thing
 
> This field includes illegal characters ('<','>').
Signs of a quality enterprise issue tracking system
Validated client side even
 
2:54 PM
It's For Your Protection
 
3:34 PM
hey guys, be warn, a noobie question
in sql, can i use math?
 
@BeginningMath what does that means?
 
@Lamak 1 Lamak + 1 Lamak = 2 Lamaks
HTH
 
@JoeObbish it does!
 
i mean if i want to print the first year and the one after it and the did(department id) of departments that for two consequitive years had a budget of over 700000(a year)
for me it's complicated to write that as a query
even though it should be a simple one, as all of the elements are in: dbudget(did,byear,budget)
 
@BeginningMath well....I mean, I still don't get the question, but of course you can use math in SQL
 
3:39 PM
SELECT 1 + 1
 
@JoeObbish Lamak * 100.000 = Lakh Lamaks
5
 
i am trying to write a query that shows department id, the first year, and the year after that of all departments that for two consequitive years were 700,000
 
@BeginningMath Table definitions, sample data and expected output would be a good starting point when asking for help
 
i'm trying to understand your word problem but it's not clear
 
@TomV too advanced for me
 
3:42 PM
Employee(eid,ename,salary,did,classification)
Project(pid,pname,did,budget,ddate)
Department(did,dname,floor,head)
dbudget(did,byear,budget)
Project(pid,pname,did,budget,ddate)
Onproject(pid,eid,fdate)
 
oh boy
 
from what i understand, we're only looking on dbudget
 
post a question on the main site
 
@BeginningMath Why not ask a question on the main site?
chat isn't good for asking complicated questions
 
chat isn't a good place to work stuff like this out
 
3:42 PM
just ask Erik about the questions I ask here
 
you may even have better luck with basic syntax questions on stack overflow
 
okie i'll ask, but i thought it's just a matter of a simple select query because all the details seem to be from dbudget
in stackoverflow i'd get booted for noobish stuff like this lol
 
it's not, you have to define "subsequent years", "do the years have gaps" etc
it's not a simple one off query
 
@sp_BlitzErik something like this, I think:
SELECT did, byear, byear + 1
FROM dbo.dbudget d
WHERE EXISTS(SELECT 1 FROM dbo.dbudget
			 WHERE did = d.did
			 AND byear = d.byear - 1
			 AND budget = 700000)
AND budget = 700000;
 
what's a busget
 
3:44 PM
what?
 
wow, he's quick!
 
Interjection: your mom
  1. (pejorative, US, Britain, slang) A general purpose insult, often used to comedic effect due to becoming stale.
  2. Conrad: I am not sure if this phrase is commonly used...
  3. Dominic: Your mom is commonly used.
  4. 2004, Napoleon Dynamite
  5. Deb: Well, isn't anyone else here trying to earn money for college?
  6. Kip: Your mom goes to college.
 
before i type the question, he answers it
but it doesn't check for two years in a row as far as i understand
 
I didn't answer it yet, just translating your "word problem" as I understood it to @sp_BlitzErik
 
oh, sorry
 
3:46 PM
no sorry needed, it's a rough guess at what you wanted
 
@Lamak i understand the logical requirements, but not the output requirements
 
@BeginningMath you could still try it and start from there
 
morning evening all
 
@McNets how was that ardbeg
 
can i ask your query as a basis for my question lamak?
 
3:50 PM
@BeginningMath of course you can....but I suggest you try it first
 
i'll try
basically i need to translate everything into relation algebra afterwards lol
 
@sp_BlitzErik ardbeg is a malted whisky?
 
it's a single malt
not sure what you're asking
 
@sp_BlitzErik I'm gonna translate again. He's asking if ardbeg is a malted whisky
boy, I'm being helpful today
 
Ah is it whiskey time again
 
3:56 PM
@Lamak if you really want to be helpful, get me a drink
 
not sure how I could do that
is there an app for it?
like...to invite a drink to someone?
 
you could write one
i'll wait
 
@sp_BlitzErik ok, by now I only drink tequila, Jose Cuervo
 
maybe it was someone else who said they bought a bottle of it
my bad
i've been sober for a while so my brain isn't working well
2
 
I used to drink lagavulin or caolila
 
4:08 PM
@sp_BlitzErik I have to get into writing that app then
@sp_BlitzErik HouseTab seems to be an app that does this...but it's for iOS only
 
well that doesn't help me
 
@sp_BlitzErik sending a gift card for booze needs quite a lot of your personal info, though
 
v. impersonal
i'm shocked at your rudeness
we've been friends for what feels like decades
maybe eons
 
@sp_BlitzErik I mean, is your first name blitz? or is that a last name?
 
4:24 PM
it's my fremen name
 
some good person solved my query before
if you're interested in how: dba.stackexchange.com/questions/192511/…
(3rd one)
 
I wrote 200 lines of PL/SQL today
AMA
 
did you make 7 billion dollars?
 
lol
one day hopefuly
then i'd give allll to charity, except of a small small amount of about 10 million i'd be using for modest living
 
i hope you'll consider my ~bar tab~ charity in your philanthropy
 
4:34 PM
sure i will
 
@sp_BlitzErik which one of this options work best for you?
I assume you are a connoisseur about it
 
people really need to stop putting their bathub bourbon in mason jars and calling it artisanal
what a gag
 
@sp_BlitzErik you are making the process of sending you a drink too difficult
 
@Lamak i wouldn't take money from a poor, struggling mba student
 
4:45 PM
@sp_BlitzErik you forgot "third world country"
 
I can't believe you are the same @sp_BlitzErik I knew
 
A_V
Hello
 
i've become a better person since hitting 10k rep
 
family and friends have been telling me i've been much nicer since going over 2k
 
A_V
4:50 PM
My company is currently using sqlserver and we're trying to take a cloud turn and downsize our main sqlserver DB into a postgres/mysql/mariadb and many document stores (mongodb or google's cloud equivalent)
I've never used postgres, anyone here can vouch for it ?
I'm not sure wether or not I should ask this on stack network. It seems kind of opinion based so unrelated
 
why not just write a new app based on all that and convert over?
shoe horning an existing app into 70 hacker news buzzwords is asinine
 
A_V
that's basically what were doing
most the tech stack we grew with is obsolete
appart from sqlserver
but we don't use any sqlserver features that stop us from moving to free license solutions
we're definitely building from scratch
been testing cloud instances for postgres and mysql, both seem to work well
not sure what end-game issues we'll run into with either of them though. That's kind of what I'm trying to find info on.
 
not sure how anyone here could answer that either
you testing your app seems like better vouching than a stranger on the internet®
 
@sp_BlitzErik I got Laphroaig (again) but I don't think I mentioned it
 
@TomV which one?
 
4:59 PM
Quarter cask
@sp_BlitzErik hmm I can't figure out how how to edit an existing message into a reply on mobile
 
5:33 PM
Laphroaig and Lagavulin are like drinking a camp fire
 
5:44 PM
@swasheck lol
add a little water next time.
 
Or a younger whiskey
 
yeah. i'm more of a Highland Park/Auchtenoshan guy, myself.
 
Good choices too
 
i like a little peat and a little smoke, but the bottle of lag that my wife bought me for my birthday last years a LOT
i think it was a lagavulin 16
 
I remember liking the Laphroaig 8 a lot better than the more aged ones as they were too peaty but someone gave me a bottle of qk which instantly became my favorite balance
 
5:54 PM
reading about it now
 
@swasheck have you ever tried springbank? it's kinda like meeting in the middle.
 
never. i'd not heard of it.
 
if i keep a bottle of whisky for 30 years, does it go up in value?
 
only if you burn down the distillery it came from
 
i guess it's not the same as storing it in a special barrel
 
6:05 PM
magic barrels
 
SPRINGBANK 21YR SHERRY
$453.99
 
Springbank 32 Year Old Bottling Note £1,495
 
i guess brent pays better than i can make
 
you know they have less expensive bottles, too
like, i think the 10 year is around $60
 
yeah. the 10 year is 63.99
 
6:13 PM
think i'll just buy 3% of the 32 year old one instead
 
You're not supposed to finish that in a week either
So yeah it looks expensive but your 60 bucks last a while
 
i wish mine did
 
6:27 PM
Enjoying life tends to cost money
@sp_BlitzErik the worst part about storing it in a barrel is you get less and less whiskey over time
 
that happens when i store it in my apartment too
 
@sp_BlitzErik you shouldn't water your plant with it
 
@Lamak plant's dead. couldn't drink worth a shit.
 
it deserved it then
 
6:58 PM
@sp_BlitzErik the nerve
 
@swasheck I suspect @sp_BlitzErik was using that plant as a sort of "Dorian Gray plant" which absorbed all the damage he should get from alcohol
hence, it died
 
who's dorian gray
@TomV i think i found my problem
 
shoot, did I write that wrong?
 
@Lamak i dont know.
 
@swasheck ah, so you really don't know, I thought you were just messing with me
The Picture of Dorian Gray is a philosophical novel by Oscar Wilde, first published complete in the July 1890 issue of Lippincott's Monthly Magazine. Fearing the story was indecent, the magazine's editor without Wilde's knowledge deleted roughly five hundred words before publication. Despite that censorship, The Picture of Dorian Gray offended the moral sensibilities of British book reviewers, some of whom said that Oscar Wilde merited prosecution for violating the laws guarding the public morality. In response, Wilde aggressively defended his novel and art in correspondence with the British press...
 
7:04 PM
the name was familiar but i've not read it
 
I had to think about it too but if you are referring to the plant being the picture you overestimate the heap
 
@swasheck yeah, I thought I just wrote it wrong
 
It was above my head anyway
 
@TomV I was referring to it
 
I'm 2 meters tall and it was still over my head
 
7:06 PM
wow, you're tall
 
@TomV holy crap, yeti
so i asked this last night as well ... but if you have on-call escalation management solutions and/or operational monitoring, what do you use?
e.g. "we run our escalation through pagerduty"
 
We use prtg but I'm not on the on call schedule
 
prtg looks pretty interesting, for sure
i'm just looking for a good SNMP trap receiver that then rolls up to an on-call escalation/notification server
 
who gets called when the escalation server has a problem?
 
the janitor
 
7:17 PM
@swasheck prtg is nice but the historical charts are too old school
It's better than scom that's for sure but it could use some dynamic time scaling interface
Scom isn't useful for anything other than alerting imo
 
@ypercubeᵀᴹ nobody
 
7:53 PM
-1
Q: Tag merge request osx -> max-os-x

Evan CarrollAnyone able to take care of the merger and add a synonym from one to the other?

 
 
1 hour later…
9:15 PM
@bluefeet no rush: do you know when the next planned SO data dump is? looks like they did one on 8/31 last.
 
@sp_BlitzErik soonish
 
sweet, thanks
 
someone needs to show me how to do it :P
 
are you in charge of that?
you look like the kind of penguin who enjoys xml and eating fish while they scream silently for mercy
 
@sp_BlitzErik as soon as I learn it, I'll be running it
 
9:24 PM
i hear it's all manual data entry
 
that's the reason for the soonish timeframe
 

« first day (2528 days earlier)      last day (2330 days later) »