« first day (2934 days earlier)      last day (1938 days later) » 

12:18 AM
tomorrow UK debates no confidence
 
 
7 hours later…
7:11 AM
Morning!
 
Morning
 
7:54 AM
Morning
 
Morning
 
8:31 AM
Morning
 
HALLO
 
morning
 
8:52 AM
oh hai
 
9:09 AM
@PaulWhite - I bet I know the answer to this, but how do you feel about updates-vs-comments to link off to a feedback.azure.com feature request?
 
Today in Ask an obvious question...
;-p
 
I'd hate to disappoint anyone with an answer
I'm nothing if not predictable
 
9:25 AM
Don’t say predictable, say deterministic. It looks better on a resume
4
 
Deterministic AND optimistic
 
.. also consistent and highly available.
 
might as well just put ACIDic
 
Gold badge earned by Comment Converter today. Also earned the silver Good Answer badge for the same post.
 
the bots are taking over
 
9:39 AM
@PeterVandivier I wouldn't call the evil twin brother of Paul a bot
 
I for one welcome our new sock overlords
4
 
ooh! he has an evil twin?! that means he's geo-redundant too
 
Sock Overflow
2
 
@PeterVandivier and explains why he doesn't seem to sleep, ever
 
Stack Oversock. Or would that just be Stack Boot?
 
9:40 AM
Seen on the interwebs today ...
 
in b4
 
@PeterVandivier As soon as we figure out the split-brain problem, we're done!
 
@ConcernedOfTunbridgeWells anyone cares to arrange a meeting on Jan / Feb?
It's long time we had one!
 
@yper-crazyhat-cubeᵀᴹ We had some intereest for Jan 24, which is next Thursday. I suspect it might be better to push it back a couple of weeks.
 
9:50 AM
@PaulWhite this is a very good idea for next Christmas Hats!
 
For a few reasons, not the least of which is I've got a trapped nerve and chronic pain in my shoulder and arm at the moment.
 
I mean Christmas Socks (instead of Hats)
@ConcernedOfTunbridgeWells ah. get well soon!
I am on the market by the way, for new gig/job/whatever ;)
 
@yper-crazyhat-cubeᵀᴹ Qatar re has a senior dev and architect gig going at the moment.
Are you still living about Woking?
 
> tfw people who intimidate you intellectually announce they are now competing with you for jobs 👀 ...
 
@ConcernedOfTunbridgeWells yes
 
9:58 AM
@yper-crazyhat-cubeᵀᴹ You could get to Reigate without too much fuss?
I don't know if there are vacancies here but I can ask.
 
@PeterVandivier You'll be fiiiiine. The DBA marketplace is the opposite of saturated. Whatever that word is
Unsaturated?
Sounds too much like a healthfood advert
 
poly-non-saturated
keep it rollin'
 
@ConcernedOfTunbridgeWells yeah, I think it's not far
 
@yper-crazyhat-cubeᵀᴹ There's a train that goes from redhill to guildford. You might be able to connect to that. Reigate station is about 5 mins walk.
 
@George.Palacios lets call it Fat ;)
 
10:02 AM
I'll ask if they want more devs.
Although they're a bit of a 'code first' shop so I don't think they really appreciate the concept of data as such.
 
Out of interest, I'm 5 years into my DBA career ish - have other DBAs here ventured into the dev world successfully? I'm looking at it and can't really see any reason I can't dev and DBA - the skill sets overlap massively.
 
@George.Palacios Mixing and matching the jobs tends to be something of a poison chalice.
 
@ConcernedOfTunbridgeWells Go on?
 
You'll be trying to get development work done - and your performance will be judged on this - while constantly being dragged off onto support tickets.
 
Well, I meant more going for a developer role, rather than splitting a job
I've always been a DBA you see
 
10:06 AM
@George.Palacios Decent database devs aren't thick on the ground. If you've got a background in data warehousing that will be a bonus. However, a lot of shops still have a 'data monkey' mentality so you will get a preponderance of jobs offering below-market salaries.
 
@ConcernedOfTunbridgeWells Data monkey. Hahaha I like that
 
But, there are decent database dev jobs around and a shortage of competent folks to do them.
You might also look into devops work.
 
@ConcernedOfTunbridgeWells That may be where I fit in that case. I agree on this sentiment - I've come across so, so many that lack what I consider to be the essential skills
 
