db note function
db note function
function
--------------------------------------------------
1. Retrieves information about a tournament based on the provided tournament ID.
RETURN v_tournament_info;
END get_tournament_info;
---------------------------------------------------------
2. Calculates the total duration of all tournaments.
------------------------------------------------------------
3. Validates user credentials by checking if the provided username and password
match any user in the database.
DECLARE
v_is_valid BOOLEAN;
BEGIN
v_is_valid := validate_user_credentials('rakib', '123123');
IF v_is_valid THEN
DBMS_OUTPUT.PUT_LINE('User credentials are valid');
ELSE
DBMS_OUTPUT.PUT_LINE('Invalid username or password');
END IF;
END;
-------------------------------------------------------
4. Retrieves organizers associated with a specific tournament and outputs their
names.
DECLARE
v_tournament_id NUMBER := 1;
BEGIN
get_organizers_for_tournament(v_tournament_id);
END;
---------------------------------------------------------------