« first day (430 days earlier)      last day (4453 days later) » 

gbn
7:36 AM
morning all
 
8:16 AM
Morning
 
9:15 AM
Morning
 
Mornin'
 
9:46 AM
Friday \0/
 
10:08 AM
I have a trivial SQL question (I don't really know sql). What is wrong with this query?
SELECT * FROM (SELECT statgroup_id, type, pvalue FROM mouse12rss.statgroup INNER JOIN mouse12rss.stat ON statgroup.id = stat.statgroup_id WHERE numsim=10000 AND iterations=10000) AS foo WHERE foo.statgroup_id=(select MAX(foo.statgroup_id) from foo);
Here mouse12rss is a schema, and statgroup and stat are tables.
 
gbn
what is the problem?
 
I get:
 
gbn
error? wrong results? And what engine?
 
ERROR: relation "foo" does not exist
 
gbn
It doesn't exists in the WHERE clause
what are trying to do in plain english ?
 
10:10 AM
LINE 1: ...RE foo.statgroup_id=(select MAX(foo.statgroup_id) from foo);
@gbn Hi.
Select rows corresponding to foo.statgroup_id from the subquery foo.
 
gbn
just highest statgroup_id?
 
So foo is not in scope in the WHERE clause?
 
gbn
What engine?
 
@gbn Yes.
 
gbn
correct
 
10:12 AM
@gbn PG
 
gbn
...
FROM
    (
        SELECT statgroup_id, type, pvalue, ROW_NUMBER() OVER (ORDER BY statgroup_id DESC) AS rn
        FROM mouse12rss.statgroup INNER JOIN mouse12rss.stat ON statgroup.id = stat.statgroup_id
        WHERE numsim=10000 AND iterations=10000
    ) foo
WHERE rn = 1
 
@gbn Yikes.
 
gbn
ask the question on SO...
 
@gbn : I thought it was trivial...
@gbn Not on-topic in DBA?
 
gbn
maybe, But it is simple
 
10:17 AM
@gbn : The stuff you posted is the latter part of this query?
 
gbn
yes
anyway, should be RANK not ROW_NUMBER sorry
 
@gbn Ok, thanks.
 
gbn
0
Q: PostgreSQL - LIMIT with ties

AndrewI'm looking for something similar to SELECT TOP n WITH TIES FROM tablename I know about LIMIT in PostgreSQL, but does the equivalent of the above exist? I'm just curious as it would save an extra query each time for me. If I have a table 'Numbers' with attribute 'nums': {10, 9, 8, 8, 2}, I wa...

 
I see. So, select rank=1.
 
gbn
Same problem as that ^
 
10:20 AM
@gbn Great. That works, thanks.
 
10:36 AM
Oh, lordy. Just found a table with the column names "1-4hr" "4-8hr" "8+hr"
I'd shoot the dev that wrote it, but he's left
 
gbn
@Phil can still hunt him down
 
@Phil Friend him on facebook. For old time's sake.
... until you show up with a shotgun and a bad attitude
 
Oh so tempting
 
@gbn: You're must be in an unusual time zone to be awake at this time.
 
gbn
@FaheemMitha it's almost lunchtime
My profile says "Malta" so GMT+1
Now @SimonRigharts should be in bed or in the pub, given it's midnight in NZ
 
10:47 AM
@gbn : Right. Only +1? I thought Malta was in Eastern Europe
But my geography sucks, sorry.
 
gbn
Then it would be after lunch...
where are you?
 
@gbn Actually, just woke up from a nap. A five-hour nap. There goes my sleep pattern :v
 
@gbn : India. Coming up to half past four in the afternoon here.
 
gbn
@SimonRigharts lunch time drinkies then?
ooh. I'm hungry now. Kebab for lunch today :-) kebabji.blogspot.com
 
@gbn: Don't know a thing about Malta. How is it?
 
gbn
10:50 AM
Nice, small place
Like the UK but better weather and nicer people
 
@gbn Better weather than the UK is still a lot of scope for improvement ;)
 
