Error map

8120 SQL Server Msg 8120: Column is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause

SQL · layer 5, Data

Open the full error page →

Centre: this error. First ring: errors it is linked with (8). Outer ring: what those are linked with. Colours show the layer of a request each error belongs to. Click any dot to re-centre the map on it; hover to follow its connections. The centre dot opens the error page.

8120 — SQL Server Msg 8120: Column is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause (SQL)8120GROUP BY — Column must appear in the GROUP BY clause / isn't in GROUP BY (MySQL 1055 only_full_group_by) (SQL)GROUP BYaggregate in WHERE — ERROR: aggregate functions are not allowed in WHERE (use HAVING) / MySQL 1111 Invalid use of group function (SQL)aggregate in WHERE916 — SQL Server Msg 916: The server principal is not able to access the database under the current security context (SQL)916209 — SQL Server Msg 209: Ambiguous column name (SQL)2095123 — SQL Server Msg 5123: CREATE FILE encountered operating system error 5 (Access is denied) while attempting to open the physical file (SQL)5123ORA-00979 — ORA-00979: not a GROUP BY expression (SQL)ORA-00979COUNT — COUNT(column) ignores NULLs: counts differ from COUNT(*) (SQL)COUNTORDER BY with DISTINCT — ORDER BY items must appear in the select list if SELECT DISTINCT is specified (SQL)ORDER BY with DISTI…1064 — MySQL ERROR 1064 (42000): You have an error in your SQL syntax (MySQL)1064ambiguous column — Column reference is ambiguous / Column 'id' in field list is ambiguous (MySQL 1052) (SQL)ambiguous columnSubquery returns more than 1 row — Subquery returns more than 1 row (MySQL 1242) / more than one row returned by a subquery used as an expression (SQL)Subquery returns mo…42601 — ERROR: syntax error at or near "x" (PostgreSQL)42601missing FROM-clause — ERROR: missing FROM-clause entry for table "x" (PostgreSQL)missing FROM-clauseSQLite syntax error — sqlite3.OperationalError: near "x": syntax error (SQL)SQLite syntax error0x80070005 — Windows Error 0x80070005 (E_ACCESSDENIED): Access is denied (Windows)0x80070005sudoers — user is not in the sudoers file. This incident will be reported. (Linux)sudoersAccessDeniedException — java.nio.file.AccessDeniedException: /path (Java)AccessDeniedExcepti…1066 — MySQL ERROR 1066 (42000): Not unique table/alias: 'x' (SQL)1066cartesian — Query returns far too many rows: accidental Cartesian product (missing JOIN condition) (SQL)cartesianLEFT JOIN — LEFT JOIN returns fewer rows: a WHERE filter on the right table turns it into an INNER JOIN (SQL)LEFT JOINlisten EACCES — Error: listen EACCES: permission denied 0.0.0.0:80 (Node.js)listen EACCESEPERM — Error: EPERM: operation not permitted, rename / unlink (Node.js)EPERMspawn EACCES — Error: spawn EACCES (Node.js)spawn EACCESORA-00904 — ORA-00904: "X": invalid identifier (SQL)ORA-00904ORA-00001 — ORA-00001: unique constraint (SCHEMA.PK_X) violated (SQL)ORA-00001ORA-00018 — ORA-00018: maximum number of sessions exceeded (SQL)ORA-00018= NULL — WHERE col = NULL returns no rows (use IS NULL) (SQL)= NULLNOT IN — NOT IN (subquery) returns no rows because the subquery contains NULL (SQL)NOT INdouble quotes — "column" not found: double quotes mean identifiers, single quotes mean strings (SQL)double quotes1248 — MySQL ERROR 1248 (42000): Every derived table must have its own alias (SQL)1248CASE — CASE expression returns mixed types: conversion failed / types cannot be matched (SQL)CASELIMIT — LIMIT/TOP without ORDER BY returns different rows each time (SQL)LIMIT

Directly related (8)

Two steps away (24)

1064MySQL

