Professional Documents
Culture Documents
1.) Write a PL/SQL block to display the country_id and country_name values from the WF_COUNTRIES table
for country_id whose values range from 51 through 55.
Supply the missing elements of the given code to satisfy the above statement.
declare
vcid countries.country_id%type;
vcname countries.country_name%type;
vctr pls_integer;
begin
vctr := _____;
loop
dbms_output.put_line(vcid||' '||vcname);
vctr := _________;
end loop;
end;
2.) In the code below, three new location IDs for Montreal, Canada, are inserted in the LOCATIONS
table.
Supply the missing part of the code to satisfy the above statement.
DECLARE
v_loc_id locations.location_id%TYPE;
BEGIN
WHERE country_id = 2;
END LOOP;
END;