@ConcernedOfTunbridgeWells Yeah, I've seen that when looking around. Some offers for database devs are really low (while others are decent).
 
@yper-crazyhat-cubeᵀᴹ Just go for the ones offering decent rates. They will still have a shortage of decent candidates.
 
10:11 AM
It's just an idea I'm toying with more than anything. Just means there is a wider market for me to look at in future
Thanks though @ConcernedOfTunbridgeWells
 
10:23 AM
Morning All
 
@Mathematics Never did the thought occur to me that I would be meeting Mathematics itself today - morning
 
Did you ever thought, this room would be Mathematic's fav chat room too ? xD
 
@Mathematics The bit that REALLY shocked me was that Mathematics parent user is on the Sharepoint site hahaha
 
@George.Palacios You will find me almost everywhere, my relationship with SharePoint ended though, it might spark again but Machine Learning and AI is the next thing I am most interested in now ;)
 
@Mathematics Wise choice I imagine. A lot of Mathematics involved in that
 
10:33 AM
Three cases of employers: the good, the bad and the ugly:
3
Q: Last employer continues to pay me

ste_kwrThis is a very frustrating situation as the last employer continues to pay me despite my multiple calls to their helpline to rectify the situation. I've called the HR and Payroll department multiple times and filed reports. When they ask for money back, it will cost me a lot of time and effort t...

0
Q: My previous employer made me leave my job, afterwards called it termination/expulsion and my salary is still not paid

jaydeep marvaniyaTime line of events : December : Joined A startup as a team lead. January : Got paid late for December month salary at 10th January instead of last payment date 15th. Got paid in half and another half was paid at ~15th of January. February : Got paid late (in half salary) for January month a...

49
Q: Potential Employer Cancels Return Flight

SnahA company I was interested in just flew me out for an interview. It was on the other side of the country so they paid for my flight and hotel. Unfortunately, the interview went disastrously. I blew every question and I could tell that they didn't like me personally. When I got to the airport ...

The last one is really, just unheard of.
 
Those are horror stories wow
 
indeed, last one is really useful to know
I would never want to be in that situation
 
11:00 AM
I paid out-of-pocket for a flight to get to an interview once, then I was too bashful to ask for reimbursement even after i got the job 😑
 
@PeterVandivier I also didn't even try, but got some money back after the tax declaration
 
haha, fortunately for me when i took that job i was in a "previous employer continues to pay me" situation as well. you win some, you lose some i guess
 
@PeterVandivier well, I got once one month extra because I was sorta fired last minute (no idea what you can safely do to a systems administrator, and there were no hard feelings on either side, for the records). After that I went to the military, and at the end of it I got 6 months of employment (paid, of course), for doing absolutely nothing. They even demolished the building I worked in before. The flip side was that I lost my access to tanks @ConcernedOfTunbridgeWells
 
@dezso well if you lost your access to tanks, then what even is the point?
 
11:16 AM
@PeterVandivier I went flying my paraglider like every other day
 
@ConcernedOfTunbridgeWells well, I am still waiting for you guys buying me one
 
@dezso I'll have a whip around at the next drinkies.
Alternatively, I could continue to make Hungarian Notation jokes.
tnkT72
 
@ConcernedOfTunbridgeWells hmpf
 
rplyHmpf
reqCould we have a whip around for @usrDeszso's tnkT72?
 
11:21 AM
@ConcernedOfTunbridgeWells N
 
@George.Palacios That would be boolN
 
God damn it
 
cursGod damn it
 
I prefer noNo
 
That would be apps hungarian.
 
11:23 AM
@George.Palacios this is not how you make friends, you know
 
@dezso He just puts up with me.
 
