Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8720551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:04:09+00:00 2026-06-13T07:04:09+00:00

For a table structured as such: Object Attribute Table – Links objects with all

  • 0

For a table structured as such:

"Object Attribute" Table - Links objects with all of their attributes and values;
Object ID       Attribute ID    Attribute String Value  ...
1337            123             Example Object Title
1337            124             Example Object Type
1337            125             Example Object Description
1337            126             Example Object Author
0001            123             (null)
0001            124             SomeType
0001            125             This is an example record
0001            126             Jiman
0002            123             Bar
0002            124             BarType
0002            125             This is another
0002            126             Jiman

EDIT: Attribute ID’s have the following mapping:

Attribute ID    Attribute Name
123             Title
124             Type
125             Description
126             Author

How would I compose an Oracle query that returns a transposed set of data, where the Title field is NULL?

Example output:

ID      Title       Type        Description             Author
0001    (null)      FooType     This is an example...   Jiman

Can PIVOT be used to transpose non-aggregate values (i.e., those string attributes)?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T07:04:10+00:00Added an answer on June 13, 2026 at 7:04 am

    The simplest approach, assuming you want the mapping from attribute ID to attribute name to be hard-coded in the query and that you know the number of elements you want in the result at compile time, would be something like

    SELECT *
      FROM (
        SELECT object_id,
               MAX( CASE WHEN attribute_id = 123 THEN attribute_string_value ELSE NULL END) title,
               MAX( CASE WHEN attribute_id = 124 THEN attribute_string_value ELSE NULL END) type,
               MAX( CASE WHEN attribute_id = 125 THEN attribute_string_value ELSE NULL END) description,
               MAX( CASE WHEN attribute_id = 126 THEN attribute_string_value ELSE NULL END) author
          FROM your_table_name
         GROUP BY object_id )
      WHERE title IS NULL
    

    If you only need to support 11g, you could use the PIVOT operator as well.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a MySQL table structured somewhat like this: type name value ===================== 1
I have a table structured as following: I'm trying to select the latest handicap
I have a table structured as: create table a ( a bigint primary key,
I have a table structured like this: <table> <tr id=id1 class=parent></tr> <tr class=id1></tr> <tr
I have a posts table structured this way: id | title | content |
I'm a bit confused on this. I have a data table structured like this:
Consider a table or CTE structured like this: Name Num ---- ---- Abc 12
So I have two tables structured like so: CREATE TABLE #nodes(node int NOT NULL);
Is it possible to create multiple instances of an object in javascript such that
I have an object structure that is mimicking the properties of an excel table.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.