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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Table Join to Flag Interest

Table Join to Flag Interest

Scheduled Pinned Locked Moved Database
database
2 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
    Lost User
    wrote on last edited by
    #1

    I want to join these 2 tables Products_Table & Interest_Table. When somebody is logged in they get a flag next to the product that they said they where interested in. I request the cookie to get the pwl variable in the Interest_Table. I’m looking for the sql statement that works in access.. Products_Table Prod_ID Prod_Name 1 Dog 2 Cat 3 Horse 4 Truck 5 Car Interest_Table ID Pwl Flag 1 Bob Flagged 1 Tom Flagged 4 Bob Flagged 5 Tom Flagged When Tom is logged in he will get this list. 1 Dog Flagged 2 Cat 3 Horse 4 Truck 5 Car Flagged When Bob is logged in he will get this list. 1 Dog Flagged 2 Cat 3 Horse 4 Truck Flagged 5 Car When nobody is logged in they get this list. 1 Dog 2 Cat 3 Horse 4 Truck 5 Car

    M 1 Reply Last reply
    0
    • L Lost User

      I want to join these 2 tables Products_Table & Interest_Table. When somebody is logged in they get a flag next to the product that they said they where interested in. I request the cookie to get the pwl variable in the Interest_Table. I’m looking for the sql statement that works in access.. Products_Table Prod_ID Prod_Name 1 Dog 2 Cat 3 Horse 4 Truck 5 Car Interest_Table ID Pwl Flag 1 Bob Flagged 1 Tom Flagged 4 Bob Flagged 5 Tom Flagged When Tom is logged in he will get this list. 1 Dog Flagged 2 Cat 3 Horse 4 Truck 5 Car Flagged When Bob is logged in he will get this list. 1 Dog Flagged 2 Cat 3 Horse 4 Truck Flagged 5 Car When nobody is logged in they get this list. 1 Dog 2 Cat 3 Horse 4 Truck 5 Car

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Why do you insist that the database does something that the UI has the information for! The database does not know what should be flagged, you get it from a cookie. So when you have the datatable back from the database you can then add the column and populate the flagged records.

      Never underestimate the power of human stupidity RAH

      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