Skip to main content
Practitioner ⭐️
Oct 18, 2023 9:24 AM UTC
Solved

Query to get column name from different table stores as column value

We have data model with

type abc{id: String

kind: String

name: String

description: String

key: String}

In other table , we have these columns stored as column values

kind attributes
1.0.0 name
1.0.0 description
1.0.0 key
1.0.0

name

 

need query to join on column value(stored as rows) from one table with solution model table data can group on by id or kind? As there can be n number of attributes, if we can do it dynamically to match column  value with column name.

Any help would be appreciated

Dilini Fernando
Expert ⭐️⭐️⭐️⭐️
Nov 22, 2023 6:58 AM UTC

Hi @Rimmi Anand,

I’m closing this topic now, please feel free to create a new post if you still experience problems.

Best regards,
Dilini 

3 replies

joar.saether
Practitioner ⭐️⭐️⭐️
Director Site Reliability Cognite
Oct 28, 2023 10:35 AM UTC

Hi Rimmi,

 

Can you add a little bit more context to your question?   

  • Is the table you mention here stored in RAW? 
  • Is the query you want to create going to run in transformations?
  • Is the purpose to create new instances from the table?
Dilini Fernando
Expert ⭐️⭐️⭐️⭐️
Expert ⭐️⭐️⭐️⭐️
Nov 9, 2023 7:47 AM UTC

Hi @Rimmi Anand ,

If this request is still valid, please provide the required information. We are happy to help you.

Best regards,
Dilini

Dilini Fernando
Expert ⭐️⭐️⭐️⭐️
Expert ⭐️⭐️⭐️⭐️
Nov 22, 2023 6:58 AM UTC

Hi @Rimmi Anand,

I’m closing this topic now, please feel free to create a new post if you still experience problems.

Best regards,
Dilini