I have been stuck on this homework problem for sometime now. I am asked to read
ID: 3621326 • Letter: I
Question
I have been stuck on this homework problem for sometime now. I am asked to read in some information stored in a database table. Then print out the players name from the table in sorted order using a buble sort algorithm.This is what i have so far
create or replace
PROCEDURE TEAM_TABLE_SORT AS
TYPE player_Name_type IS TABLE OF databasename.team.player%type
INDEX BY PLS_INTEGER ;
player_name player_Name_type;
i integer := 1;
temp integer;
begin
for player_names in (select * from marshall.team )
LOOP
player_name(i) := player_names.player ;
dbms_output.put_line(i|| ' - ' ||chr(9) || player_name(i) ) ;
i := i + 1 ;
END LOOP;
All this does is printout the information!!! Any ideas on how to sort the names using bubble sort