Please let me know if there's a query for this case: I want to delete multiple rows based on spesific column
id | date | user | item | material | Text | Description |
------+------------+-----------+-------+--------------------+------+-------------+
12345 | 31.03.2015 | Starbucks | 00010 | 000000001011000106 | abcd | something |
null | 31.03.2015 | Starbucks | 00010 | 000000001011000106 | abcd | something |
54321 | 31.03.2015 | Burger | 00010 | 000000001011000106 | abcd | something |
11111 | 31.03.2015 | Burger | 00010 | 000000001011000106 | abcd | something |
Let say I want to delete multiple rows that contains user "Starbucks" more than 1, I want to delete the one that has id null. But if there's no id that contains null, like "Burger", I just want to delete one, and pick 1 whatever it is. So, it should be like this :
id | date | user | item | material | Text | Description |
------+------------+-----------+-------+--------------------+------+-------------+
12345 | 31.03.2015 | Starbucks | 00010 | 000000001011000106 | abcd | something |
54321 | 31.03.2015 | Burger | 00010 | 000000001011000106 | abcd | something |
Can I?