I have a SQL DB setup like this:
#1 Format
| COLUMN 1 (Values) | COLUMN 2 (Identifier) |
|---|---|
| Title_Name | Collection_Title |
| Title_Name | Collection_Title |
| Image_URL | Collection_Image |
| Image_URL | Collection_Image |
I would like to split these 2 columns into four seperate columns like so:
#2 Format
| VALUE #1 | IDENTIFIER #1 | VALUE #2 | IDENTIFIER #2 |
|---|---|---|---|
| Image_URL | Collection_Image | Title Name | Collection_Title |
| Image_URL | Collection_Image | Title Name | Collection_Title |
So far I have the query:
SELECT value, identifier
FROM [tableName]
WHERE identifier IN ('Image_URL', 'Title_Name');
and its returning the #1 format, so I have all the information returning from the query. My problem is I would like to have it presented in the #2 Query with each column having a unique name.
How can I expand or improve my query to return the #2 format?
Thank you :)