This question has been asked for many times but I can not relate any of the answers I have read so far to my exact question. Let us say that my original table has 2 columns.
Brand Type
Mercedes Sedan
BMW Sedan
Mercedes SUV
Jeep SUV
VW Sedan
VW Small Family
I want to format the original table like the following
[Sedan] [SUV] [Small Family]
BMW Mercedes VW
Mercedes Jeep NULL
VW NULL NULL
Is this possible with any sort of SQL in any sort of environment (i.e. SQL server, Oracle, DB2), with or without PIVOT function?