My problem is to write a query (PostgreSQL) to get a 'propno' where 'newsname' is not equal 'NYT' (the answer is 40).
newsname | propno | dateadvert | cost
----------------------+--------+------------+------
NYT | 30 | 2018-01-01 | 10.2
NYT | 30 | 2018-01-10 | 15.2
NYT | 10 | 2018-01-02 | 20.2
NYT | 20 | 2018-02-01 | 10.2
Guardian | 40 | 2018-02-10 | 100
Guardian | 10 | 2018-01-02 | 13.2
Guardian | 30 | 2018-01-10 | 10.8
Thanks for help