Hi i need to know how to get a column name if a certain value is found in that row.
For example I have a table such as:
|Name | Column1 | Column2 | Column3|
|-----------------------------------|
|Peter | 100 | 120 | 92 |
|-----------------------------------|
|James | 110 | 105 | 88 |
|-----------------------------------|
|David | 90 | 112 | 98 |
I want to do a query of Peter where the value is 92 and I need the query to return Column3.
Anyone know if sqlite is capable of this?
I know very basic sql and have not really used sqlite to understand it in depth.
Thanks for any help
For example I have a table such as:
|Name | Column1 | Column2 | Column3|
|-----------------------------------|
|Peter | 100 | 120 | 92 |
|-----------------------------------|
|James | 110 | 105 | 88 |
|-----------------------------------|
|David | 90 | 112 | 98 |
I want to do a query of Peter where the value is 92 and I need the query to return Column3.
Anyone know if sqlite is capable of this?
I know very basic sql and have not really used sqlite to understand it in depth.
Thanks for any help