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

  • Home
  • SEARCH
  • 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 7734261
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T07:12:21+00:00 2026-06-01T07:12:21+00:00

Using sqlite3, I have a table that looks like this: +———+—————–+———-+———–+——–+ | ArtId |

  • 0

Using sqlite3, I have a table that looks like this:

+---------+-----------------+----------+-----------+--------+
| ArtId   |    Location     | ArtistID |  Title    |  Size  |
+---------+-----------------+----------+-----------+--------+
|  3      |      China      |   400    |   birds   | small  |
|  4      |      Samoa      |   670    |   stars   | large  |
|  5      |      Chile      |   427    |   clouds  | medium |
|  6      |        US       |   427    |   clouds  | small  |
|  7      |      France     |   123    |   collage | small  |
|  8      |      Spain      |   123    |   collage | large  |
|  9      |     Belarus     |   123    |   collage | medium |
+---------+-----------------+----------+-----------+--------+

I have a query that produces all the results where the only results are ones with duplicate titles and artists:

SELECT * 
FROM LiveArt c1, (SELECT Title, ArtistID FROM LiveArt GROUP BY Title, ArtistID) c2 
WHERE c1.Title = c2.Title AND c1.ArtistID = c2.ArtistID

to produce the following table:

+---------+-----------------+----------+-----------+--------+
| ArtId   |    Location     | ArtistID |  Title    |  Size  |
+---------+-----------------+----------+-----------+--------+
|  5      |      Chile      |   427    |   clouds  | medium |
|  6      |        US       |   427    |   clouds  | small  |
|  7      |      France     |   123    |   collage | small  |
|  8      |      Spain      |   123    |   collage | large  |
|  9      |     Belarus     |   123    |   collage | medium |
+---------+-----------------+----------+-----------+--------+

What I want returned is this:

+---------+-----------------+----------+-----------+--------+
| ArtId   |    Location     | ArtistID |  Title    |  Size  |
+---------+-----------------+----------+-----------+--------+
|  6      |        US       |   427    |   clouds  | small  |
|  8      |      Spain      |   123    |   collage | large  |
|  9      |     Belarus     |   123    |   collage | medium |
+---------+-----------------+----------+-----------+--------+

How can I tweak my query to do that (skip the first matched result)?

  • 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-01T07:12:22+00:00Added an answer on June 1, 2026 at 7:12 am
    select * from tabName A
    where A.ArtId !=
    (
        select min(ArtId)
        from tabName B
        group by Title
        having A.Title=B.Title
    );
    

    ArtId       Location    ArtistID    Title       Size
    ----------  ----------  ----------  ----------  ----------
    6           US          427         clouds      small
    8           Spain       123         collage     large
    9           Belarus     123         collage     medium
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using sqlite3 in python 2.5. I've created a table that looks like this:
I have a table that looks like something like this: timestamp value person ===============================================
I have a SQlite3 table that has typeless columns like in this example: CREATE
i have created table using Sqlite3.and also inserted record in that table.its running successfully.but
I have an app using SQLite3. It's running pretty well, but I would like
I have created a file named MyFile.db using SQLite3 from my C#.net application. This
I have a file with contents something like this: INSERT INTO table VALUES (NULL,'°
I use SQLite3 and have a table called blobs that stores content and *hash_value*.
I have a table in SQlite that I'm using to cache some data. I'm
Using sqlite3, I have two tables: products, orders. I want to know how many

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.