خرید بک لینک

Vote count: 0

I have a Table with 4 columns and 7 rows.

this is my table sample

This table contains 1 Customer with the same ID same LNAME and FNAME.

Also the table has 2 Customers with the same ID, but Different by LNAME or FNAME.

That is the sales reps input error. Ideally my table should have only 2 rows

[![UNIQUE CUSTOMERS][3]][3]

enter image description here

I need to have the following result-sets from the above table:

1.) All unique rows by all the four columns (Row with ID_pk 3 and 7). (excluding case # 3 listed below)

2.) All duplicates by all the four columns (Row with ID_pk 3 and 8).

3.) All duplicates by Customer_ID but with not matching LNAME and/or FNAME (Row with ID_pk 1, 2, 4 and 5) (these rows have to be sent back to sales reps for validation.)

asked 1 min ago

برچسب: نویسنده: استخدام کار تاريخ: دوشنبه 20 ارديبهشت 1395 ساعت: 2:55

صفحه بندی