I'm not used to SQL a lot, so maybe my question is so dumb, don't be hard with me guys ;) So, this is my table PEOPLE, and what i want is with a query is find the people that are not in an expecific age, but im getting an error. PEOPLE +-------+------+---------+ | NUMPOL| MCT | PRODNUM| +-------+------+---------+ | 98552 | 1054 | 9704 | +-------+------+---------+ | 89854 | 0985 | 5014 | +-------+------+---------+ | 78542 | 1054 | 9704 | +-------+------+---------+ | 98552 | 0965 | 9704 | +-------+------+---------+ | 98552 | 4222 | 9704 | +-------+------+---------+ I'm trying to run this query SELECT NUMPOL, MCT, PRODCO FROM PEOPLE WHERE MCT NOT IN (1054,0965) AND PRODNUM='9704' GROUP BY NUMPOL And this is the error that I'm getting, I tried to solve it googling but never could find an answer because I can't find why it told me that the select list is not valid: SQLCODE = -122, ERROR: COLUMN OR...
I am trying to install pyscopg2 (using pip) on Sierra. Seems to be a common problem, so I've checked out a handful of other SO answers. I tried the solution from here . But I still can't install. My error is Could not find a version that satisfies the requirement pyscopg2 (from versions: ) No matching distribution found for pyscopg2 When I run which -a pg_config , I get TWO lines: /Applications/Postgres.app/Contents/Versions/9.5/bin//pg_config /Applications/Postgres.app/Contents/Versions/9.5/bin/pg_config Which feels wrong. 1\ Is the double pg_config the source of my problem? 2\ If so, how do I correct?