@dezso But I wanted the first DBA.SE tank :(
 
@George.Palacios rplyThat's been reserved for @usrDezso
 
emoji:(
 
In russian class I sat next to a guy who had dibs on a couple of miles of tee-seventy-somethings lined up in a forest somewhere. Not sure I still have his number, though.
 
11:26 AM
Maybe somebody will pay me to stop making them.
 
@ConcernedOfTunbridgeWells imageTakeMyMoney.png
 
11:48 AM
 
lol
 
yep
 
:p i figured "UPDATE" was appropriate given the circumstances (very much a change to the content, not my voice, follow-on from OP wording)
¯\_(ツ)_/¯ perhaps a niche occurence
 
12:03 PM
not the way I see it
either you or Sean can edit it again if you like
he seems happy with it though
 
similar to Sean's comments in the VIP room, I didn't want to imply more weight to that link than there is (i'm not an MS employee, and the MS employee does in fact indicate that voting on that doesn't have a bearing on the internal work item)
but his answer seemed like the appropriate place for that link
moreso than the question
or the accepted answer
 
nevertheless it is a helpful addition to the answer and doesn't require a bunch of meta around it to make sense
 
fair enough :-)
 
65
A: When is "EDIT"/"UPDATE" appropriate in a post?

ArjanEDIT and UPDATE are rarely needed, nor helpful. For future readers, posts need to be standalone, without any history. These sites are not forums, but: We build libraries of high-quality questions and answers, focused on each community's area of expertise. Future readers are not helped by ...

 
i actually had that post in mind! 😂
 
12:07 PM
That's the link in the revision history
 
For others' benefit
 
Anyone can suggest a good resource to start learning about query performance?
 
is expanding the link to a pretty link automatic? i always assumed there was formatting wizardry for the learnéd and wise
 
12:14 PM
Thanks @PaulWhite
 
@PeterVandivier supposed to be, yes, click the help link bottom right corner this page
 
yea... i've read that, i don't see anything about "short text" links vs. "box-preview" links?
 
@ShadowWizard not yet; ultimately, Amazon oneboxing isn't top of our P1/P0 list, and we've been busy trying to launch "teams" :) — Marc Gravell ♦ Apr 8 '18 at 9:43
so it's broken, but no one cares to fix it
 
LOL I get a DV for what it seems the OP want to do
It's clear that he want HAVING
 
12:30 PM
@Sami maybe they want all the values in the result?
 
@yper-crazyhat-cubeᵀᴹ See the comment under my answer
I like when I get dv, and downvoter leave a comment to mention why
 
@yper-crazyhat-cubeᵀᴹ That's crazy
 
1:26 PM
@yper-crazyhat-cubeᵀᴹ Sorry I miss your message, let me take a look
From where did you get YourTable??
I think you can see the deleted answer, and see the comments under
I was thinking of that, but who tell that the OP already has a table?
The only input in the question is N=4, nothing more
maybe he want to generate this data, it's not clear at all
thus I get a DV
Thanks man :)
 
@Sami well, he has tagged with . I assumed he has a table ;)
 
Still, it's not clear, maybe he want to generate this random data :p
 
@Sami yeah, maybe
Looks like all possible partitions of N=4 (partitions in the mathematical, number theoretic sense)
in which case, it would be an interesting problem.
 
2:20 PM
Hey everyone! Quick question: is there a conventional column name for the sort order field? Similar to how 'id' is almost always used for the primary key. I guess 'order' may be a reserved word, so it's out. 'Sort'? What do you use?
 
Sly
hey all
 
@aexl when I do (that's been seldom recently) it's something like priority (if it applies), or some_specific_order
 
Sly
anyone here familiar with Oracle BI?
 
with our naming scheme here it would be mt_order if the table name were my_table
 
3:02 PM
@aexl For what it's worth, we have a user-populated sorting column in some cases that we predominantly call Sort. In the table it's always an int and is 1000 or 10,000 times the value displayed in the app.
@dezso Not many fellow Hungarians among your co-workers, I presume
 
3:22 PM
I'm studying for a test tomorrow and trying to figure out the important concepts - https://trello.com/b/VfvcW983/database-design

Rn, only thing I've done is watch a 51 video playlist from Caleb Curry and try to go through some material on KhanAcademy. O
I've been studying DBMS for 10 years now starting from middle school, and KA has me here: https://www.khanacademy.org/computing/computer-programming/sql/sql/hour-of-sql/pt/querying-the-table

And I feel I've regressed to step 1.
@avazula Hey, don't I know you from somewhere.
 
@Nick "Board not found. This board may be private. You may be able to view it by logging in."
 
@AndriyM Oh, just switched it to public now. Try again. I'd like your input on what looks important-ish.
@AndriyM Here's an invite link to that board, if you're interested: trello.com/invite/b/VfvcW983/e71738e367707213cfb97ae051e84942/…
 
@Nick Bugger, I didn't mean to imply I was any good at whatever it was you were studying for the test. Still, I'll try and give my best guess
 
@AndriyM I know, I know. I have over 2000 pages sitting as two fat textbooks infront of me, I just wanted to share my pain. I felt this was the most relevant place. It's ok if you can't help.
 
3:39 PM
@AndriyM because no tbl_my_table?
 
@Nick I don't know, maybe from Disenchantment? ;)
 
@dezso Something like that :)
 
