Results 1 to 6 of 6

Thread: (RESOLVED) Nested SELECT statements

Threaded View

  1. #1

    Thread Starter
    Hyperactive Member -=XQ=-'s Avatar
    Join Date
    Mar 2002
    Location
    Liverpool, England, UK
    Posts
    278

    (RESOLVED) Nested SELECT statements

    Does anybody know if it is possible to share data between nested SQL statements. I.E.

    Code:
    SELECT SomeFields...,(SELECT SUM(OtherField) FROM table WHERE OtherFieldForiegnKey=SomeFieldPrimaryKey) FROM OTHERTable
    So from the above OtherFieldID would match the ID of the record from the first table. I don't seem to be able to figure it out. Can anybody help?

    Thanks,

    -=XQ=-
    Last edited by -=XQ=-; Sep 25th, 2002 at 08:41 AM.
    See ya later,

    -=XQ=-

    "Reality is merely an illusion, albeit a very persistent one. "
    - Albert Einstein (1879-1955)
    This is the coolest site ever!!!

Posting Permissions

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



Click Here to Expand Forum to Full Width