Results 1 to 3 of 3

Thread: mysql query error

  1. #1
    Join Date
    Jan 2006

    Exclamation mysql query error

    Hi,i have some query problems.

    table name : USER

    this is my table details:

    lastname | firstname
    mani | raja
    raja | guru

    Here guru's father ins raja. and raja's father is mani.so guru's grandfather is mani. now how can i get guru's grandfather name(mani) in query.
    now i know only name(guru).

    pl hlp

  2. #2
    Join Date
    Aug 2005
    The Garden State
    select lastname from USER where firstname = (select lastname from USER where firstname='guru')
    Acceptable Use | SQL Forum FAQ | celery is tasteless | twitter

    celery is tasteless - currently needing some UI time

  3. #3
    Join Date
    Jan 2006
    hi its working.very thanks to u.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Recent Articles