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

Home -> Community -> Usenet -> c.d.o.server -> Re: Can I do this in SQL

Re: Can I do this in SQL

From: Mark Malakanov <markmal_at_sprint.ca>
Date: Mon, 20 Sep 1999 00:35:50 -0300
Message-ID: <dPiF3.599$XC4.42109@newscontent-01.sprint.ca>


Sure

select count(A.*) from TableA A, TableB B where B.Y = 'London' and B.Z=A.Q;

Mark

<namnan_at_my-deja.com> wrote in message news:7ruasc$sh0$1_at_nnrp1.deja.com...
> I want to ask the following question in SQL:
>
> I have two tables A and B, where table B contains a column Y that is a
> long text description of another column in B (say column Z).
> So, eg, Y contains 'London' and Z contains 'L'.
> The values of this column Z also exists in Table A (say column Q). So Q
> contains 'L'.
>
> How can I say:
>
> Give me count of all the rows in TableA where TableB.Y = 'London';
>
> Thanks in advance
>
>
> Sent via Deja.com http://www.deja.com/
> Share what you know. Learn what you don't.
Received on Sun Sep 19 1999 - 22:35:50 CDT

Original text of this message

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