« first day (912 days earlier)      last day (3971 days later) » 

6:27 AM
good morning :)
@ypercube is this the Euro version of BoogieMan? :)
 
6:41 AM
@Marian No :) This is Bert
 
gbn
7:12 AM
Morning all
I don't like the new VtC menus
 
7:23 AM
Change is hard :)
Maybe suggest some improvements on meta?
 
gbn
@PaulWhite I'll see how it goes
 
 
1 hour later…
8:53 AM
@gbn I made a comment in one of your answers. Not sure if it's relevant. (is the question about Row variables?)
 
gbn
@ypercube answering now
@ypercube The %TYPE thing in PG CREATE FUNCTION parameters etc is way more useful then SELECT .. INTO.
 
ok, thnx. I don't know what tablename%rowtype is used for in Oracle either, that's why I asked.
@gbn I can remove the comment if you think it's noise.
 
gbn
9:09 AM
@ypercube no, it was a good one to add contrast
 
gbn
9:24 AM
@ypercube I missed the aspx after the dot. oops
 
@ypercube I see they even got the plot right. They also have a prince :-).
 
@Marian Starred.
 
@ypercube thanks :).
@ConcernedOfTunbridgeWells how are you?
 
@Marian Fine. How are you?
 
Fine, thanks, everything's well.
still busy?
@ypercube they have their review as 4.5 stars on Amazon, wow. I guess they have nice drawings.
 
10:40 AM
@Marian Yes. How are the SSDs going?
 
@ConcernedOfTunbridgeWells very well, still rockin! now playing with VMs is a bit easier :).
 
11:03 AM
0
Q: No comment option?

PaulA few minutes ago I visited this question on the main site: How to design index for faster deletes Link as it appears in my browser (IE8). I could not for the life of me see a comment option to ask a query so, for my sins, I posted it as an Answer. @gbn was kind enough to upvote it whilst I was...

 
 
3 hours later…
2:18 PM
Why did they send us this question? Not able to write SQL Queries
 
@ypercube can't seem to find the option to move to SO
is it because it was already migrated once?
 
I think so, yes.
I think it goes back, if it is closed here, but not sure.
 
@ypercube well we'll see. I voted and flagged.
one of the mods will decide
 
Quite today. Must be celebrating.
 
yep, they seem to have lots of fun "outside"..whatever that would be..
 
2:29 PM
This is fun
 
@AaronBertrand Did that appear to you when we VtC/flagged?
We can only see [migrated] now.
 
 
1 hour later…
3:56 PM
If I count correctly, your function and question have at least four serious problems combined. 1. How do you try to call the function? 2. What error do you get? 3. you don't use the arguments in your function 4. the name is nonsense. — dezso 18 secs ago
 
@dezso And a "write the joins for me, I know no SQL" question: dba.stackexchange.com/questions/45740/…
Voted for -> SO
@dezso Is the syntax valid? RETURN EXECUTE 'SELECT ...' ;
 
@ypercube me too, for both of them.
1st one is too basic, should read documentation about how to call a function in PG.
 
Yes. And how to construct dynamic SQL.
 
@David Spillett: i used where or join to query, it's ok. Now i want to use inner join to query them — rocky 43 secs ago
this is brilliant :D.
 
4:16 PM
Good to see that there are non US heapers today :-), I thought no one would be here
 
well, we Europeans aren't yet independent, so yeah, we kinda stayed around :).
 
@Lamak It's just Thursday here, nothing special.
 
@ypercube same here
 
@Lamak Except that you have special celebration food in the markets. Happily, Walmart hasn't found its way to Europe yet.
 
@ypercube oh, right, thanks for remind me of that
so weird
 
4:55 PM
I was almost sure that this comment was made by FreshPrince....but I was wrong
I downvoted you because I'm a negative bastard. I hope this hurts you personally, mr positive. — DeadMG 3 hours ago
 
5:35 PM
@Lamak Why does a Chilean supermarket have specials for US Independence Day?
 
@James sigh we are all puzzled. The simple answer is because Walmart bought it, the not-so-simple answer is because their marketing team is full of idiots
 
6:15 PM
@ypercube it had two votes to close, then I closed it to migrate it
 
6:54 PM
@ypercube that question sucks
 
@FreshPrinceOfSO Ah you are here.
Bored of the fireworks?
@FreshPrinceOfSO You were mentioned in the morning.
 
@Marian Shhh, he's messing with Gordon now.
Did I misread that the OP mentioned no row number? — FreshPrinceOfSO 3 mins ago
But I think he got busted.
 
@ypercube yeah, me too. I think he needs an upgrade of his phone ;).
 
He messed up oracle's ROWNUM with window function ROW_NUMBER().
I wonder that Gordon bothered to answer though - between answering the 100th and his 101st question at SO today.
Oh, my bad. Only 12 today. And it's already noon in New York.
 
7:14 PM
@ypercube In my defense, I really thought that @FreshPrinceOfSO made that comment ;-)
 
@Lamak which one?
 
this one:
I downvoted you because I'm a negative bastard. I hope this hurts you personally, mr positive. — DeadMG 5 hours ago
 
Ah, the "negative bastard". But I was referring to the other mention.
The one with the star. Look right --------------->
 
@ypercube oh, then carry on
@ypercube saw it now
 
@FreshPrinceOfSO We are just jealous that you get the girl in the end.
 
7:29 PM
please vtc
-1
Q: TSQL Converting rows into columns OR Grouping rows

Rizwan MalikI have to calculate shift hours of every staff member. I have written a query that gets the data from our OLTP system and returns the date, staff and their login logout time. Login and logout times are two separate transactions in the system but i want login and logout time in a single row. See b...

 
@ypercube Would that question work with MS SQL's set nocount 1?
not sure if the LIMIT mentioned is the limit from MySQL or just any limit
 
@bluefeet Shouldn't we give the OP time to respond?
 
@AndriyM If they edit with the details, then it can always be reopened
 
@bluefeet Yes, I was just a bit worried that reopening might not be as prompt as closing.
 
7:46 PM
@Marian I guess so , yes.
 
@ypercube thanks, I posted a piece there. Guess the other readers will decide if it's a valid option.
I know I shouldn't play on SO, but today is ok, as the playground is empty :D.
 
+1 for you. I guess it's not "plain SQL" as the OP wants but lets give one more frustration to Prince and Gordon.
 
@ypercube thanks, I guess only to Gordon, as the Prince already ignores us successfully :-).
 
went through the effort of doing a sql fiddle but didn't post the code in the answer.
0
A: SQL join query returning row for each matching ASOC

deegMSDN Article on removing duplicate rows with distinct SQL Fiddle of the code http://sqlfiddle.com/#!3/9a39a/1

 
@Marian You can add a OFFSET-FETCH variation. Perfectly valid ANSI/ISO SQL.
 
8:03 PM
@ypercube ha, nice. So add your own answer and let's let the Prince enjoy our solutions :).
@bluefeet you really think they should be paired? I always saw Fiddle as a part of SO.
I guess you're right, though.
 
@Marian absolutely
sqlfiddle can go down
 
@Marian sql fiddle unfortunately is not reliable. It goes down quite a bit
 
@ypercube well, no (the syntax itself is valid, but...)
SET check_function_bodies TO on;

CREATE OR REPLACE FUNCTION a() RETURNS boolean AS
$$
BEGIN
RETURN EXECUTE 'SELECT TRUE';
END;
$$
LANGUAGE plpgsql;

SELECT a();
and it is clear that the OP don't call the function in their question
 
@dezso So the above will work? OK, that was what I was asking.
 
@bluefeet , @Lamak point well made.
 
8:13 PM
@Marian another thing is that you wouldn't know when another user posts a duplicate answer, for instance. There could be a guy who opens the fiddle, copy the code and paste it as the answer. I would be prone to upvote that answer if I don't see the code on the other one.
 
8:38 PM
@ypercube the what?
@bluefeet done
 
@FreshPrinceOfSO Follow the star -------------->
10 hours ago, by Marian
@ypercube I see they even got the plot right. They also have a prince :-).
 
 
1 hour later…
9:41 PM
@MikeFal It's back. This time its killing the application server.
 
9:52 PM
@ypercube you can create such a function but it will throw a runtime error
 
10:17 PM
Can you understand what this guy is saying?
@ypercube For the indexes, it would only be stores of PRIMARYs; at 1 million BIGINTs, it'd be only ~16mb. For rows, infrequent or unused ones would be removed from memory based upon open user sockets and time limits, with time limits on inactive connections. Only text will be buffered, definitely not images which require an extra user step to extract from the database. All site data will be stored in the database, will be written before updating c++ memory then users, and will be heavily normalized to allow for wiki-type editing, but the FOREIGNs will never be UPDATEd. — Gracchus 7 mins ago
I can't.
 
No.
That's part of why I rarely answer. Most questions seem to fall into one of three categories: 1) Stuff other people will answer better than I would, 2) Incoherent stuff, 3) Sad people pasting mysqltuner output
 
10:38 PM
@ypercube he's not doing cascade updates, the indexes being bigints will take up 16 bits apiece, so the index will be 16 bits * a million records or 16mb. He would like to use time-based caching so records are nearly constantly fresh. On first reading of a row (initial application code select) he doesn't want the binary fields from the database, those can be loaded individually later.
The last part about "and will be heavily normalized to allow for wiki-type editing" escapes me.
and aren't bigints 64bits?
 
Yes, mysql's BIGINT is 8-byte
The question seems to be how to limit the memory used by MySQL so it can be used by the webserver/application - which will be doing the caching.
But it's not very clear.
 
He doesn't know what a database is
He wants to use the database as a fancy file store, and he wants to make his own version of an in-memory database
 
@jcolebrand yes, my thoughts exactly.
 
Ergo: closed
 
10:54 PM
took me 5 seconds to figure what you were saying :)
The level of the migrated from SO questions today is awesome.
3
We're here for programming questions. Not server configuration. I recommend throwing your server off a very tall cliff. It should go much faster after the few seconds of freefall. — Marc B 1 hour ago
 
11:10 PM
@ypercube Similarly noted following the last 10 minutes catching up on the site. We really need that "smash back to SO with a shitty stick" option.
 

« first day (912 days earlier)      last day (3971 days later) »