Kind sounds like you want to be using something like the
PIVOT[
^] function which is found in SQL Server or Excel.
This would give an output something like this
ColumnRow AppOwner AppDev AppTester
============ ========= ======= =========
Column Title The Owner The Dev The Tester
From this query
DECLARE @Temp TABLE (
Type INT ,
Identifier NVARCHAR(16) ,
Value NVARCHAR(16)
)
INSERT @Temp VALUES
(1, 'app-owner', 'The Owner')
, (2, 'app-dev', 'The Dev')
, (3, 'app-tester', 'The Tester')
SELECT ColumnRow = 'Column Title'
, AppOwner = [App-Owner]
, AppDev = [App-Dev]
, AppTester = [App-Tester]
FROM ( SELECT [Value], Identifier
FROM @Temp
) as S
PIVOT ( Max([Value])
FOR [Identifier]
IN ([App-Owner], [App-Dev], [App-Tester])
) as P
Now if this is what you want and you are using a different version of SQL (eg MySql), you will need to search for similar functions depending on what your database is using (eg MySql PIVOT), and similar scripts will present themselves to you
Note:
When you look at this code on here (or in an SQL IDE) you will notice some of the column names (Type, Value) have a different color in the TABLE declaration and are also wrapped in [square brackets] in the query. This is because these are
reserved/special words in many database servers. Generally it is recommended to rename these columns to prevent confusion to developers or the queries being run