I have a DB table with below structure in SQLITE
Name Count Type
Roy 3 CA
Roy 2 BT
John 2 CA
John 1 BT
Need a query that can display the above data like below(sqlite)
Name count CA BT
Roy 5 3 2
John 3 2 1
thanks
There is no pivoting in SQLite, but you can use a lot of subquerys:
assuming tablename “test”