RE: Need query to determine different column definitions across tables

2013-07-09 Thread Rick James
T() and HAVING to do the filtering. > -Original Message- > From: Daevid Vincent [mailto:[email protected]] > Sent: Monday, July 08, 2013 7:57 PM > To: [email protected] > Subject: RE: Need query to determine different column definitions across > tables > >

RE: Need query to determine different column definitions across tables

2013-07-08 Thread Daevid Vincent
> -Original Message- > From: Daevid Vincent [mailto:[email protected]] > Sent: Monday, July 08, 2013 2:11 PM > To: [email protected] > Subject: Need query to determine different column definitions across tables > > I'm noticing that across our several

RE: Need query to determine different column definitions across tables

2013-07-08 Thread Rick James
to:[email protected]] > Sent: Monday, July 08, 2013 2:11 PM > To: [email protected] > Subject: Need query to determine different column definitions across > tables > > I'm noticing that across our several databases and hundreds of tables that > column definitions are

Need query to determine different column definitions across tables

2013-07-08 Thread Daevid Vincent
I'm noticing that across our several databases and hundreds of tables that column definitions are not consistent. I'm wondering if there is a tool or query (using INFORMATION_SCHEMA perhaps) that will show me all databases, tables and columns where they don't match (by column name). For example i

Re: Need Query Help

2012-06-22 Thread Shawn Green
On 6/22/2012 12:18 AM, Anupam Karmarkar wrote: Thanks Rick for your reply, Here i am asking about logic to perpare query or whole query itself. A set-based approach to doing the basic task is to convert your set of start/stop times into duration values. The timediff() function mentioned alr

Re: Need Query Help

2012-06-21 Thread Anupam Karmarkar
Thanks Rick for your reply, Here i am asking about logic to perpare query or whole query itself. --Anupam From: Rick James To: Anupam Karmarkar ; "[email protected]" Sent: Wednesday, 20 June 2012 10:52 PM Subject: RE: Need Query H

RE: Need Query Help

2012-06-20 Thread Rick James
http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#function_timediff and SEC_TO_TIME()/3600 > -Original Message- > From: Anupam Karmarkar [mailto:[email protected]] > Sent: Wednesday, June 20, 2012 2:39 AM > To: [email protected] > Subject:

Need Query Help

2012-06-20 Thread Anupam Karmarkar
Hi All, I need query help for following table struture, where we need to calculate login duration of that employee for give period. Example table EmployeeID     LoginTime   LogoutTIme 101            2012-05-01 10:00:00     2012-05-01 12:30:00 102            2012

Re: need query: records inserted on Monday?

2007-11-20 Thread Afan Pasalic
Yup! That's it! Thanks Dan. ;) The link is really helpful. I was looking for it on mysql but was able to find. Looks like I didn't try hard. :) -afan Dan Buettner wrote: Afan, you'll need to have a date and time column in the database storing a "created at" value, that is set on INSERT and

Re: need query: records inserted on Monday?

2007-11-20 Thread Dan Buettner
Afan, you'll need to have a date and time column in the database storing a "created at" value, that is set on INSERT and then not changed. Assuming you have such a column - let's call it "created_at" - you can run queries like this: /* to get count of records created on Mondays */ SELECT COUNT(*)

need query: records inserted on Monday?

2007-11-20 Thread Afan Pasalic
Hi, I have to build a report - when (date and/or time) the records are inserted. E.g., number of records inserted on Monday - doesn't matter what month. Or, number of records inserted on specific date between 8am and 4pm. Thanks for any help. -afan -- MySQL General Mailing List For list arc

Re: I need Query Help

2006-02-10 Thread Gabriel PREDA
UPDATE `table1` SET `gender` = IF('f'=`gender`, 'm', 'f'); If you have NULL columns you might want to make another sublevel in IF to leave it NULL ! I believe this should do it... you might also take into consideraion removing the possibility of a NULL in the `gender` column... because it allows t

I need Query Help

2006-02-10 Thread Veerabhadrarao Narra
I have a table named table1 structure is ++---+--+-+-+---+ | Field | Type | Null | Key | Default | Extra | ++---+--+-+-+---+ | name | varchar(50) | NO | PRI | | | | gender | enum('f','m')

I NEED QUERY on Difference between values (Any Group Functions are there)

2006-01-27 Thread Veerabhadrarao Narra
i have to write one query DivisionUnitsYear ameerpet 200 2004 ameerpet 300 2005 ameerpet 500 2006 >From these values i want to retreive as like this DivisionUnitsYear a

Need query to determine TABLE TYPE

2002-10-10 Thread Gerald Jensen
I'm running MySQL 3.23.52 (NT), and have discovered that some of the tables in some old databases are still ISAM (left over from the 3.22.32 days). I want to convert these tables to MyISAM, but rather than shot-gun all tables in all databases, I'd like to run a query to determine which tables are

FW: need query help

2001-11-28 Thread Kenny
I am currently running an online golf tournament on an NT server with an Access database and asp pages. I have access to a Unix server that supports asp script and mySQL database and I'd like to move my tour site (for several reasons) but the SQL statements don't all work. The following statement

FW: need query help

2001-11-28 Thread Kenny
I am currently running an online golf tournament on an NT server with an Access database and asp pages. I have access to a Unix server that supports asp script and mySQL database and I'd like to move my tour site (for several reasons) but the SQL statements don't all work. The following statement

RE: Need query help

2001-10-31 Thread Quentin Bennett
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, 1 November 2001 4:22 p.m. To: [EMAIL PROTECTED] Subject: Need query help Hello all, I have 3 tables I need to join to extract certain data base on the acct_days in the active table '6' days. QUERY: SEL

Need query help

2001-10-31 Thread mickalo
Hello all, I have 3 tables I need to join to extract certain data base on the acct_days in the active table '6' days. QUERY: SELECT CONCAT(m.fname,' ',m.lname) AS name, m.email,m.zip,p.paytype,p.event,p.paydate FROM members m LEFT JOIN payhistory p ON p.memid = m.memid LEFT JOIN active a ON a.m

RE: need query

2001-09-18 Thread Simon Green
Some thing like this mite work? delete from b where id.a != id.b; Simon -Original Message- From: Lyubomir Simich [mailto:[EMAIL PROTECTED]] Sent: 18 September 2001 16:15 To: [EMAIL PROTECTED] Subject: need query Hello, May I use a query like this? DELETE FROM b WHERE id NOT IN

need query

2001-09-18 Thread Lyubomir Simich
Hello, May I use a query like this? DELETE FROM b WHERE id NOT IN (SELECT id FROM a) What can I do for make it? -- Best regards, Lyubomir mailto:[EMAIL PROTECTED] - Before posting, please check: