Below code block is throwing error..
DECLARE
TYPE dbadaptor IS VARRAY (9) OF VARCHAR2(20);
min_date DATE;
max_date DATE;
db dbadaptor := dbadaptor('wsf_ds_11765_c', 'wsf_ds_11750_c',
'wsf_ds_11756_c', 'wsf_ds_11759_c',
'wsf_ds_11706_c', 'wsf_ds_11709_c',
'wsf_ds_11751_c', 'wsf_ds_11708_c',
'wsf_ds_11762_c');
BEGIN
FOR i IN 1..9 LOOP
SELECT
from_sf_date(max(start_time)),
from_sf_date(min(start_time))
INTO max_date, min_date
FROM db(i);
END LOOP;
END;
I am getting an error at line 8 ” PL/SQL: ORA-00933: SQL command not properly ended ” and this is because of db(i)…. Can you please help me out