« first day (2005 days earlier)      last day (2869 days later) » 

2:27 AM
@MikeAsdf I've seen it as a pattern for data load where time was very critical. It pre-allocated all the disk and structures so we wouldn't have that overhead at run time. The risk is with variable-length columns: if they overflow the pre-assigned amount you get extra IO; underflow and there's wasted space, with corresponding IO overhead. As a day-to-day technique on an otherwise unstressed system, not worth it. Do the INSERT & DELETE and reqular index maintenance.
 
3:12 AM
@MaxVernon Thanks. It was four years ago :)
 
 
2 hours later…
5:23 AM
@dezso I would find that perfectly reasonable. Perhaps, where access to the more sensitive bits of PII is involved, people might need to sign some kind of NDA (unless the notion was already mentioned in their contract anyway), but that would be it.
That said, in this case there's no company, there's a person and their personal website, so maybe there need to be special ways to handle access to PII in such cases.
 
 
3 hours later…
8:41 AM
random useful UI feature of the day: Google Drive predicts immediately (less than 0.1 seconds) after starting an upload an ETA of 1003 hours and 56 minutes
 
@dezso what are you uploading? The Internet zipped?
 
@ypercubeᵀᴹ I've distilled it into a png and an svg file
 
9:21 AM
The more I read yesterday's question about the SQL Server licences, the more it sounds like a rant.
"Why SQL Server is so expensive? I want it to be cheaper."
 
9:50 AM
@ypercubeᵀᴹ Which one is that?
 
-6
Q: Why we can not individually get SQL Server web edition licence? the only doable commercial licence

MonsterMMORPGThe SQL Server web edition is only provided by server providers. Why we can not individually get this licence subscription? I would prefer to subscribe directly from Microsoft's website by monthly payment This is the only commercial licence that indie game developers or programmers can afford....

 
Thanks.
 
@AndriyM many comments removed by Jack. Some of them were posted here yesterday.
19 hours ago, by Tom V
On top of that it shows a ridiculous amount of ignorance towards the existing editions including the free developer edition which according to the OP is "out of his scope" and "costs astronomically" (at zero cost). — TomTom 12 hours ago
 
@ypercubeᵀᴹ I see. I've skimmed over most of yesterday's room contents.
 
Doesn't VBA gave parametrized queries?
1
Q: SQL Query error drivning me crazy!

BrodeliusI'm wondering if anyone can find the mistake in my SQL-Query which I can't seem to find.. Been starring at the same lines of code for like 2 hours and it's driving me nuts! So, here's the query... (Quite long but hopefully it's readable..) I'm working in VBA connected to the DB hence the ComboBo...

 
10:00 AM
@ypercubeᵀᴹ I'm happy to say I don't have to use VBA
 
10:11 AM
@MikeAsdf If you ever have to do something with historical data you will be screwed if you do that.
 
@ypercubeᵀᴹ I agree with you and Max. Deleted.
 
10:36 AM
How I can depend on Postgresql now !!! Some times ok, sometimes not ok. !!! — Kumar 3 mins ago
 
10:56 AM
From the department, the actual Brexit plan.
 
11:37 AM
@ypercubeᵀᴹ The issue cant be reconstructed now. Now both queries are running ok. — Kumar 7 mins ago
"Too localised" then?
 
@AndriyM I'm inclined to think he's doing something wrong.
Either they run different queries than they posted
or the data in the tables had changed.
Still, there is a small possibility they run into some weird bug. FDW to MySQL, I don't know...
 
11:55 AM
@AndriyM I've already voted for that
 
12:28 PM
sorry @PaulWhite bad flag incoming
 
great
 
12:41 PM
@PaulWhite You cleaned the whole thing up, I'm fine with that, but I think I flagged the only possibly relevant comments on the whole mess where on the answer where I flagged it :)
 
yeah
 
@TomV huh?
 
@ypercubeᵀᴹ Just me being dumb again
But I'm not talking about the question you and Max were discussing
This one:
6
A: SQL Query error driving me crazy!

jeofry delacruzif this is your exact code, you forgot to put a space at the end of this line: FROM [RFD_New].[dbo].[RfD_]" & _

 
Was one of those "where" meant to be "were"?
 
Ha
no
I reordered the words in the sentence and failed
My fail is strong today it seems
 
12:55 PM
May the Fail be with you
 
hello guys
I have this query
select b.executionId, a.applicationId,COUNT(IF(a.executionResult='pass',1,null)) as pass,COUNT(IF(a.executionResult='fail',1,null)) as fail from executionresult a inner join testexecution b on b.executionId=a.executionId where  b.executionStatus='InProgress' group by a.executionId,a.applicationId
As you can see, I am retrieving the executionID and applicationid
I have another table testprecheck and there is a column called objectrunstatus and query is
select objectrunstatus from testprecheck where executionId= and appId=
In our application, they first retrieve the first query and store in a list
and then they pass executionid and applicationid to another method to retrieve the object run status
so if a list has n elements then n times the 2nd query will be executed
this I think will effect the performance
I merged both the queries
select tpc.objectrunstatus,b.executionId, a.applicationId,COUNT(IF(a.executionResult='pass',1,null)) as pass,COUNT(IF(a.executionResult='fail',1,null)) as fail from executionresult a inner join testexecution b on b.executionId=a.executionId
left join testprecheck tpc on tpc.executionId=b.executionId and tpc.appId=a.applicationId
where  b.executionStatus='InProgress' group by a.executionId,a.applicationId
I do not have suffiecient data in db so I can not check if the query is right or not
can you verify please?
 
@SpringLearner I think it's better you post a question at the site
It seems correct at first glance. But I might be misunderstanding what you want.
 
@SpringLearner I can see at least one error that would cause your query to fail (unless you're using MySQL)
 
Ah yeah, what Mark says.
 
1:10 PM
@MarkSinkinson I am sorry for not mentioning the DB
I use mysql
 
The left join should be applied after the group by, using eother a CTE or a derived table
@SpringLearner Still, the query should be amended. Depending on the UNIQUE keys on the tpc table, you may (or not) get wrong and/or nonsense results.
 
@ypercubeᵀᴹ please guide me what else needs to be changed
 
@SpringLearner I'm off for the rest of the day. I suggest you add a question at the site
 
@ypercubeᵀᴹ ok thanks
 
1:30 PM
@SpringLearner And please make sure your desired result is clear. It would be great if you showed the result of the query you already have as well, so that the intended change is easier to understand.
 
@AndriyM I am sorry to say that I dont have data in my DB
I have only four records and I checked
worked fine
 
@SpringLearner Then you may end up with a suggestion that would work for those four rows but not for some edge cases that you wouldn't be able to check at the moment. Just saying.
 
@ypercubeᵀᴹ I'm trying to absorb all the fail in Belgium so the team doesn't :)
 
 
2 hours later…
3:38 PM
5
Q: How can I convert a string to a double precision in PostgreSQL?

ZubairHow can I convert a string to a double precision in PostgreSQL ? I tried something like : update points set latitude2 = cast(latitude as double) ; where latitude is a string and latitude2 is a double. I just can't get it to work.

Any Postgres folk agree this is not 'too localized'? I don't want to reopen it myself because I answered it, but I think it's the right side of the line personally.
 
yesterday, by ypercubeᵀᴹ
@JackDouglas are you coming to PGDay UK 2016?
 
@ypercubeᵀᴹ sorry missed that for some reason
the Meetup email is sitting in my inbox I can't make up my mind if I should go
"Expect a single-track series of talks from carefully selected submissions, guaranteeing an interesting and stimulating day. The conference always attracts top speakers - last year we saw the UK Government’s CTO Liam Maxwell commence proceedings - so expect more first class presentations from the leading experts in their field."
would like to know more about speakers and topics :)
 