@avazula Oh yeah, your show killed Futurama. Why did you do that?
 
@AndriyM there are some, but they are all sane people to my knowledge
 
@Nick For any complaint please refer to Matt Groening
;)
But yeah, that's a bummer
 
3:42 PM
@avazula I was a big fan of his Slice of Hell comics. I'm sad those had to stop too.
 
@Nick Huh, I don't know about those.
 
You wouldn't. They were before even the Simpsons.
 
@Nick I was born the same day they cast their 1st episode !
Best things in life began in December
 
@avazula I was born the same day um, I have to go check Wikipedia, but I think it was the day the Google search engine went online or something.
@avazula like snow.
I'm 2/5ths through a DD playlist
I'm almost halfway done. Just almost.
 
@Nick you said your test is tomorrow?
 
3:56 PM
@avazula yesterday it was day after tomorrow, you won't believe how relaxed I was. (I was very relaxed..very)
 
@Nick That's a lot of theory for me, some of the topics I've only heard the names of. Hard to decide which should be considered more important than others. Most of what I've learnt is by self-teaching and "following examples", so I guess my choice of important-ish would be heavily influenced by what I do
I'm a developer with interest in knowing a little more about how databases work, so SQL (the more the better), basic idea about normalisation, indices, transactions, storage would be my choice
 
@AndriyM It's alright, I understand. I'll be up googling most of this all night anyway. Hopefully some of this will prove useful in my career as well.
@AndriyM thanks, that's actually pretty useful!
 
4:15 PM
@yper-crazyhat-cubeᵀᴹ People like to make things harder
Why not just directly WHERE Number LIKE '20%'? and since you filter the result set you don't need for CASE expression, just 'X' AS OperationSami 24 mins ago
 
 
1 hour later…
5:23 PM
@Sami Those people should not be setting test papers, surely.
 
6:26 PM
Does this sound awkward to you
> The TypeScript compiler can figure out the type if you have types on one side of the equation but not the other:
 
@Sami that question does not 6 answers need.
oh wait, it's SO
 
I flagged to move to DBA.SE
 
@EvanCarroll which question?
 
the one linked by Sami
 
@EvanCarroll I thought you were talking about TypeScript
 
6:36 PM
Not a questions it's from the official docs
 
7:29 PM
@yper-crazyhat-cubeᵀᴹ :D
 
Sly
@sami, got a question for you
are you online? perhaps that should have been my first question
 
@Sly Hey man, whooot a question for me!
but please don't paste your code as plain text hahahaha
 
Sly
So iam trying to get count distinct values then get a total of those values per person
 
@Sly COUNT(DISTINCT v) ;)
 
Sly
I have tried writing my code but I only get a distinct count and when I try to some it, it returns same value
 
7:42 PM
which DBMS?
 
@Sly Hold, it's about ORA right?
 
Sly
yes
 
@Sly Create a fiddle here dbfiddle.uk
 
Sly
I have it exactly that same code you have there
 
7:43 PM
then you can tell us what is the expected results
 
Sly
with a fiddle don't I need to create the table ?
 
Seems like you like ORA @yper-crazyhat-cubeᵀᴹ
@Sly Yeah, a sample data not the real data
 
Sly
ok
 
@Sly Do you want - besides the distinct count per person - the total count of distinct values for all the dataset?
Or the sum of the distinct counts?
 
Sly
its sum of the distinct count
per person
 
7:47 PM
sum of (distinct count per person), ok
 
Sly
you mean sum(count distinct X)
 
Try these: dbfiddle.uk/…
And a link with good info about various ways to get similar things, using ROLLUP or GROUPING SETS: oracle-base.com/articles/misc/…
 
Sly
@yper-crazyhat-cubeᵀᴹ thanks for the link, but the first link says page not found
 
both links work for me
 
