If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Crystal Reports > is equal to 2 values only, help!

Closed Thread
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-12-10, 11:50
brian566 brian566 is offline
Registered User
 
Join Date: Jul 2009
Posts: 37
is equal to 2 values only, help!

I'm making a report and
i have a field called "memo id" and I need to filter this field out to only report records with the both memo ids "s10" and "cv10", not just records with one s10 ID or one cv10 ID but for both memo ids in the memo id field for the memo id. should be something like memo id="s10" "cv10".
  #2 (permalink)  
Old 01-12-10, 12:45
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
you showed neither your table layout nor your query, and did not even mention which database system you're using, so presumably you won't mind if i make stuff up
Code:
SELECT "memo id"
     , schnickenpflaster
     , abstlegruppen
     , complimorfle
  FROM daTable
 WHERE "memo id" IN 
       ( SELECT "memo id"
           FROM daTable
          WHERE "memo id" IN ( 's10','cv10' )
         GROUP
             BY "memo id"
         HAVING COUNT(*) = 2 )
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
  #3 (permalink)  
Old 01-12-10, 13:12
brian566 brian566 is offline
Registered User
 
Join Date: Jul 2009
Posts: 37
Thanks smartass! but I figured it out.
  #4 (permalink)  
Old 01-12-10, 13:18
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by brian566 View Post
Thanks smartass! but I figured it out.
you're welcome, but why did you even bother posting in the first place?

never mind replying, because i know why

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
  #5 (permalink)  
Old 01-12-10, 13:28
brian566 brian566 is offline
Registered User
 
Join Date: Jul 2009
Posts: 37
{{not wise to undo edits made by mods. future reference}}

Last edited by Teddy; 01-12-10 at 23:22.
  #6 (permalink)  
Old 01-12-10, 13:39
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by brian566 View Post
YAMS YAMS YAMS YAMS YAMS YAMS YAMS YAMS YAMS YAMS YAMS YAMS YAMS YAMS YAMS
that puerile outburst simply confirms what i suspected

don't let the door hit you on your way out

feel free to come back when you can behave like a grownup

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book

Last edited by Teddy; 01-12-10 at 17:58.
  #7 (permalink)  
Old 01-12-10, 13:58
brian566 brian566 is offline
Registered User
 
Join Date: Jul 2009
Posts: 37
and you not standing up for yourself proves that your just a little nerdy wimp who got pick on all through high school
  #8 (permalink)  
Old 01-12-10, 14:05
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by brian566 View Post
and you not standing up for yourself proves that your just a little nerdy wimp who got pick on all through high school
"stand up" for myself? against someone so obviously challenged as you?

wouldn't be sporting, young fella

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
  #9 (permalink)  
Old 01-12-10, 14:17
brian566 brian566 is offline
Registered User
 
Join Date: Jul 2009
Posts: 37
Listen Limeback, just stop, for someone your age i'm surprised that your trying to argue with someone over the net.
  #10 (permalink)  
Old 01-12-10, 14:23
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
Quote:
Originally Posted by brian566 View Post
Listen Limeback, just stop, for someone your age i'm surprised that your trying to argue with someone over the net.
arguing? who's arguing?

i'm sitting here laughing at you, punk

rule #1 of holes: when you find yourself in a hole, stop digging!!

__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
  #11 (permalink)  
Old 01-12-10, 14:29
brian566 brian566 is offline
Registered User
 
Join Date: Jul 2009
Posts: 37
lol some old guy just called me a punk, i know im a little rascal arent I, kids these days I tell ya....
  #12 (permalink)  
Old 01-12-10, 17:24
tosscrosby tosscrosby is offline
Registered User
 
Join Date: Apr 2008
Location: Along the shores of Lake Michigan
Posts: 242
From his profile page:

"Friends

brian566 has not made any friends yet"

I wonder why not??
  #13 (permalink)  
Old 01-12-10, 19:24
brian566 brian566 is offline
Registered User
 
Join Date: Jul 2009
Posts: 37
{{removed}}

Last edited by Teddy; 01-12-10 at 23:04. Reason: Seriously?
  #14 (permalink)  
Old 01-12-10, 23:03
Teddy Teddy is offline
Purveyor of Discontent
 
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
Well, that was disappointing.
__________________
oh yeah... documentation... I have heard of that.

*** What Do You Want In The MS Access Forum? ***
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On