Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7975507
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T08:39:36+00:00 2026-06-04T08:39:36+00:00

CID,NAME,EMAIL,LOC are the Attributes of the two tables Create View TEST_V As Select *

  • 0

“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.”

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T08:39:38+00:00Added an answer on June 4, 2026 at 8:39 am

    If you need the ROWIDs of the base tables of the view do this:

    Create View TEST_V As
    Select Table1.*, rowid as row_id From Table1
    Union all
    Select Table2.*, rowid as row_id From Table2;
    

    then:

    Insert Into TEST_ERROR (Source_Rowid, Source_Table, Filter_Id, Date_Time, Action)
    Select ROW_ID, 'TEST_V', 100, sysdate,'Request Admin'
    From TEST_V
    Where LOC in (Select CityList From Location);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

SELECT a.id, a.name, a.ad, c.name, c.phone, c.email, ( SELECT b.id_user FROM price_b b WHERE
I have two tables like this. Table 1 Fields: CId , Name Table 2
I want to create a database in SQLite with two tables: Customer and Orders.
heres my code: $sql = mysql_query(select c.name, c.address, c.postcode, c.dob, c.mobile, c.email, count(select *
I want to delete rows from multiple tables. I know the select query, but
Here is my table and data of these tables Table name: Code CID Code
i want to create these two tables but i'm getting an error which says
From reading the RFC it appears that CID can/must only contain characters from the
The case: I have 2 tables, 'contracts' and 'members' tied with contract.id = members.cid.
I have the following query: select top 100 eid, cid, id, position, ROW_NUMBER() over(order

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.