« first day (1526 days earlier)      last day (3640 days later) » 

10:18
Where's our vertica-in-chief?
0
Q: Query band like feature in Vertica?

LironCaretoI've been working long time with Teradata and I've found its Query band feature very useful for audit purposes. Now I just stumped in a project based on HP Vertica and I can't find any similar feature. Do you know if there is something similar or should I give up? As you probably know there is no...

 
1 hour later…
11:32
-2
A: Cant get rid of filesort in simple query

PuddingmannThank you for this question. Unfortunately I can't help you

Then why post an answer? — Mark Sinkinson 2 hours ago
Indeedy. I already reviewed that as a delete
@JackDouglas :)
12:20
Yey, my rep in SO can be read upside-down: 66099
12:41
@ypercube how can you have acquired so much rep without being committed to a lunatic asylum?
@Phil I was but escaped.
I rarely answer now - but the rep keeps growing.
@Phil They let him out from time to time in order to come to Drinkies.
JNK
JNK
13:14
mornin all
@ypercube same here I rarely post answers. Once you have a critical mass of answers already you just keep getting periodic upvotes on them
@JNK Yes. @gbn called it necrorep once. Most days I get one or two upvotes on something I posted months or years ago.
I only answer something on there if I need more rep for downvotes, to combat the ShitOverflow™
this made me chuckle. the $5000 compression challenge: patrickcraig.co.uk/other/compression.htm
13:51
@ypercube Lately I answer like a couple of questions a week
I don't think an optimization trick will fix this: answers.sqlperformance.com/questions/2615/…
14:16
wow. 16 billion spools
Could be an EAV design?
Full of outer joins, so possibly. I assume some cross joins (maybe unintentional).
I'm gonna go out on a limb and say it was arson
but WHO WAS IT??
The world may never know
14:58
Proof you're better off writing answers to SQL Server questions on here: data.stackexchange.com/dba/query/284539
doing away with integer math makes it less severe
I do not care for your query formatting
Was never a fan of the K&R style for delimiters
K&R?
15:07
The C Programming Language (sometimes referred to as K&R, after its authors' initials) is a well-known computer programming book written by Brian Kernighan and Dennis Ritchie, the latter of whom originally designed and implemented the language, as well as co-designed the Unix operating system with which development of the language was closely intertwined. The book was central to the development and popularization of the C programming language and is still widely read and used today. Because the book was co-authored by the original language designer, and because the first edition of the book served...
Yeah, this is what I don't like to see en.wikipedia.org/wiki/Indent_style#K.26R_style
Not quite awake yet it seems
@billinkc it's not easy writing queries on an iPhone
I get this from sqlfiddle today:
Error 503 Service Unavailable

Service Unavailable
Guru Meditation:

XID: 741288631

Varnish cache server
@Phil it's also not easy being green
At least mysql doesn't get up voted that much data.stackexchange.com/dba/query/edit/284573
@swasheck I pressed many times, it wouldn't go.
15:15
@swasheck well, I wonder. You'd have to be pretty stupid to just do that - maybe he posted his status on facebook with a video of him lighting the match in a mirror. Then again, maybe the wife did it (or had it done) and made it look like it was him. Often it is the simplest answer but if that's true in this case the guy didn't have enough IQ to be married in the first place.
> ARVADA, Colo. - Police have an arson suspect in custody after a burning house was found with 'My wife is a cheater' spray-painted on the outside.
@AaronBertrand true. a suspect is in custody
(ah. original article has been updated as well)
poleese only arrest the guilty
And cops would probably automatically assume that the husband is the only possible suspect. They might be right, but that would be pretty short-sighted IMHO.
@billinkc ... shoot the innocent
Create enough laws, everyone becomes a criminal
15:17
@AaronBertrand yeah. nobody's ever been framed for anything. ever
Hey shooting the innocent prevents all that paperwork, processing the person, and transporting their dirty self in your pretty police car
They might fart or bleed on you and boom, more paperwork
collateral damage in the war on crime
"While not particularly offended", you felt the need to flag for mod attention... why exactly? Maybe leave the flagging to the people who are actually offended - and then have their flags declined because that's the most stupid thing anybody could be offended about. — l4mpi 4 mins ago
@AaronBertrand typical MSO post
you sure you don't want to be a SO mod?
15:23
Um, yes
we can switch for a day
2
ooooh, I like that idea
maybe a proposal for meta.SE. "Can we have a "switch for the day" mods?
"Be grateful for that mess you have" day
@Lamak too difficult to implement
And I think you'd only get volunteers from SO who want a break, and nobody from other sites who want to see stuff from SO they'll never be able to unsee
2
15:27
what's difficult about it?, we just paint @AaronBertrand's feet blue and we're done
@AaronBertrand can you nuke this? It's an exact dupe of his other question
Why have you posted this again? You already have a question with this issue — Phil 41 secs ago
@Phil Should the original be re-opened?
You can do -he's finally provided the info needed
How do such people get a job where they are responsible for even spelling Oracle?
@AaronBertrand you may as well nuke the comments on it too. Teeth were pulled
15:37
@Phil I've already nuked all but two (yours with the link may be useful to future readers, and I left the most recent message about panic)
@AaronBertrand we actually don't have many active mods. If we get burned out we just take a break. That's the plus to have 17
@bluefeet But I bet some people follow along even on days when they're taking a break. This swap could prevent them from doing that by denying access to that panel for the day.
If I'm online I have a hard time staying away for too long.
just got a recruiter email from a dude who looks like peewee herman
@swasheck Dude, welcome to last week.
thanks!
15:49
I'm here to help
when news breaks, we fix it
16:04
@AaronBertrand that user & question is the worst one for a while. Heaven help the world if he's ever in charge of some data that is actually important
@AaronBertrand this is a reason why we need breaks from modding.
beating a dead horse daily
@bluefeet i'll stand up for you
@SpencerRuport ... non sequitur meta.stackoverflow.com/questions/287747/… what does bluefeet's modding ability have to do with the downvoting actions of others? — swasheck 28 secs ago
16:18
@bluefeet yeah that guy is a maroon
Well, the site has gotten busier. The mall is less friendly when there are more people there, too. shrug Just because there are more people likely to down-vote you for writing a crap question does not make those down-votes invalid. — Aaron Bertrand 1 min ago
Cue the revenge down-votes in 3... 2...
@AaronBertrand I agree. Why trying to have a discussion if you are set on not accepting anyone else's opinion?
"Overall it's a good question" - everyone on SO thinks that every question they write is a good question. Guess how many of them are right?
Lead Dev: WHY ARE THERE SO MANY TIMEOUTS AND LOCKS ON THE SERVER DURING THIS TIME?
Seth: You threw three queries against the server at the same time. They're bad queries. Like 38GB memory grant bad
38...GB?
Ouch
*3
also ... we're QA-ing this new thing called Unicode in production.
16:22
@AaronBertrand So many people seem to be getting butt-hurt these days. I looked at his question, 3 or 4 links to what he is doing. I'd downvote, too. Why is it everyone assumes when you get downvoted that it's some sort of personal attack?
I've asked crappy questions before and had bad answers. Take your knocks, learn form it and move the hell on.
@KrisGruttemeyer it's because of the unicorn points.
blame the unicorn points
Now I want to write a tracker and the next time that person interacts with the site - either a Q or A, I'd post a reference to
@AaronBertrand - No. I came here to say this kind of behavior has driven me away. Like I said, if you don't think that's an issue then there isn't a problem. — Spencer Ruport 1 min ago
Ok, so you're taking your ball and going home because you did something wrong and refuse to learn from it. Have fun on forums where you get up-voted for everything. — Aaron Bertrand 25 secs ago
Something like "driven away" far far away
I understand. My 2-year old has similar behavior.
16:29
You should raise her better
Working on it. Shock collar user manual says 3+
I think that's Volts
Oh Tim Stone, I enjoy your twitter stream
Sure, I tell you and you tell someone else and the next thing you know, we're in the middle of the next ice age
16:52
i really enjoyed that movie
It's all kicking off with Top Gear Top Gear's Clarkson suspended by BBC
http://www.bbc.co.uk/news/entertainment-arts-31824040
Hopefully it's not like the Jimmy Saville (sp) "fracas"
It is sooo nice!
@Phil bummer I love that show.
frickin' fracases
I do hope that mso question doesn't get deleted
17:06
Something else I found odd.
17:17
@zane he's on his final warning too. Might get kicked. Though he owns Top Gear along with another of the producers. Rumour has it they've got Chris Evans lined up as a replacement of Jeremy ever does get kicked
@AaronBertrand stop being mean! dba.stackexchange.com/questions/94765/…
No, you're "phil,Aaron Bertrand" not "Aaron Bertrand,phil"
phil my face, it's getting fuzzy
@AaronBertrand awee I never got to see it.
not worthy of visibility.
17:21
@Zane -You did not lose anything.
Gotcha.
Neither did I, I presume
@AaronBertrand "it is 100% db related question.If you are not aware ask your forum of members." - it may be database related but it STILL SUCKS!
All of that users questions have been shyte
to put it nicely
17:30
I know you have to start from somewhere, but at least buy a For Dummies or For Complete Dipsh!ts book and work your way through it
cram everything into one
This is really cool solution and seems to be exactly what I need. I don't necessarily like the fact that it takes multiple statements to get the job done but I tend to always try and cram everything into one statement (good or bad)... thanks for your help — sadmicrowave 2 mins ago
The Oracle Server Concepts document is BRILLIANT, and goes through everything in detail
Including your wallet
@billinkc like farting in the elevator ... nobody wants to say anything about the present awkwardness
It's not as expensive as you think. Nobody pays the list prices
17:35
-1
Q: Changing Into CamelCase

Raj MoreI often received CSV files to load into the database using SSIS. Most of these CSV files have all uppercase headings (primarily because my Oracle exports only with uppercase column names). COSTCENTERID,REVENUETYPE,ACCTG_MONTH,FLOW_MONTH,ACCOUNTSUBTYPE,ACCOUNTTYPE, OPCOCODE,JURISCODE,STATE,ISO,RE...

@Phil Don't go shooting holes in one of my favourite jokes
Shopping list if anyone feels like voting to close
WAT!
that's just a dumb question
> To me, a column called FIRSTNAME should actually be FirstName.
To me, you shouldn't be in this job if this is a primary concern.
Or may be he's doing so well that that's become his primary concern
@AndriyM that's excellent perspective. thanks
Except I know the user
A wild PowerShell comment/answer appears
His column names don't have spaces. He wants a dictionary.
17:47
mysql> create table example ( `number` int(11) not null );
Query OK, 0 rows affected (0.08 sec)

mysql> insert into example (number) values (10);
Query OK, 1 row affected (0.08 sec)

mysql> insert into example (number) values ('wat');
Query OK, 1 row affected, 1 warning (0.10 sec)

mysql> insert into example (number) values ('what is this 10 nonsense');
Query OK, 1 row affected, 1 warning (0.14 sec)

mysql> insert into example (number) values ('10 a');
Query OK, 1 row affected, 1 warning (0.09 sec)
We should flag you for posting mysql onnsense
What I don't understand (possibly because I know next to nothing about SSIS) is why that is a concern at all. Aren't his tables already created? Or is he importing data into new tables?
@swasheck Who are you and what have you done with Seth?
insert into example (number) values ('1e1f1g1');
17:50
@AndriyM You have the ability when you create your package to have it define the table. It's just utter laziness and smacks of not having done any due diligence about whether the types are sound for the data domain, etc
@swasheck Related question from yesterday SO: stackoverflow.com/questions/28952960/…
delete
from HeapUsers
where userid = 'swasheck'
  and IsWorkingonMySQL = 1
You can remove the = 1 - in mysql ;)
@ypercube stupid MySQL
and its backwards syntax
@ypercube Er, that's assuming the query was for MySQL :)
17:56
Well, that's not exactly stupid. Boolean type is missing from SQL-Server
@swasheck "Schemaless storage engines promise to make your life easier by removing the need to worry about a schema. In reality these systems simply make it your own responsibility to ensure data consistency. In certain cases this might work out, but I’m willing to bet that for most this will only backfire."
Obvious.
Not that mysql has a true boolean type anyway
I've got a hypothetical SQL Server question that "yes, I could test" but I'm looking for feedback on, since it's not MySQL related can I ask it? :)
17:59
(imma chargin mah lazor)
@billinkc So, if he is concerned about automatic case conversion of column names, that kind of implies he may not be paying attention to other, more important things (like type mapping or something), correct?
@bluefeet well this is some question
We've got a process that runs every 2 hours that processes our billing. In this process we store our final billed data in data warehouse tables, but currently we do a delete from tbl where billingdate = <date>, then insert into tbl for each one of these. We've got about 15-20 tables this happens on.
We don't perform any log shipping in our environments and we'd like to start shipping the logs to a read-only version for reporting. Our concern is the size of the logs with the delete/insert so we want to possibly replace these with merge statements.
WHAT HAVE YOU TRIED?
suck it @swasheck
18:03
you suck it
nothing, yet. Just doing research on possible solutions to fix this problem
How big are the logs after the delete/insert operation? Might be helpful to see how much of the network pipe will get used
problem is many of these DW tables currently have no unique id for each row - we've gone and used an identity column which worries me when implementing a merge
@KrisGruttemeyer that's one of the tests we have to try. We don't know yet
@bluefeet also, psych rocks
@bluefeet i've had lots of luck with MERGE
but it's all been bad
the goal would be to have the logs be small enough that we could ship them via log shipping
18:06
@bluefeet Understood. The data is going to have to flow over the network either way. You could decrease the time between log backups to help with the size
that way your network can eat the elephant one bit at a time
@bluefeet tell me more about your log shipping. are you geodispersed or just in a separate AZ DC?
if youll pardon the horrible pun
@KrisGruttemeyer so you're suggesting Hadoop?
@swasheck none at this point. DBs are in simple recovery and weekly they take back-ups which are then loaded into dev, qa environments. We've just implemented a BI environment that gets it's data weekly, we will use the log shipping to get more frequent updates
@swasheck Nope, start with the baked in SQL goodies first. Taking the logs at smaller intervals will decrease the size of each of them, less leg work for log shipping.
Just my thoughts, that's where I'd start
There is the catch of every user getting booted when the logs restore to the read only though
18:11
Ah SharePoint my old nemesis we meet again.
@Zane nope nope nope nope nope
With you fucked datatypes and other weird issue you will surely give me a headache on this day.
Not to mention case sensitivty
Sorry, that may make the headache worse
I should have screenshotted that flagged chat message
missed it
18:15
Someone flagged mysql code
crazy kids
18:25
Joking about hadoop
Could you please explain exactly how the accepted answer helped you? As far as I can see, it calculates the same results without adding any filter. The MAX(period) column is added to the derived table only (without an alias too) and it isn't used anywhere in the outer query. So far, your having accepted that answer is bound to be very misleading for whoever may later come across your question. — Andriy M 45 secs ago
Afternoon folks...anyone here use any particular product/solution for keeping a script repository within their team or company?
@ShawnMelton SVN
@Zane that is what I am looking at now.
@ypercube GitHub?
18:34
It has potential but we're using it wrong.
@ShawnMelton github or private server.
github has nice tools
(for issues, seeing diffs on a browser, etc.)
@Zane Yeah I have looked at but would require a bit of knowledge transfer on using it...
Also considering VS online, have not messed with it in a while though.
Ours is a total free for all.
@ShawnMelton git is a Linux thing. It can run fine in windows but it helps if you have linux/command line experience.
I can get into Linux and tool around but not proficient with it all.
18:42
But once you pass the first curve, it's awesome
@ShawnMelton I'm liking VSO quite a bit these days, but I don't need much for source control. I just finished setting up a new VSO account for my company.
@mmarie Yeah, I'm trying to find something that is simple as can be...making it easier to work with I think will cause it to be adopted across teams more at current company.
@ShawnMelton SVN
I feel like VSO is simpler to set up and use than Subversion. I've never used Git.
18:49
@bluefeet do you really need it that frequently, though?
@swasheck yes, the BI is for financial reporting. They'd like it more frequent than once a week. Ideally they want as up to the minute as feasibly possible
@bluefeet that's absurd
@mmarie when you google VSO it doesn't give me source control.
@Zane VisualStudio.com or Google for Visual Studio Online
@bluefeet if that's really a requirement, then i'd look into Tx replication (i know how you love that) or pay for AOAG
18:54
@ShawnMelton hmmmmm.
@swasheck potentially that might be a later installation. Just not at this point
@bluefeet then at this point hopefully youre BI end users are ok with the complications associated with what's available :)
"Nico Pratama has invited you to join Discussion between Nico Pratama and Phil." -- I wish he'd stop this! Does he think I'm some sort of on-call gimp of his? Damn right rude spamming me with chat requests all the bloody time!
Prat
19:07
@Phil Could it be automatic, by the long comment threads?
He has only 1 rep, so he can't chat anyway.
Monkey with a gun. Everyone back away slowly
@billinkc Monkey with a gun sound much more appealing that ETL from a SharePoint List.
Speaking of SVN, i keep getting a 405 error connecting to my new repository for this client. :-(
How are you accessing it? Through Tortoise or hitting the web url?
Given the amount of security, they might have WEBDAV turned off and you can only use ... whatever the other protocol is
tortoise
and no i'm not goign to the parent folder
19:18
Gah!
False alarm on the SVN issue. My project lead had a typo. :-)
I've decided to help anyway, given the likelihood of him completely destroying all of his data is quite high :D
0
Q: ORA-12528 and ORA-12505 error on oracle database 11g

