| |
|
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.
|
 |

01-12-10, 11:50
|
|
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".
|
|

01-12-10, 12:45
|
|
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 )
|
|

01-12-10, 13:12
|
|
Registered User
|
|
Join Date: Jul 2009
Posts: 37
|
|
|
|
Thanks smartass! but I figured it out.
|
|

01-12-10, 13:18
|
|
SQL Consultant
|
|
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
|
|
Quote:
Originally Posted by brian566
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

|
|

01-12-10, 13:28
|
|
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.
|

01-12-10, 13:39
|
|
SQL Consultant
|
|
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
|
|
Quote:
Originally Posted by brian566
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

|
Last edited by Teddy; 01-12-10 at 17:58.
|

01-12-10, 13:58
|
|
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
|
|

01-12-10, 14:05
|
|
SQL Consultant
|
|
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
|
|
Quote:
Originally Posted by brian566
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

|
|

01-12-10, 14:17
|
|
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.
|
|

01-12-10, 14:23
|
|
SQL Consultant
|
|
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
|
|
Quote:
Originally Posted by brian566
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!!

|
|

01-12-10, 14:29
|
|
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....
|
|

01-12-10, 17:24
|
|
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??
|
|

01-12-10, 19:24
|
|
Registered User
|
|
Join Date: Jul 2009
Posts: 37
|
|
|
Last edited by Teddy; 01-12-10 at 23:04.
Reason: Seriously?
|

01-12-10, 23:03
|
|
Purveyor of Discontent
|
|
Join Date: Mar 2003
Location: The Bottom of The Barrel
Posts: 6,075
|
|
Well, that was disappointing.
|
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
|