Results 1 to 4 of 4

Thread: Database Question (Access SQL)

  1. #1

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

    Database Question (Access SQL)

    Sorry for the cross posting but I'm getting desperate!!!!

    Can anybody help with these two database posts. One's nested select statements and the other is an error undefined function for a VB function I am trying to use in SQL.

    http://www.vbforums.com/showthread.p...hreadid=200094
    http://www.vbforums.com/showthread.p...hreadid=200078
    See ya later,

    -=XQ=-

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

  2. #2
    Member
    Join Date
    Sep 2002
    Location
    London
    Posts
    63
    On your first Question:

    You can set aliases to tables in subqueries and perfix the alias to refer to nested table.

    SELECT SomeFields
    FROM FirstTable tA
    WHERE tA.SomeFieldPrimaryKey = (SELECT tB.OtherFieldForeignKey
    FROM OtherTable tB
    WHERE ....)


    The above works on an Oracle Db, not sure about Access.

  3. #3
    Fanatic Member kinjalgp's Avatar
    Join Date
    Apr 2000
    Location
    India
    Posts
    535
    U R Correct Genie

    Kinjal

  4. #4

    Thread Starter
    Hyperactive Member -=XQ=-'s Avatar
    Join Date
    Mar 2002
    Location
    Liverpool, England, UK
    Posts
    278
    Thankyou you've probably made me very happy I'll give it a go and post back if there is a problem.

    Thanks
    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