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. question about retrieving

question about retrieving

Scheduled Pinned Locked Moved Database
questiondatabasehelp
1 Posts 1 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.
  • J Offline
    J Offline
    johland
    wrote on last edited by
    #1

    Hi I have 2 tables: 1. Physicians, consisting on two columns: primery_specialty_id, sub_specialty_id 2. Specialties, consisting on two columns: specialty_id (primary key and the foreign key for both Physicians table columns above), specialty_name Physicians.primery_specialty_id is nn but sub_specialty_id can be null and in my db there are a lot of physicians that have 1 specialty but not a second. I want to create a view that will retrieve all data showing the specialty_name1 for all primery_specialty_id and specialty_name2 for all sub_specialty_id. I try to create another view that will hold the specialty_name for the sub_specialty but I don’t know how can I show all data containing the sub_specialty which is null. if anyone can help me on this it will be more than appreciated Thanks Yohay

    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