One way:
SELECT RESTAURANT_NO FROM restaurant WHERE RESTAURANT_NO NOT IN
(SELECT RESTAURANT_NO FROM restaurant WHERE RESTAURANT_LOCATION = 'City C')
More Related Contents:
- Reason for Column is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause [duplicate]
- Using group by on multiple columns
- Is there any difference between GROUP BY and DISTINCT
- How to use count and group by at the same select statement
- must appear in the GROUP BY clause or be used in an aggregate function
- GROUP BY to combine/concat a column [duplicate]
- Concat groups in SQL Server [duplicate]
- JOIN two SELECT statement results
- Ms Access Query: Concatenating Rows through a query
- SQL query for finding records where count > 1
- Group by month and year in MySQL
- SQL Group by & Max
- SQL to Entity Framework Count Group-By
- SQL GROUP BY CASE statement with aggregate function
- Mysql: how to select groups having certain values?
- MySQL #1140 – Mixing of GROUP columns
- SQL Server Update Group by
- PostgreSQL Where count condition
- Huge performance difference when using GROUP BY vs DISTINCT
- sql group by only rows which are in sequence
- GROUP BY without aggregate function
- MySQL GROUP BY behavior
- Conditional SQL count
- Get values from first and last row per group
- How to return a incremental group number per group in SQL
- SQL query to group by day
- How to get list of values in GROUP_BY clause?
- Conversion failed when converting the varchar value ‘simple, ‘ to data type int
- Why doesn’t Oracle SQL allow us to use column aliases in GROUP BY clauses?
- How to group by a Calculated Field