4:00 PM
@ypercubeᵀᴹ thanks!
and booked
 
4:11 PM
@JackDouglas ah great!
 
4:34 PM
is there anything more frustrating than people who don't own up to their mistakes?
 
what mistake?, I didn't make any mistakes
you are wrong
 
Is the following question on-topic, anyone?
0
Q: AOAGs status in HTML Format to Mail

SQLBoyCan you please help me formatting the script.I am using html format and trying to send to my mail but I am not getting output to mail but I can send output as attachment and can you please help me with styling also.Thank you.I changed my original servernames. Function AGS [System.Reflection.Ass...

It can be considered a DBA task, but who knows...
 
 
2 hours later…
6:30 PM
Is SQLFiddle still down? It's been down for me for ~18 hours - I'm trying to create an Oracle schema - even the most basic of tests fails. I can bring up the site - just no do anything.
 
@Vérace the SQL Server and Oracle fiddles have been up and down for months, and mostly down.
 
6:41 PM
@ypercubeᵀᴹ OK - thanks for that - it was in response to your comment on my post earlier today that prompted this - is there another site that would be recommended by the plurality of users here - sqlzoo for example?
 
6:58 PM
@Vérace for Oracle?
I remember Phil had posted an option. From Oracle itself.
Oct 27 '15 at 15:37, by Phil
Ok, https://livesql.oracle.com/ is amazing. Oracle's own superpowered sqlfiddle
What are you doing with that many rows in your output? — dezso 4 hours ago
@dezso , they answered
OLAP workload. The selected rows are then sorted and a LIMIT is applied, but the slow part is the WHERE+GROUP BY which is why I want to focus on optimizing that. — SGr 4 hours ago
 
7:39 PM
@ypercubeᵀᴹ Yes, I had a reply using PostgreSQL for an Oracle question - removed the need to use CTEs - principle is the same, but couldn't find an Oracle instance. You told me that my post didn't answer the question and I replied that I would use SQLFiddle when it was back up. I now know that it probably won't be for a while, so I'll try this livesql thing and report back.
 
8:22 PM
@TomV /facepalm
 
9:07 PM
@TomV Did that work? ;)
Wales 3 Belgium 1
 
plenty of fail to go around, i guess
i speak whale
 
Seems so. What odds an Iceland Wales final?
Don't know if that's even possible
 
not sure
at least we all know to root against portugal and italy ... right? RIGHT???
 
@PaulWhite Thanks. I wasn't even sure if it was intentional. I see it's documented now.
 
9:43 PM
That sucked
 
10:05 PM
sorry
 

« first day (2005 days earlier)      last day (2869 days later) »