MySQL ERROR 1064 (42000): You have an error in your SQL syntax

MySQL couldn’t parse the query. The text after “near” shows where parsing failed.

ambiguous columnSQL

Column reference is ambiguous / Column 'id' in field list is ambiguous (MySQL 1052)

A column name exists in more than one joined table, so the database doesn’t know which one you mean.

Subquery returns more than 1 rowSQL

Subquery returns more than 1 row (MySQL 1242) / more than one row returned by a subquery used as an expression

A subquery used where a single value is expected (`= (SELECT …)`) returned several rows.

42601PostgreSQL

ERROR: syntax error at or near "x"

PostgreSQL couldn’t parse the SQL; the token shown is where parsing failed.

missing FROM-clausePostgreSQL

ERROR: missing FROM-clause entry for table "x"

The query references a table/alias that isn’t in the FROM clause (or uses the wrong alias).

SQLite syntax errorSQL

sqlite3.OperationalError: near "x": syntax error

SQLite couldn’t parse the statement; the token after “near” is where it stopped.

0x80070005Windows

Windows Error 0x80070005 (E_ACCESSDENIED): Access is denied

Windows refused an operation because the account or process lacks permission — seen in Windows Update, installers, Task Scheduler…

sudoersLinux

user is not in the sudoers file. This incident will be reported.

Your account isn’t allowed to use sudo.

AccessDeniedExceptionJava

java.nio.file.AccessDeniedException: /path

The OS denied a file operation to the Java process.

1066SQL

MySQL ERROR 1066 (42000): Not unique table/alias: 'x'

The same table or alias appears twice in a FROM/JOIN without distinct aliases.

cartesianSQL

Query returns far too many rows: accidental Cartesian product (missing JOIN condition)

Two tables were joined without a condition, so every row of one pairs with every row of the other.

LEFT JOINSQL

LEFT JOIN returns fewer rows: a WHERE filter on the right table turns it into an INNER JOIN

A condition on the right-hand table in WHERE removes the NULL-extended rows that a LEFT JOIN was supposed to keep.

listen EACCESNode.js

Error: listen EACCES: permission denied 0.0.0.0:80

Node isn’t allowed to bind that port — ports below 1024 need root on Linux/macOS, and some Windows ports are reserved.

EPERMNode.js

Error: EPERM: operation not permitted, rename / unlink

The OS refused a file operation — on Windows usually because another process (antivirus, editor, indexer) has the file locked.

spawn EACCESNode.js

Error: spawn EACCES

Node tried to execute a file that isn’t executable (missing +x permission) or isn’t a program.

ORA-00904SQL

ORA-00904: "X": invalid identifier

A column name in the statement doesn’t exist (or is misquoted).

ORA-00001SQL

ORA-00001: unique constraint (SCHEMA.PK_X) violated

An insert/update duplicated a value in a unique or primary key constraint.

ORA-00018SQL

ORA-00018: maximum number of sessions exceeded

The database reached its SESSIONS limit, so no new connection can be created.

= NULLSQL

WHERE col = NULL returns no rows (use IS NULL)

Comparing anything to NULL with = or never matches, because the result is UNKNOWN, not true.

NOT INSQL

NOT IN (subquery) returns no rows because the subquery contains NULL

If the list or subquery for NOT IN contains a single NULL, the whole condition is UNKNOWN and no rows come back.

double quotesSQL

"column" not found: double quotes mean identifiers, single quotes mean strings

In standard SQL double quotes quote identifiers, so "abc" is read as a column name, not a text value.

1248SQL

MySQL ERROR 1248 (42000): Every derived table must have its own alias

A subquery in FROM wasn’t given an alias.

CASESQL

CASE expression returns mixed types: conversion failed / types cannot be matched

The branches of a CASE expression produce incompatible data types (text and number, date and string).

LIMITSQL

LIMIT/TOP without ORDER BY returns different rows each time

Without ORDER BY the database may return rows in any order, so "first 10" changes between runs or after maintenance.