@gbn Sounds good.
 
gbn
@SimonRigharts In Switzerland, when the continentals complained about the weather they couldn't understand why Brits and Irish were out in shorts and flipflops enjoying the good weather. It's all relative
 
Find Switzerland a bit bizzarre
Amazing quality of life though
 
gbn
@Phil is that like "anal"
Which is why I'm in Malta, not Switzerland now
 
11:14 AM
@Faheem: Malta is an island, south of Italy
 
gbn
@ypercube FYI...
these cover most bases, RSS and/or Twitter feeds
And most agencies use one or more of these too
 
ah, thnx. I have work to do in the weekend :)
@gbn: How does Maltese language sound? Is it simlar to Italian?
or totally different?
 
gbn
@ypercube arabic with latin script
although Italian is widely spoken
 
 
1 hour later…
12:30 PM
Oooh, 12:30 already. Awesome
Hmm
 
1:30 PM
@gbn The thing that struck me about the Swiss when I interviewed at one of the Gnomes of Zurich was their total absence of body language. I was answering an interview question and had two people just staring me. 'Hello, anybody there?'
Malta has had a substantial programme to build up an outsourcing industry for a few years now, so they have a fairly substantial industry now, I believe. At one point I did a little digging into the industry development programmes of Malta and Mauritius for a white paper I did for the MDC (Morgan Tsvangarai's party in Zimbabwe).
Didn't get out a lot on Malta, more on Mauritius. However, the Maltese government have put quite a bit of investment into infrastructure and incubation programmes over the past few years.
 
That's an interrogating technique, I think :)
If it works for criminals, why not for (potential) employees?
 
Not enough feedback to tell whether they actually understood what I was saying.
 
gbn
The company I'm with got money from malta.gov
and they have tax deals for C-level types (inc, senior traders gamnes designers etc)
 
@gbn What would the going rate for something like a technical architect (Python, ${database}) be in Malta?
 
gbn
@ConcernedOfTunbridgeWells perm only
depends on company
I've had 3 companies say "too expensive": normally egaming/egambling pays more then consultancies/telecoms etc
But, figures: this is what you can get if you push
40K+ EUR
This puts you into egaming only; the rest are too cheap
 
1:43 PM
OK, that gives me a rough idea.
 
gbn
top end is one gaming-trader-hedgy place with 60-70k+
But word on the street (ie mate of a mate who worked there) is they are really bad to work for
However: commuting costs: zero
 
More getting the feel of what it might cost to recruit and set up a dev team in Malta.
 
gbn
commuting time: 30 mins tops
that's anywwhere walkable from Sliema/Gzire where most IT is
Go for locals, can pay them 25k
 
I'm staying close to work here in Bournemouth and being able to walk to work is a nice bonus.
 
gbn
but they jump often. Any senior Maltese are already in Dublin, London or Zurich
Also, BI skills are in shortage. And expected skills are "evberything". Senior is 2 years (aka an IB intern)
 
1:48 PM
Sounds like you could run a startup with a small dev team for a couple of years on a few hundred grand.
 
gbn
Avg salary is 14k
@ConcernedOfTunbridgeWells yes, but need to avoid churn. Now, if you want a db type and/or manager with fingers in pies...
See my LinkedIn profile
 
What's your background in middleware like?
 
gbn
hhmmm
I'm a one trick pony: Developer DBA or Prod DBA, both with sysadmin and some BI thrown in
I know about other stuff based on former roles and age
 
I'm just mulling over an old project of mine - an insurance policy administration system. The other day I did a little bit of tinkering.
 
gbn
@ConcernedOfTunbridgeWells Tibco. MQSeries etc?
or MiddleTier
 
1:52 PM
Minimising dependencies on third party kit. - Think building a basic ESB server and a workflow engine using Stackless python that can pickle workflow scripts and save them to a database with a generic listener.
 
gbn
@ConcernedOfTunbridgeWells I didn't get some of that...
 
I know Tuxedo :D
and have meddled with MQ Series
 
One of Stackless Python's neat features is that you can pickle (serialize) the process context (local vars, stack etc.) and save it into a persistent storage mechanism.
 
gbn
save blobs?
 
I've briefly looked at RabbitMQ - at the moment I'm in the middle of a thought experiment to see if I can pull it off with a 100% open-source stack.
@gbn Yes. And then restore and re-schedule the script from where it left off when an event listener detects something it's waiting for. Scripting workflows in Python.
Stackless will do this. In my copious free time I'll probably attempt to make a POC of this.
 
gbn
1:55 PM
no full DB behind it then?
So NoSQL could be used
 
Use Hibernate! Snigger
 
@gbn The application will have a DB, so you could use that, however to persist a workflow context all you would need is a KVP like BerkeleyDB.
 
gbn
@ConcernedOfTunbridgeWells excuse me for asking, you married/kids etc?
 
gbn
aka you have free time to tinker
ah
 
1:57 PM
Sort of. I'm in Bournemouth Mon-Thurs nights, so I've started tinkering with this.
 
gbn
ditto me: i have time for work/sleep/drinking it seems
not much else
 
that's all i do
 
I've found that out of (1) a full time job, (2) a relationship and (3) a skunkworks project, it's possible to do at most two at any given time.
 
work/drink/sometimes sleep
occasionally jump developers when they accidentally cross me in a dark alley at night
 
I did quite a lot of specification work on a policy administration system circa 2007-2008, but the project got canned due to some particularly toxic internal politics at the organisation.
I think the project is a bit big for an incubator like Y-Combinator, and probably not amenable to venture capital style management because they're very unlikely to be able to put anyone in who actually understands the market.
But a team in Malta might be cheap enough to bring the start-up costs down to Angel/Super angel levels. (in the few hundred K range)
I've sort of got the technical skills to build a prototype, but it's really getting out of my core competency, at least on a professional level. I've been pretty much a pure database wonk since about 2003.
 
gbn
2:03 PM
@ConcernedOfTunbridgeWells malta.gov may spring for cash
 
@gbn That's an interesting one.
 
So the Maltese govt put up some venture funding for a stake. I shall keep that in mind.
In the meantime I shall continue tinkering, I think.
Anyway, must go.
 
No Oracle questions today :(
I feel neglected
 
2:29 PM
Who named Gamasutra did not know Greek, I suppose
 
@ypercube What does it translate to?
 
Gama means Fuck
 
JNK
I'm assuming they based it on kama sutra?
 
@ypercube that's quite funny :)
 
3:21 PM
On the other hand, he may knew Greek and did it on purpose :)
 
gbn
4:20 PM
1
Q: Are there any fully declarative implentations of SQL

ChrisI was recently bitten by a bug ( in my code ) where these two queries had drastically different runtimes: select * from smalltable st inner join bigtable bt on st.btid = bt.btid select * from bigtable bt inner join smalltable st on bt.btid = st.stid Are there any optimizing, fully dec...

The comment shows that this isn't the real question
 
Yeah, if he is comparing the first query with another version of the first (with different conditions). Which is probably what the comment means.
 
I could just paste the entire Cost Based Oracle Fundamentals book as an answer :D Optimisers are super complicated
 
4:39 PM
0
Q: MySQL Concatenated Index when Joining Multiple Tables

DonIf I have a tables like... tblResource ----------- id r_name tblCategory -------- id c_name tblTag ------- id t_name tblResCatTag ------------ r_id c_id t_id I have read only single indexes are read on tables, and the order of the values is important, so if I index tblResCatTag like... A...

I think there was a question in dba site about what indexes should a N:M table have. A similar question about N:M:L tables might be interesting.
 
 
3 hours later…
7:54 PM
Anybody nosing about?
I need help drumming up a pitch line
 
@jcolebrand What for?
 
So we've got a deal that I'm gonna toss something about the company on a flyer that's going to SXSW this weekend to prospective hires, and I wanted to drop a two line bit on there for some DB help
for the webdev this is what I came up with:
Wanna work for a company with a 9/12 on the Joel Test (We’re working on it!), cutting edge technology, and a close knit team? Ideal candidate will have 2-4 years experience with C# ASP.NET or MVC and be familiar with JavaScript and popular libraries/frameworks, and have some database experience.
I'm just curious what i should put for a dbdev
"we write stored procedures and do integration with other vendors"
I mean, do I wanna mention that we do Hg or do I wanna talk about using tools such as SQL Compare
(as in, we give the tools that folks need, we don't just go willynilly and we don't make you do it all by hand)
 
Hold on - gears turning
 
An easy alternative is to just not mention anything about it
I know that space is already going to be precious, so I can skip that part
 
8:09 PM
Wanna work for a company that already rates 9/12 on the Joel Test (and we’re working to make that a 12!) We’re a close-knit team working with cutting edge technology and we really understand what makes developers tick. The ideal candidate will have 2-4 years experience with C#, ASP.Net or MVC and familiar with JavaScript and at least one of the major frameworks. A good database background would be a real bonus.

We’re also in the market for a Developer/DBA with experience in SQL Server. We do a lot of challenging integration work and we’re looking for a hard core back-end Developer/DBA
@jcolebrand How's that?
 
I can work with that. For the most part the FE guys write their own SQL, very little of the DB team needs to do FE SQL (it does happen, just not often)
> team and provide the occasional but all important database perspective
Also, I'm taking full credit for it, I liked it that much
 
:D
There's an old aphorism that goes: 'It's amazing what you can achieve if you don't mind who takes the credit'
3
 
I think this should be moved to dba.stackexchange
0
Q: What are Objective Business Reasons to Prefer SQL Server 2012 over 2008 R2?

usrMy company is facing the decision whether to purchase SQL Server 2012 Denali or SQL Server 2008 R2 for a new database server. I am looking for objective reasons to choose one over the other. Our requirements: Standard edition (for financial reasons and a lack of need for enterprise features) O...

It has some off-topic closes and I'm thinking it may just get closed or moved to the wrong site.
When are they going to let us pick a destination site that's not in the top 5???
 
@AaronBertrand Sounds like a good candidate for dba.se, and your answer is pretty cogent.
Flagged.
@jcolebrand So I take it that's at least somewhat helpful?
 
@ConcernedOfTunbridgeWells oh indeed
 
8:22 PM
Must go and pay attention to SO. Speak now or forever hold peace, etc.
 
8:32 PM
That was quick. Thanks guys.
 
I aim to please
 
 
3 hours later…
11:10 PM
5
Q: Relational database: in-RAM partitioning? Theoretical structure discussion

BRPocockI'm rewriting an MMORPG server engine using some rather esoteric elements (theoretically good but rarely used in practice), and having a bit of doubt. Some elements of this are “solid” — but the point of doing “Yet Another MMO Server” is to test out some of these concepts in production-level code...

I'm wondering if that would be on topic for DBA... It seems to be right on the line between P.SE and DBA... But far outside my area of expertise to be certain...
 
well, it certainly can't hurt.
send it our way, if you please
 
@jcolebrand Hah! I posted here so I wouldn't have to needlessly bother mods if I was completely wrong about it, sending it over, thanks ;)
 
@YannisRizos ;-) no prob
I prefer the mods to come here to ask anyways, as we usually have someone authoritative in the room (not just mods, but our senior users)
I wish there was a way to mark them as trusted somehow :p
 
11:33 PM
@jcolebrand That could be helpful... I got to run now, it's tequila time ;) I think a couple of other sites did something similar, I'll ask around in TL for references...
 

« first day (430 days earlier)      last day (4453 days later) »