Nico PratamaIts been one week since i last try to run my final project that i worked in my last internship at some banking company. Suddenly, my webapps (java project) in eclipse cant start. In the log it says that it failed to make a connection to the oracle database, with some error listener in it. So I t...

Spelling counts
@MikeFal good thing you remembered the "o"
@Phil You read that whole error message?
19:31
@Zane Nah. Larry Ellison told me to look for ORA whenever there's a problem.
@MikeFal it does?! Oh no I'm boned!
@Phil Yeah. You and Larry Pretty tight?
The square brackets make this appear to be the actual column name, this would rightfully throw an error. — bluefeet ♦ 2 mins ago
Lol
assumptions people make
0
A: SQL Joining from 2 fields to a concatenated field

Stephan CalderonTry this: join PROD..CART on CONCAT(Cart.CART_ID,Cart.USERID) = CW_PING.QuoteID

@bluefeet someone should compile a book of "interesting" items from SO. It would be about 2 miles thick, and everybody who picked up a copy would immediately flip to the back, and add their own page with their own question.
19:46
@bluefeet I love the 'rightfully throw an error'
20:05
@billinkc am I misunderstanding the question here?
Why don't you just Name you SQL Server columns whatever the heck you want and then just change the mapping? — Zane 23 secs ago
That the user is an idiot
He's definitely an idiot no one is disputing that.
They're just going to run into the classic problem of profanity filters
I like that it's tagged as notepad ++
There will be multiple options for words embedded into his column names and what he sees because you know, HE FOOKING KNOWS WHAT IT SHOULD BE, he wants to try and automate it
It's a shopping list question that should go to a watery grave
20:09
0
Q: Follow up on earlier today: Is there any way I can speed up the following insert(s)?