me too
btw, hey @Lamak nice to see ya again
 
7:59 PM
yeah, I'm here sporadically ;)
 
hahaha yeah, on SO too
 
yup, I'm answering less question every day...
 
@Lamak you should have reached 0 by now, unless you started with 100s of answers per day ;)
 
@yper-crazyhat-cubeᵀᴹ ah, yeah, now the time unit is weeks, not days
 
8:20 PM
@Lamak good! and sorry for the lame attempt to humour
I did a similar thing at SO.
66, 14, 6, 1, 0 answers in the last years
 
@yper-crazyhat-cubeᵀᴹ nah, you are good
@yper-crazyhat-cubeᵀᴹ you just answer in all those other dimensions
 
9:02 PM
@yper-crazyhat-cubeᵀᴹ It seems like PARSENAME() works only with '.'
 
People still work with WHILE loop even they know the price
 
@Sami STRING_SPLIT()
 
@yper-crazyhat-cubeᵀᴹ Nah, see the question here I already give an answer
but you may have a better one
 
depending on the version of SQL Server, translate could work well here
 
9:09 PM
@Lamak See the question dude, I don't think TRASLATE() would help there
 
@Sami to replace - with .
 
hmmm probably not
 
Yeah, TRANSLATE() can replace it, but I would use REPLACE() as it is available on earlier versions
I really like to see you guys post some good answers there (on SO) ^_^
 
feel free to add the variation in your answer.
You use CONCAT() so your solution needs 2012+ by the way
 
@yper-crazyhat-cubeᵀᴹ Good one ;)
 
9:22 PM
Ah, the OP uses CONCAT, too.
 
Yeah, the OP already post it in his question
and PARSENAME too
 
Ah, I didn't read the q carefully .
They want only some of the strings reversed
 
@yper-crazyhat-cubeᵀᴹ Have a minute?
 
dbfiddle.uk/… Can you have a look at this and give some advice?
Is about this "wierd" question. dba.stackexchange.com/questions/227313/…
 
9:27 PM
@McNets Fix the URL
 
@Sami Done
Last one: dbfiddle.uk/…
-- Trying to get
--
-- [{"url":google", "val":12},{"url":"facebook", "val":1,},{"url":"example2.com", "val":5}]
--
 
@yper-crazyhat-cubeᵀᴹ Thanks man, you just forgot the separator there :)
 
@yper-crazyhat-cubeᵀᴹ yes thanks
I think with the given data it's not possible, to me is not a valid jsonb text
I was trying to add keys to the jsonb text, and converting it to arrays
 
edited to us jsonb_agg()
 
9:35 PM
yes, I've changed it
 
We all know that the price of products change in any time
but, how we truck those changes?
and should we store the price in every bill?
eg:
The problem is that the price can be changed from time to time according to the market
If we don't, then we lose the real price of the product when the bill created
 
@Sami bill price cannot be changed, at least in my country
 
Yes, in every country not just yours
but, don't you think storing the price twice is wrong?
 
9:51 PM
@Sami I'm sorry, is this about any question?
 
No, it's my question
 
Then, only once.
 
Ok, let's say we have a TV in the products table, his price is 100 today
I sell 1 TV for you (100)
tomorrow the price is changed to 200
Then, you just sell it for 200 not 100 (if we don't store the price twice)
 
ERP's usually works with a price list, different prices for a range of dates. You should apply the price according the billing's date.
7
Q: Updating open orders from a price list within a range of dates

McNetsSetup I've set up an example on rextester and dbfiddle. Scenario Price list: Its the products price list, one Products can have more than one active price, even a future price. +---------+-------+------------+--------+--------+ | product | price | date_price | base | active | +---------+--...

 
Thanks @McNets, could you please explain what the Base column mean?
 
10:05 PM
My company produces small pieces, sometimes the unit price = 0.0006 €, instead of negotiate a price per unit they establish a price x 1000 units or price x 'Base' units
Unit price = Price / Base
 
I think I'll create a table with ProductID, Date, BuyPrice, SellPrice columns
thanks @McNets
 
Usually you will buy the same product to more than one provider.
Nite all
 
10:20 PM
Have a good night, cya
 
 
1 hour later…
11:34 PM
So the UK didn't collapse yet =(
POOR ME.
 

« first day (2934 days earlier)      last day (1938 days later) »