“CID”,”NAME”,”EMAIL”,”LOC” are the Attributes of the two tables
Create View TEST_V As
Select * From Table1
Union
Select * From Table2;
Insert Into TEST_ERROR (Source_Rowid, Source_Table, Filter_Id,
Date_Time, Action)Select ROWID, ‘TEST_V’, 100, sysdate,’Request Admin’
From TEST_V
Where LOC = (Select CityList From Location);
Location is another Table and has CityList defined in it, I want to match and CityList with LOC and then Add the row.
The Error I am getting is:
SQL Error: ORA-01446: cannot select ROWID from, or sample, a view with DISTINCT, GROUP BY, etc.
01446. 00000 – “cannot select ROWID from, or sample, a view with DISTINCT, GROUP BY, etc.”
If you need the ROWIDs of the base tables of the view do this:
then: