Advertisement
Advertisement
| 05.09.2008 at 05:40PM PDT, ID: 23391133 |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
|
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
| Microsoft |
| Apple |
| Internet |
| Gamers |
| Digital Living |
| Virus & Spyware |
| Hardware |
| Software |
| ITPro |
| Developer |
| Storage |
| OS |
| Database |
| Security |
| Programming |
| Web Development |
| Networking |
| Other |
| Community Support |
| 05.09.2008 at 06:29PM PDT, ID: 21537495 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: |
SELECT Table1.VendorId, Table1.InvoiceNumber, Table1.InvoiceAmount, Table1.InvoiceDate FROM Table1 INNER JOIN ( SELECT Table1.VendorId, Table1.InvoiceNumber, Table1.InvoiceAmount FROM Table1 GROUP BY Table1.VendorId, Table1.InvoiceNumber, Table1.InvoiceAmount HAVING Count(Table1.InvoiceDate)>1) t2 ON Table1.VendorId=t2.VendorId AND Table1.InvoiceNumber=t2.InvoiceNumber AND Table1.InvoiceAmount=t2.InvoiceAmount |
| 05.09.2008 at 07:09PM PDT, ID: 21537571 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: |
SELECT * FROM YourTable A
WHERE Exists (
SELECT True FROM YourTable
WHERE [Vendor ID] = A.[Vendor ID]
AND [Invoice Number] = A.[Invoice Number]
AND [Invoice Date] = A.[Invoice Date]
AND [Invoice Amount]<> A.[Invoice Amount]
)
OR Exists (
SELECT True FROM YourTable
WHERE [Vendor ID] = A.[Vendor ID]
AND [Invoice Number] = A.[Invoice Number]
AND [Invoice Date] <> A.[Invoice Date]
AND [Invoice Amount] = A.[Invoice Amount]
)
OR Exists (
SELECT True FROM YourTable
WHERE [Vendor ID] = A.[Vendor ID]
AND [Invoice Number]<> A.[Invoice Number]
AND [Invoice Date] = A.[Invoice Date]
AND [Invoice Amount] = A.[Invoice Amount]
)
OR Exists (
SELECT True FROM YourTable
WHERE [Vendor ID] <> A.[Vendor ID]
AND [Invoice Number] = A.[Invoice Number]
AND [Invoice Date] = A.[Invoice Date]
AND [Invoice Amount] = A.[Invoice Amount]
)
|
| 05.09.2008 at 09:00PM PDT, ID: 21537808 |
1: 2: 3: 4: 5: 6: 7: 8: |
SELECT A.* FROM Tablename A, Tablename B WHERE (A.[Vendor ID]=B.[Vendor ID]) + (A.[Invoice Number]=B.[Invoice Number]) + (A.[Invoice Date]=B.[Invoice Date]) + (A.[Invoice Amount]=B.[Invoice Amount])=-3 |
| 05.09.2008 at 09:05PM PDT, ID: 21537815 |
| 05.09.2008 at 09:05PM PDT, ID: 21537816 |
| 05.09.2008 at 09:55PM PDT, ID: 21537900 |
| 05.10.2008 at 07:36AM PDT, ID: 21539168 |
| 05.10.2008 at 09:57PM PDT, ID: 21541519 |
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: |
SELECT "Vendor ID" as DiffField, A.* FROM YourTable A
WHERE Exists (
SELECT True FROM YourTable
WHERE [Vendor ID] <> A.[Vendor ID]
AND [Invoice Number] = A.[Invoice Number]
AND [Invoice Date] = A.[Invoice Date]
AND [Invoice Amount] = A.[Invoice Amount]
)
UNION ALL
SELECT "Invoice Number" as DiffField, A.* FROM YourTable A
WHERE Exists (
SELECT True FROM YourTable
WHERE [Vendor ID] = A.[Vendor ID]
AND [Invoice Number]<> A.[Invoice Number]
AND [Invoice Date] = A.[Invoice Date]
AND [Invoice Amount] = A.[Invoice Amount]
)
UNION ALL
SELECT "Invoice Date" as DiffField, A.* FROM YourTable A
WHERE Exists (
SELECT True FROM YourTable
WHERE [Vendor ID] = A.[Vendor ID]
AND [Invoice Number] = A.[Invoice Number]
AND [Invoice Date] <> A.[Invoice Date]
AND [Invoice Amount] = A.[Invoice Amount]
)
UNION ALL
SELECT "Invoice Amount" as DiffField, A.* FROM YourTable A
WHERE Exists (
SELECT True FROM YourTable
WHERE [Vendor ID] = A.[Vendor ID]
AND [Invoice Number] = A.[Invoice Number]
AND [Invoice Date] = A.[Invoice Date]
AND [Invoice Amount]<> A.[Invoice Amount]
)
|
| 05.12.2008 at 02:44PM PDT, ID: 21550768 |
| 05.19.2008 at 09:34AM PDT, ID: 21599287 |