:

SQL:

SELECT DISTINCT X, Y, , Z FROM A;