Re: want to see duplicates INNER JOIN
From: Steve Kass (skass_at_drew.edu)
Date: 04/21/04
- Next message: ashleyT: "Re: want to see duplicates INNER JOIN"
- Previous message: larry: "Time Out Error"
- In reply to: AshleyT: "want to see duplicates INNER JOIN"
- Next in thread: ashleyT: "Re: want to see duplicates INNER JOIN"
- Reply: ashleyT: "Re: want to see duplicates INNER JOIN"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 21 Apr 2004 13:48:12 -0400
Please provide more information. It's impossible to see what duplicate
rows you are talking about without a better idea of what your tables and
data are. Can you give CREATE TABLE statements and sample data, then
show what you want to see as a result? Perhaps the problem is with
GROUP BY, though - how do you expect to see duplicate rows in a result
when you have asked for one row for each group by including GROUP BY?
SK
AshleyT wrote:
>Below is my query where I want to see duplicate rows, but I don't:
>
>SELECT dbo.tblItemOrder.Itemnumber, dbo.cp_IV00101.ITEMDESC, dbo.tblItemOrder.Quantity
>FROM dbo.tblItemOrder INNER JOIN
> dbo.cp_IV00101 ON dbo.tblItemOrder.Itemnumber = dbo.cp_IV00101.ITEMNMBR
>WHERE (dbo.tblItemOrder.Itemstatus = 'okay' and store = '001SS'
>GROUP BY dbo.tblItemOrder.Itemnumber, dbo.tblItemOrder.Quantity, dbo.cp_IV00101.ITEMDESC, dbo.cp_IV00101.SELNGUOM
>ORDER BY dbo.tblItemOrder.Itemnumber
>
>how can I see those rows as duplicates? It is a working table that I don't have a primary key in, and was hoping not to have to add one. Thanks for any ideas.
>
>
- Next message: ashleyT: "Re: want to see duplicates INNER JOIN"
- Previous message: larry: "Time Out Error"
- In reply to: AshleyT: "want to see duplicates INNER JOIN"
- Next in thread: ashleyT: "Re: want to see duplicates INNER JOIN"
- Reply: ashleyT: "Re: want to see duplicates INNER JOIN"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
- Re: Violation of Primary Key
... Maybe you could post your DML and sample data to reproduce the problem? ...
You're trying to insert a duplicate ... making changes and I receive an error that
says the following: ... > Violation of PRIMARY KEY constraint 'PK_CUSTOMERS'. ...
(microsoft.public.sqlserver.server) - Re: How to: Remove duplicate TITLES but keep a COUNTRY code
... Please provide the table schema and sample data. ... > This works perfectly
and removes any duplicate entries with the same TITLE ... country of ORIGIN codes
such EEC - USA - CAN - DOM ... (microsoft.public.sqlserver.programming) - Re: Finding duplicate names
... Assuming the data in cols A and B are in row1 down ... For the sample
data in your post ... Jack Black..Not a Duplicate ... (microsoft.public.excel.misc) - Re: Deleting duplicate records based on lowest number
... > Can some one assist with deleting duplicate records based on lowest ...
all occurences of a duplicate F1 value. ... Sample Data ... FROM tblDUP
AS D0 ... (microsoft.public.access.gettingstarted) - Re: Nested Sets and custom sorting
... Would it be possible for you to post some sample data (in the ... form of INSERT
statements - just enough to duplicate the problem) and the ... complete code you're currently
using to populate the tree? ... (microsoft.public.sqlserver.programming)