Announcement

Collapse
No announcement yet.

Einträge filtern

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Einträge filtern

    hi,

    für euch bestimmt ein kleines problem:


    die ids finden, die nicht 3 bestimmte einträge aufweisen.

    hoffe ich habe mich verständlich ausgedrückt.


    bsp:

    tabelle t1

    id xyz

    3 f
    3 g
    3 t
    5 f
    5 g


    bei der id 5 fehlt 't' und soll deswegen angezeigt werden

    mfg

  • #2
    Auch Hi,
    Originally posted by strohhaar View Post
    ...die ids finden, die nicht 3 bestimmte einträge aufweisen.

    hoffe ich habe mich verständlich ausgedrückt.
    Verständlich ist anders, das ist ja nichtmal ein vernünftiger Satz!

    [highlight=sql]
    select t1.id
    from t1
    where t1.xyz in ('f', 'g', 't')
    group by t1.id
    having count(*) < 3
    [/highlight]

    Gruß Falk
    Wenn du denkst du hast alle Bugs gefunden, dann ist das ein Bug in deiner Denksoftware.

    Quellcode ohne ein Mindestmaß an Formatierung sehe ich mir nicht an! Ich leiste keinen Privatsupport per Mail oder PN!

    Comment

    Working...
    X