Date Comparison Issue

2001-09-15 Thread Carl Schrader
MYSQL I have a table with a date field. I have a query that needs to output only if NOW()NOW() ED3='1999-12-31 00:00:00' the above query will output when ED3 is as above. NOW()='2001-09-15 18:10:44' ??? - Before posting, ple

Date Comparison Issue

2001-09-15 Thread Carl Schrader
MYSQL I have a table with a date field. I have a query that needs to output only if NOW()NOW() ED3='1999-12-31 00:00:00' the above query will output when ED3 is as above. NOW()='2001-09-15 18:10:44' ??? - Before posting, ple

Complex Query Question

2001-09-04 Thread Carl Schrader
This question involves table setup questions as much as it involves a query question. Bare with me, this seems hard to explain. I have a table that includes records with 3 (relevant to this conversation) fields (actually 9..more on that later). Each of those fields have 2 other related fields. i.

Re: Query Question

2001-09-04 Thread Carl Schrader
Title. I need a more robost idea... Ravi Raman wrote: > hi. > > select Title, IF(Title LIKE "%TOMMY%", 1, 0) as check > from inv where... > ... order by check desc; > > hth. > -ravi. > > -Original Message- > From: Carl Schrader [mailto:[EMAIL PRO

Query Question

2001-09-04 Thread Carl Schrader
I'm doing a query like: select Title from inv where Title LIKE '%TOMMY%' OR Content LIKE '%TOMMY%' OR Notes LIKE '%TOMMY%' order by Title What I need is to have the results that match Title LIKE '%TOMMY%' to appear first and then the rest. I have been doing 2 separate queries and filtering th

Query Question

2001-08-31 Thread Carl Schrader
I'm doing a query like: select Title from inv where Title LIKE '%TOMMY%' OR Content LIKE '%TOMMY%' OR Notes LIKE '%TOMMY%' order by Title What I need is to have the results that match Title LIKE '%TOMMY%' to appear first and then the rest. I have been doing 2 separate queries and filtering the

Group By Question

2001-05-22 Thread Carl Schrader
I have a query that is using Group By Title. Is there anyway to make 2 Titles such as "League of their own" and "League of their own###" group as the same. I am removing the #'s in the output but I still get 2 results - 1 for each. Ideas?

Re: Telnet into MySQL

2001-05-21 Thread Carl Schrader
CRT (www.vandyke.com) Tim Thorburn wrote: > Hello, > > Can someone here recommend a good Telnet program (with SSH) that I can use > to connect to my servers MySQL database? > > Preferably something shareware/freeware - but if it must be purchased, I'm > not against that. > > Thank you > > -Tim >

Re: Results came from

2001-05-21 Thread Carl Schrader
MUST do this > server side, here is your query: > select Title, IF(Title LIKE '%Green','Green','Blue') AS whatmatch > > - Original Message - > From: "Carl Schrader" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent:

Re: Results came from

2001-05-21 Thread Carl Schrader
> Is there anyway to determine which part of the an sql query where blahblah produced the result? ie. select Title from inv where Title LIKE '%Green' OR Title Like '%Blue%' I need to distinguish if the Title was like Green or Blue.. -

Re: Speed question

2001-05-17 Thread Carl Schrader
Ok, thanks for the input. I'll work on optimizing the code and look at the indexes. ryc wrote: > Changing to C++ is not likely to give you a noticable speed difference > because your bottleneck is not the code but the queries. With proper > database design you should be able to acheive those res

Re: Speed question

2001-05-16 Thread Carl Schrader
maybe some systems files > was damaged. > > >From: Carl Schrader <[EMAIL PROTECTED]> > >To: Mysql <[EMAIL PROTECTED]> > >Subject: Speed question > >Date: Wed, 16 May 2001 08:08:15 -0700 > > > >I am searching to speed up an operation I have, which wo

Re: Speed question

2001-05-16 Thread Carl Schrader
h filed to build your result you should > compact the query in to one i.e. > if you are doing > select MM from table1 where record_num = 3 > select Title from table1 where record_num = 3 > select Archive from table1 where record_num = 3 > then you should replac

Speed question

2001-05-16 Thread Carl Schrader
I am searching to speed up an operation I have, which works - it just takes minutes to finish. The current script is written in pike (a C like scripting language). I believe that most of the overhead is the multiple queries. Would using C++ be significantly faster? (I'd have to learn some C before

Join question

2001-03-15 Thread Carl Schrader
I have 2 tables with a common field of Title. Table 1 defined as: Name;varchar(60) Title;varchar(60) Year;varchar(4) Other;varchar(30) Other2;varchar(30) act_no;int(8) unsigned zerofill Table 2 defined as: MM;varchar(4) Title;varchar(48) Archive;varchar(4) record_num;int(8) unsigned zerofill I