Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to select particular column name

 
nagesh babu
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have a table with four fields which contains only boolean values.

At any point of time, only one field can be true.

can anyone help me in writing the query for the getting the column name that has "true" value.

Thanks,
nageshbabu
 
Srikanth Basa
Ranch Hand
Posts: 241
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which database you are using ?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic