hello we have a small project for making reservations of our assets.
we are holding it as following table 1.
we want to have query result like table 2 for pretty printing
but I couldnt manage to do it,
if you have previously solve similar issues, can you help me like which subjects should I search
in oracle database or PLSQL?
existing
TABLE 1
ASSET_NAME, USER_ID, RESERVATION_PERIOD
PS1, 41 , AM
PS1, 1 , PM
PS2, - , -
PS3, - , -
PS4, - , -
new table
TABLE 2
ASSET_NAME, AM, PM
PS1, 41 , 1
PS2, - , -
PS3, (user_id) , (user_id if it is allocated)
PS4, - , -