Help with SQL query construction

2007-12-03 Thread Marcus Claesson
Hi! I have a SQL query construction question that I hope someone can help me with. After comparing a bunch of DNA fragments (see name below) with a larger reference sequence I get a ordered list ranked according to similarities, and with start/stop co-ordinates where the fragments map to the

RE: Help with SQL query construction

2007-12-03 Thread Jeff Mckeon
-Original Message- From: Marcus Claesson [mailto:[EMAIL PROTECTED] Sent: Monday, December 03, 2007 7:49 AM To: mysql@lists.mysql.com Subject: Help with SQL query construction Hi! I have a SQL query construction question that I hope someone can help me with. After comparing

Re: Help with SQL query construction

2007-12-03 Thread Peter Brawley
Marcus, I've managed to do this with a Perl-DBI script, but would much prefer to do it completely with MySQL instead. You could port it to a recursive stored procedure. It would probably be slower, and what would you have gained? PB Marcus Claesson wrote: Hi! I have a SQL query

Need help forming SQL query

2005-01-20 Thread Mike Zornek
I have the following query which will get me all of the emails for my current membership: SELECT email.email_address FROM member, email WHERE member.member_primary_email_id = email.email_id AND member.member_standing != Dropped ORDER BY email.email_address I also have a query which will get me

Re: Need help forming SQL query

2005-01-20 Thread Rhino
clearly with only the column names. Rhino - Original Message - From: Mike Zornek [EMAIL PROTECTED] To: mysql@lists.mysql.com Sent: Thursday, January 20, 2005 11:01 AM Subject: Need help forming SQL query I have the following query which will get me all of the emails for my current

Re: Need help forming SQL query

2005-01-20 Thread Mike Zornek
| text | | | | | ++--+--+-+-+ - Original Message - From: Mike Zornek [EMAIL PROTECTED] To: mysql@lists.mysql.com Sent: Thursday, January 20, 2005 11:01 AM Subject: Need help forming SQL query

Re: Need help forming SQL query

2005-01-20 Thread SGreen
Mike Zornek [EMAIL PROTECTED] wrote on 01/20/2005 11:01:38 AM: I have the following query which will get me all of the emails for my current membership: SELECT email.email_address FROM member, email WHERE member.member_primary_email_id = email.email_id AND member.member_standing !=

Re: Need help forming SQL query

2005-01-20 Thread Rhino
Cc: Rhino [EMAIL PROTECTED] Sent: Thursday, January 20, 2005 11:26 AM Subject: Re: Need help forming SQL query On 1/20/05 11:16 AM, Rhino [EMAIL PROTECTED] wrote: You should *ALWAYS* indicate which version of MySQL you are using when you ask this sort of question; the answers is almost

need help in sql query

2004-07-21 Thread Kapoor, Nishikant
Hello List, I have a problem that I am looking your help for. Would greatly appreciate it. Here is what I am trying to do: create table C (cId tinyint(4), cName varchar(10)); insert into C values (1,'Cat01'), (2,'Cat02'), (3,'Cat03'), (4,'Cat04'); create table SC (scId tinyint(4), cId

Re: need help in sql query

2004-07-21 Thread SGreen
You were so very close to getting what you wanted! What is causing the problem is the comma (,) in your FROM clause. MySQL permits two methods of declaring an INNER JOIN. The first is by using the keyphrase INNER JOIN the second is with a comma in your table list. Here is how to rephrase your

Help with SQL Query

2003-09-01 Thread Kim G. Pedersen
Hi Having 2 tables TOrders: ProductID Amount 400810 4008 -5 4110 7 4110 2 4110 -4 4110 1 TStock ProductID Count 4110 3 4110 2 What I want Is a sum of product

help with sql query : DATETIME function

2003-02-26 Thread Admin-Stress
I have a table with this structure : username VARCHAR(32) address VARCHAR(128) datereg DATETIME // date of registration classINT How is the sql query for username who are their datereg was 30 days ago and class = 1? thanks __

Re: help with sql query : DATETIME function

2003-02-26 Thread Paul DuBois
At 18:30 -0800 2/26/03, Admin-Stress wrote: I have a table with this structure : username VARCHAR(32) address VARCHAR(128) datereg DATETIME // date of registration classINT How is the sql query for username who are their datereg was 30 days ago and class = 1? WHERE class = 1

please help with sql query

2002-09-27 Thread Michael Knauf/Niles
I have two tables: products +-+--+--+-+-++ | Field | Type | Null | Key | Default | Extra | +-+--+--+-+-++ | id | int(6) |

Re: please help with sql query

2002-09-27 Thread Clive Smart
Hi there Try This: SELECT products.product_name, products.fg_number, images.image_name, images.thumbnail, images.image_path, images.color_depth, images.width_inches, images.height_inches, images.resolution, images.filesize, images.filetype, images.notes FROM products LEFT JOIN images ON

help with sql query

2001-10-02 Thread barry
mysql - version 3.23.40-log (build from src) i have created a database that records ahrs worked and have 2 fields (amongst others) ahrs_start ahrs_end both are set as type time (hh:mm:ss) as we get paid for a minmum of 1hr for being called out i would like to be able to craft a query that