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. Flattening a property table

Flattening a property table

Scheduled Pinned Locked Moved Database
databaseoraclequestion
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.
  • M Offline
    M Offline
    mr_lasseter
    wrote on last edited by
    #1

    I have a the following table structure t_entity entity_id connect_date disconnect_date t_entity_info entity_id property_name value Let's say I have the following data in the tables t_entity 1 | 1/1/2005 | 12/1/2005 2 | 1/1/2006 | 12/1/2006 t_entity_info 1 | application | ds3 1 | subapplicaiton | wan 2 | application | voice 2 | subapplicaiton | phone I want the following results with one query (using Oracle) 1 | 1/1/2005 | 12/1/2005 | ds3 | wan 2 | 1/1/2006 | 12/1/2006 | voice | phone Anyone got any ideas? Thanks in advance.

    Mike Lasseter

    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