gowthaman ramasamy wrote:

I want these to be displayed in two different rows (first 7 in row 1 and second 7 in row 2). Is it possible to that.

I could do it by displaying p1.* and p2.* in two different quries. But
that doubles the querying time. Any other suggestions or pointers.


Use UNION?

SELECT DISTINCT p1.* FROM
allreps_orgs AS p1 INNER JOIN allreps_orgs AS p2
ON p1.organism='Plasmodium' AND p2.organism='Caenorhabditis'
  AND p1.repeat=p2.repeat
UNION
SELECT DISTINCT p2.* FROM
allreps_orgs AS p1 INNER JOIN allreps_orgs AS p2
ON p1.organism='Plasmodium' AND p2.organism='Caenorhabditis'
  AND p1.repeat=p2.repeat

Since it is a self-join, the column headers would be just right both both the SELECTs.

- Sandip

P.S. These questions are better asked on the LIP list.



-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to