districkttSorry to bother again but I need an answer to this question since I can't seem to come up with one myself. Here's the previous post: Is there any way I can speed up the following insert(s)?. Consider the following: CREATE TABLE myTable ( random_value1 NUMBER, random_val...

Yes, bother us again when you have an answer with 8 upvotes that is already accepted by you...
Good lord people are stupid.
@Zane Yup! I touched one of his boats once
@Phil My guess is he lights his cigars with torched boats.
@KrisGruttemeyer It seems that when he tries to extend that answer for a random string, using v_my_array(DBMS_RANDOM.VALUE(1, 5)), he does not get a random one.
Seems legit question to me.
@ypercube Why isn't it just an edit of the previous question?
20:16
It could be. But the problems look different to me - although related.
I wouldn't like the question to be altered, after they had accepted my answer either.
Obviously, it depends whether DBMS_RANDOM gets called once or multiple times. In that question, it gets called once when the variable is declared. May as well just stick 42 in there to initialise it and have done with it.
@KrisGruttemeyer well it would, right? :)
Removed my comment
@MaxVernon just think you only see a small percentage of the joy I see as a mod
@bluefeet It certainly would, the use of the word 'rightfully' made me smile, haha
20:19
@bluefeet anyone who dares moderate SO should be given a giant medal in my book!
@Phil I have no idea why. What is that v_my_array() ?
"Some doubts" - no doubt.
0
Q: Converting MyISAM into InnoDB. Some doubts

