Re: [rt-users] MySQL Question (joins and stuff)

2014-03-04 Thread Kenneth Crocker
-- From: Landon Stewart lstew...@iweb.com Sent: 3/3/2014 3:02 PM To: RT Users rt-users@lists.bestpractical.com Subject: [rt-users] MySQL Question (joins and stuff) Hello, I'd never modify the database without the API but I'd like a flattened version of the data as a snapshot

Re: [rt-users] MySQL Question (joins and stuff)

2014-03-04 Thread j.hubbard
Hi Landon, below is some sql I wrote (I'm not too good at sql so some of it could probably be optimized). It pulls a bunch of fields both system and custom as well as the first comment on the ticket and names the columns something friendly. Also it compensates for timezones since the db is in

Re: [rt-users] MySQL Question (joins and stuff)

2014-03-04 Thread Landon Stewart
Jason this is brilliant! Thank you! On 4 March 2014 13:57, j.hubbard jason.hubb...@circles.com wrote: Hi Landon, below is some sql I wrote (I'm not too good at sql so some of it could probably be optimized). It pulls a bunch of fields both system and custom as well as the first comment on

[rt-users] MySQL Question (joins and stuff)

2014-03-03 Thread Landon Stewart
Hello, I'd never modify the database without the API but I'd like a flattened version of the data as a snapshot every so often for statistical purposes. If I run the following MySQL query I basically get a line for every CustomField Value and it duplicates all the T.* fields while writing new

[rt-users] Mysql question

2008-08-04 Thread chaim . rieger
Does anyone know of a tool (ideally Linux command line, and ideally ideally with source or PowerPC binary package(s) available) that grab a partial snapshot of a MySQL database? Trying to setup a development server that obviously can't hit the 'live' database, but don't want to, even

Re: [rt-users] Mysql question

2008-08-04 Thread Tim Cutts
On 4 Aug 2008, at 7:05 pm, [EMAIL PROTECTED] wrote: Does anyone know of a tool (ideally Linux command line, and ideally ideally with source or PowerPC binary package(s) available) that grab a partial snapshot of a MySQL database? Trying to setup a development server that obviously can't hit