Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Combining two SQL Statements

Re: Combining two SQL Statements

From: wario <wario_spam_at_insightbb.com>
Date: 7 Oct 2004 10:50:58 -0700
Message-ID: <962c6d85.0410070950.42672d0f@posting.google.com>


select

    userid,

    sum(usedslots) usedslots,
    sum(freeslots) freeslots,
    sum(usedslots + freeslots) totalslots
from

    user_used_slots used,
    user_free_slots free
where used.userid = free.userid
group by userid;

Wario Received on Thu Oct 07 2004 - 12:50:58 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US