jjadamsI wanna convert my MySQL DB (46 Tables, 2.1 GB) from MyISAM to InnoDB. I have a couple of questions about this process. 1) Since I have a Master/Slave structure, do I need to manage this and change the Slave also? Or any structural changes will directly affect the Slave? 2) Related to n.1, do I...

If I could downvote I would -- for suggesting that this 5 lined SELECT is "common sense!" — eze 10 mins ago
Necro-comments
@Phil have a +1 for common sense.
Haha
20:23
Is it accurate?
He obviously finds it un-"eze"
Aren't you generating the difference in seconds? Need a /60.0 to get it back to minutes?
Ha, yeah... :D
Clickety
Feel free to rollback the edit if you wish
@billinkc I like your edit <3
20:36
You do reference it as primary school, yes?
@Phil, I checked the other answer and it seems to work.
0
Q: What is an index KEY - emphasis on KEY?

user3469285What does the 'key' part of the phrase 'index key' mean? Is the key a number? what is it? If I have the table of data containing a column called LastNames, and I have, say, a clustered index on it, is the 'key' for each row simply the last name? Would an example of a 'key value' be something lik...

Oh my!
I was mistaken at first, thought that the cast to date would remove the time part
Mercy
Nuked as learn to search the f'ing interwebz
Rolando is winning the internetz at the moment
@Phil is this correct?
@ypercube I doubt it. It will probably error out with n3 is unidentified or x.n3 is unidentified. If i remember correctly an array needs a constant/literal as an index. A variable doesn't work. — ruudvan 3 mins ago
Seems like a very narrow restriction, if true.
... and stay down
(kidding, natch)
21:02
Between SharePoint, SVN, and our broke ass UAT submission tool this day has taken ages off of my life.
Luckily a sunny bike ride and a beer will make it all better.
scotch will do it for me
@AaronBertrand I seem to have a glitch with plan explorer.
There is no ability to scroll up farther.
@Zane Yes, I'm screwing with Tableau and Impala on Hadoop and SVN. The tools make me miss SSMS and VSO, in addition to needing a beer. Luckily I have a lovely beer dinner to attend tonight
I plan on hitting a patio and reading with a beer for sure.
Anyway I'm out. Want to bike home in the impossibly nice weather. 65F in Minnesota in early march is not something to be taken for granted.
21:31
It's a zonkey!
ZOINKS
@mmarie Super!
@JamesLupolt It's mysql day, today ;)
5 hours ago, by swasheck
http://developer.olery.com/blog/goodbye-mongodb-hello-postgresql/
A bad day for MongoDB and MySQL
5
A: MySQL is giving weird result

ypercubeSome DBMS are omnipotent and merciless. They give numerous warnings and errors in all kinds of situations when is user is attempting the slightest deviation from the correct behaviour - defined by the standards and the dbms documentation. MySQL is merciful and all-loving. She is trying to help e...

22:47
@ypercube Upvoted.
 
1 hour later…
23:49
Is there a reason for the anonymous downvote? — Gordon Linoff 22 mins ago
No, I just like the responses.

« first day (1526 days earlier)      last day (3640 days later) »