RE: Audit Table storage for Primary Key(s)

2013-05-31 Thread Jason Trebilcock
I'll ask the dumb question. Why not create individual history tables corresponding to your 'main' tables? So, if you have an 'address' table, then the original record could be written to an 'address_his' table via an update or delete trigger (depending on whether you allow deletions or not) when a

RE: update a row only if any column has changed, in a very large table

2013-04-06 Thread Jason Trebilcock
If'n it were my nickel, here is how I would solve the problem (at a somewhat high level). That is, assuming I had an ETL tool available. 1. Create landing tables for your source data. 2. Load data from the source table(s) to your new landing table(s). 3. Perform lookups from the new landing table

RE: Basic SELECT help

2012-11-22 Thread Jason Trebilcock
Having watched responses go back and forth, I'll throw my cave-man approach into the mix. select id from (select distinct id, count(*) from my_table where type in (2,5) group by id having count(*) = 2)a; And addressing one of your concerns about more than two variables...in this example,you wou

RE: Additional Software to Download and Install

2011-10-14 Thread Jason Trebilcock
I'm a fan of Toad for MySQL. http://toadformysql.com/index.jspa > -Original Message- > From: AndrewMcHorney [mailto:andrewmchor...@cox.net] > Sent: Friday, October 14, 2011 1:12 PM > To: mysql@lists.mysql.com > Subject: Additional Software to Download and Install > > Hello > > I just d

Re: Any table visualization tools with wires connecting the actual columns?

2011-04-07 Thread Jason Trebilcock
Toad for MySQL can do the diagramming piece...but, it looks and feels like you might have some of the same frustrations with it as well. But, another tool worth exploring nonetheless. On Thu, Apr 7, 2011 at 2:17 PM, Daevid Vincent wrote: > Does anyone have any suggestions on this? I've written

RE: Exporting the result of a Query into excel

2010-01-05 Thread Jason Trebilcock
> -Original Message- > From: ishaq gbola [mailto:ishaq...@yahoo.co.uk] > Sent: Tuesday, January 05, 2010 7:18 AM > To: mysql@lists.mysql.com > Subject: Exporting the result of a Query into excel > > Hi all, > > I would like to know if there is a tool or command in mySQL that allows > one

RE: Query help

2009-12-13 Thread Jason Trebilcock
Depending on whether you just need to count or the transaction numbers, one of the following three should get you where you want/need to be: To identify the count for comp_id = 675: select count(distinct trans_no) from trans where comp_id = 675 and result = 'o'; To identify the transactions: sel

RE: Natural join problem

2009-09-10 Thread Jason Trebilcock
Methinx you need a "GROUP BY" in there. See below. > -Original Message- > From: John Meyer [mailto:john.l.me...@gmail.com] > Sent: Thursday, September 10, 2009 6:48 PM > To: mysql@lists.mysql.com > Subject: Natural join problem > > Two tables: > > USERS: > USER_ID (PK) > . . .etc > > T

RE: MySQL Windows version

2009-07-10 Thread Jason Trebilcock
to use localhost. > Do you need Apache and PHP? Is there a Windows application that works > like > phpMyAdmin? I tried MySQLAdmin on my Linux system, but I could not cut > and > paste SQL Commands into the editor. > [Jason Trebilcock] Toad for MySQL would be another optio

Re: IDE - SQLYog

2009-06-10 Thread Jason Trebilcock
I think we've got almost all of the big ones listed. To complete the list (or at least grow the list by one), let me offer up Toad for MySQL: http://www.toadsoft.com/toadmysql/ On Wed, Jun 10, 2009 at 1:55 PM, Isart Montane wrote: > I've been using phpmyadmin as a MySQL GUI for some time and wor

RE: relational tables

2008-03-20 Thread Jason Trebilcock
See below... > -Original Message- > From: John Taylor-Johnston [mailto:John.Taylor- > [EMAIL PROTECTED] > Sent: Thursday, March 20, 2008 2:17 PM > To: Sebastian Mendel; mysql@lists.mysql.com > Subject: Re: relational tables > > DROP TABLE IF EXISTS `person`; > CREATE TABLE `person` ( >