Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Joined Subquery in Access 2002

Joined Subquery in Access 2002

Scheduled Pinned Locked Moved Database
questioncollaboration
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L Offline
    L Offline
    Larsenal
    wrote on last edited by
    #1

    I have the following:

    SELECT * FROM Article, Member, Album
    LEFT JOIN
    ( SELECT *
    FROM
    linkArticleAlbum, Photo, Album
    WHERE
    linkArticleAlbum.Album = Photo.Album AND
    linkArticleAlbum.Album = Album.ID AND
    Photo.IsIcon = true ) As AlbumLink
    ON AlbumLink.linkArticleAlbum.Article = Article.ID
    WHERE
    Article.Author = Member.ID AND
    Article.Team = 1
    ORDER BY Article.DateCreated DESC, Article.Title

    How can I do this in Access 2002? You see that I need to get the photo that represents the icon for the album on every occasion where the article is linked with an album. I'm stumped. I'm also a bit of a newb when it comes to subqueries and the way things are referenced. -------- to die is gain

    L 1 Reply Last reply
    0
    • L Larsenal

      I have the following:

      SELECT * FROM Article, Member, Album
      LEFT JOIN
      ( SELECT *
      FROM
      linkArticleAlbum, Photo, Album
      WHERE
      linkArticleAlbum.Album = Photo.Album AND
      linkArticleAlbum.Album = Album.ID AND
      Photo.IsIcon = true ) As AlbumLink
      ON AlbumLink.linkArticleAlbum.Article = Article.ID
      WHERE
      Article.Author = Member.ID AND
      Article.Team = 1
      ORDER BY Article.DateCreated DESC, Article.Title

      How can I do this in Access 2002? You see that I need to get the photo that represents the icon for the album on every occasion where the article is linked with an album. I'm stumped. I'm also a bit of a newb when it comes to subqueries and the way things are referenced. -------- to die is gain

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      why don't you try creating the subquery and saviong as a view - then simply join the table to the query (by name) and use QBE window. Keep it simple!

      L 1 Reply Last reply
      0
      • L Lost User

        why don't you try creating the subquery and saviong as a view - then simply join the table to the query (by name) and use QBE window. Keep it simple!

        L Offline
        L Offline
        Larsenal
        wrote on last edited by
        #3

        I'll try it.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups