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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:43:02+00:00 2026-06-13T19:43:02+00:00

I have an Sqlite3 database with a table like this: Table(com1, com2) A ||

  • 0

I have an Sqlite3 database with a table like this:

Table(com1, com2)

A || B
B || A
C || D
D || B
B || D

If I have 2 rows: A || B, and B || A, I want to delete one of them (I don’t care which one).

So to obtain:

A || B
C || D
D || B

I’ve read the many asks about duplicate rows but I cant find something like this. Thanks for any help.

  • 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-13T19:43:03+00:00Added an answer on June 13, 2026 at 7:43 pm

    I think solution for your problem should look like this:

    SELECT
        t1.val1,t1.val2
    FROM table AS t1
    JOIN table AS t2 ON (
        (t1.val1=t2.val2) AND (t1.val2=t2.val1)
    ) WHERE t1.val1<=t1.val2
    

    where table is the name of your table and val1 and val2 are names of columns in that table.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a database table like this: wagetable name lowhours highhours wage Default 0
I have a SQlite3 table that has typeless columns like in this example: CREATE
Hi all! I have a database table that looks somewhat like this (stripped for
i have a table in sqlite database like following. id status ============= x 0
I have the following table in a SQLite3 database: CREATE TABLE overlap_results ( neighbors_of_annotation
I have a DataTable which I want to save to a SQLite Database Table.
In this example we have 3 related tables on a SQLite database: CREATE TABLE
I have sqlite3 database with example structure and data: CREATE TABLE person(id INTEGER PRIMARY
I have a table 'invoices' in my development database (sqlite3) populated with a small
I have a file with contents something like this: INSERT INTO table VALUES (NULL,'°

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.