Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A048F106CF for ; Fri, 3 May 2013 04:59:58 +0000 (UTC) Received: (qmail 32134 invoked by uid 500); 3 May 2013 04:59:56 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 31735 invoked by uid 500); 3 May 2013 04:59:50 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 31708 invoked by uid 99); 3 May 2013 04:59:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 May 2013 04:59:49 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of ramya.1255@gmail.com designates 209.85.216.53 as permitted sender) Received: from [209.85.216.53] (HELO mail-qa0-f53.google.com) (209.85.216.53) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 May 2013 04:59:43 +0000 Received: by mail-qa0-f53.google.com with SMTP id p6so177723qad.5 for ; Thu, 02 May 2013 21:59:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=TeNUrETJXK3IVAkKrGU1YA82sVlGuzAOBFIw7UEMBPE=; b=HDUugDaCbr+DMsqALsUY3EdWeoESsWXiSVcq/0OCUYHZw0dVAUhkdJENGfnc3z+CzX 7o6g4m8Q9vORl0TwmSI7hO/9VD0+VHMbZAZ+xOqBfnUitqDwihWkwI7BTS8dR7JT/Qd8 aMwTEtvI1HM4GYVQk/80XOyIMBBWE2foKcEtuorP0Pr+Ck1R5ks6d6TCh9U3MXAPvK+S 8ZQh0aXvLdaDcDurhgLR+8pqsedDQZVTONbPPYZ7k6EZmRjGt7PHlVDG3avn9F9Nmqd9 bJtQ/TvBd20f1E3TlnroV1OxalMe7Qq2OkO55f8YWuQWwreusD6DJVR+WsYvVCOPewE2 F87A== MIME-Version: 1.0 X-Received: by 10.49.49.36 with SMTP id r4mr11855530qen.65.1367557162488; Thu, 02 May 2013 21:59:22 -0700 (PDT) Received: by 10.49.82.36 with HTTP; Thu, 2 May 2013 21:59:22 -0700 (PDT) In-Reply-To: References: Date: Fri, 3 May 2013 10:29:22 +0530 Message-ID: Subject: Re: cql query From: Sri Ramya To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=047d7b6783ace15b4e04dbc936a8 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b6783ace15b4e04dbc936a8 Content-Type: text/plain; charset=ISO-8859-1 thank you very much. i will try and let you know whether its working or not On Thu, May 2, 2013 at 7:04 PM, Jabbar Azam wrote: > Hello Sri, > > As far as I know you can if name and age are part of your partition key > and timestamp is the cluster key e.g. > > create table columnfamily ( > name varchar, > age varchar, > tstamp timestamp, > partition key((name, age), tstamp) > ); > > > > > Thanks > > Jabbar Azam > > > On 2 May 2013 11:45, Sri Ramya wrote: > >> hi >> >> Can some body tell me is it possible to to do multiple query on cassandra >> like "Select * from columnfamily where name='foo' and age ='21' and >> timestamp >= 'unixtimestamp' "; >> >> Please tell me some guidence for these kind of queries >> >> Thank you >> > > --047d7b6783ace15b4e04dbc936a8 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable thank you very much. i will try and let you know whether its working or not=


On Thu, May 2, 2013 at 7:04 PM, Jabb= ar Azam <ajazam@gmail.com> wrote:
Hello Sri,

As far as I know you can if name and age are par= t of your partition key and timestamp is the cluster key e.g.

create table columnfamily (
=A0=A0=A0 name varchar,
=A0=A0=A0 age varchar,
=A0= =A0=A0 tstamp timestamp,
=A0=A0 partition key((name, age), tstamp)=
);



<= /div>

Thanks

Jabbar Aza= m


On 2 May 2013 11:45, Sri Ramya <ramy= a.1255@gmail.com> wrote:
hi

Can some body tell me is it possible to to do multiple query on c= assandra
like "Select * from columnfamily where name=3D'foo'= ; and age =3D'21' and timestamp >=3D 'unixtimestamp' &qu= ot;;

Please tell me some guidence for these kind of queries

=A0 Thank= you


--047d7b6783ace15b4e04dbc936a8--