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 8617307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T05:49:25+00:00 2026-06-12T05:49:25+00:00

I am not deeply acquainted with Oracle Sql Queries, therefore I face a problem

  • 0

I am not deeply acquainted with Oracle Sql Queries, therefore I face a problem on deleting some rows from a table which must fulfill a constraint which includes fields of another (joining) table. In other words I want to write a query to delete rows including JOIN.

In my case I have a table ProductFilters and another table Products joined on fields ProductFilters.productID = Products.ID. I want to delete the rows from ProductFilters having an ID higher or equal to 200 and the product they refer has the name ‘Mark’ (name is a field in Product).

I would like to be informed initially if JOIN is acceptable in a Delete Query in Oracle. If not how should I modify this Query in order to make it work, since on that form I receive an error:

DELETE From PRODUCTFILTERS pf 
where pf.id>=200 
And pf.rowid in 
(
     Select rowid from PRODUCTFILTERS 
     inner join PRODUCTS on PRODUCTFILTERS.PRODUCTID = PRODUCTS.ID 
     And PRODUCTS.NAME= 'Mark'
);       
  • 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-12T05:49:26+00:00Added an answer on June 12, 2026 at 5:49 am

    Based on the answer I linked to in my comment above, this should work:

    delete from
    (
    select pf.* From PRODUCTFILTERS pf 
    where pf.id>=200 
    And pf.rowid in 
      (
         Select rowid from PRODUCTFILTERS 
         inner join PRODUCTS on PRODUCTFILTERS.PRODUCTID = PRODUCTS.ID 
         And PRODUCTS.NAME= 'Mark'
      )
    ); 
    

    or

    delete from PRODUCTFILTERS where rowid in
    (
    select pf.rowid From PRODUCTFILTERS pf 
    where pf.id>=200 
    And pf.rowid in 
      (
         Select PRODUCTFILTERS.rowid from PRODUCTFILTERS 
         inner join PRODUCTS on PRODUCTFILTERS.PRODUCTID = PRODUCTS.ID 
         And PRODUCTS.NAME= 'Mark'
      )
    ); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using droppable to provide feedback is not a good option due to their deeply
Not able to download artifacts from central maven repository. <mirrors> <!-- mirror | Specifies
i have this statement in access: SELECT * FROM accountsnew WHERE [Panels] not like
This problem has been bothering me for sometime now, I have not settled on
Is there an easy way to access to the root view from a deeply
I'm writing some logging/auditing code that will be running in production (not just when
I'm facing a problem I cannot solve. And I do not know whether it
I have a custom ActionResult which is more deeply encountering System.Web.HttpException when the remote
I would like to do some integration testing of a web service from within
This is not a question about putting std::auto_ptr into std::vector. Is there some vector

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.