Re: [sqlite] Re: A beginner SQL question

2007-11-05 Thread A.J.Millan
Igor Tandetnik > select rowid, A, B, C > from t > where A||B||C in > ( select A||B||C > from t > group by A, B, C > having count(*)>1 > ); Wouldn't that mistakenly consider a record ('xy', 'z', 'w') to be duplicate of ('x', 'yz', 'w') ? Igor Tandetnik Due the fact that, in this case, the

RE: [sqlite] Re: A beginner SQL question

2007-11-05 Thread Rosenblum, Jason
ember 05, 2007 13:19 To: sqlite-users@sqlite.org Subject: Re: [sqlite] Re: A beginner SQL question On 05/11/2007, Igor Tandetnik <[EMAIL PROTECTED]> wrote: > Simon Davies > wrote: > > I use: > > > > select rowid, A, B, C > > from t > > where A||B||C in > > ( s

Re: [sqlite] Re: A beginner SQL question

2007-11-05 Thread Simon Davies
On 05/11/2007, Igor Tandetnik <[EMAIL PROTECTED]> wrote: > Simon Davies > wrote: > > I use: > > > > select rowid, A, B, C > > from t > > where A||B||C in > > ( select A||B||C > > from t > > group by A, B, C > > having count(*)>1 > > ); > > Wouldn't that mistakenly consider a record ('xy', 'z',

[sqlite] Re: A beginner SQL question

2007-11-05 Thread Igor Tandetnik
Simon Davies wrote: I use: select rowid, A, B, C from t where A||B||C in ( select A||B||C from t group by A, B, C having count(*)>1 ); Wouldn't that mistakenly consider a record ('xy', 'z', 'w') to be duplicate of ('x', 'yz', 'w') ? Igor Tandetnik

RE: [sqlite] Re: A beginner SQL question

2007-11-05 Thread A.J.Millan
Igor: The proposed solution seem list all rows in the table. Perhaps miss some thing in between myTable t1 and myTable t2? Gerry: Yours solution does not list any at all. It is likely that there are not duplicated entrys (at least must not happen that.). Thanks for yours input.

Re: [sqlite] Re: A beginner SQL question

2007-11-05 Thread Gerry Snyder
Igor Tandetnik wrote: A.J.Millan <[EMAIL PROTECTED]> wrote: Suppose a table: CREATE TABLE 'myTable' ( A INTEGER NOT NULL, B INTEGER NOT NULL, C INTEGER); Do is there some query to return if there are some duplicate files and/or who are they? Consider duplicate file if there are two or more

[sqlite] Re: A beginner SQL question

2007-11-05 Thread Igor Tandetnik
A.J.Millan <[EMAIL PROTECTED]> wrote: Suppose a table: CREATE TABLE 'myTable' ( A INTEGER NOT NULL, B INTEGER NOT NULL, C INTEGER); Do is there some query to return if there are some duplicate files and/or who are they? Consider duplicate file if there are two or more rows with the same