Results 1 to 1 of 1

Thread: Sql Help...

  1. #1
    Join Date
    Apr 2006
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Sql Help...

    Anyone can help me?
    My data like this....

    absen table data
    id date
    1 2006-04-01
    2 2006-04-02
    3 2006-04-03
    1 2006-04-01
    2 2006-04-02
    1 2006-04-01
    2 2006-04-02
    3 2006-04-03

    pegawai table data
    id name
    1 John
    2 Miranda
    3 Michael

    I want to show pegawai.id where pegawai.id not in table absen on 2006-04-03 by sql code...
    i'm use this code, but not work

    Code:
    SELECT
    pegawai.id
    FROM
    pegawai,
    absen
    WHERE
    pegawai.id <> absen.id AND
    absen.date = '2006-04-02'
    it show like this
    id
    1
    2
    2
    3

    i want it show like this
    id
    2
    Last edited by tawongunung; 04-18-2006 at 09:07 AM.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •