You need the table name/alias in the SELECT
part (maybe (vg.id, name)
) :
SELECT (vg.id, name) FROM v_groups vg inner join people2v_groups p2vg on vg.id = p2vg.v_group_id where p2vg.people_id =0;
Related Posts:
- How do I UPDATE from a SELECT in SQL Server?
- SQL SELECT WHERE field contains words
- SQL SELECT WHERE field contains words
- SQL SELECT WHERE field contains words
- ORA-01843 not a valid month- Comparing Dates
- Best way to do nested case statement logic in SQL Server
- missing FROM-clause entry for table
- Insert text with single quotes in PostgreSQL
- ERROR: there is no unique constraint matching given keys for referenced table “bar”
- Simulate CREATE DATABASE IF NOT EXISTS for PostgreSQL?
- Postgresql tables exists, but getting “relation does not exist” when querying
- postgresql: error duplicate key value violates unique constraint
- pg_ctl: no database directory specified and environment variable PGDATA unset
- How to write a SQL DELETE statement with a SELECT statement in the WHERE clause?
- Postgres Error: More than one row returned by a subquery used as an expression
- What is the difference between LATERAL JOIN and a subquery in PostgreSQL?
- SQL: Two select statements in one query
- SQL conditional SELECT
- PostgreSQL create table if not exists
- updating table rows in postgres using subquery
- PostgreSQL visual interface similar to phpMyAdmin?
- DATEDIFF function in Oracle
- GROUP BY and COUNT using ActiveRecord
- MySQL error: Unknown column in ‘where clause’
- How to order by column A and then by column B?
- What is a postgres superuser
- Help me SELECT thumbnail from SQL and use
- how to SELECT meta values that are not null?
- What’s the best way to search for a UPC code in a Database?
- What is the difference between “INNER JOIN” and “OUTER JOIN”?
- Case in Select Statement
- Self Join to get employee manager name
- How can I do an UPDATE statement with JOIN in SQL Server?
- How do I use properly CASE..WHEN in MySQL
- Must declare the scalar variable
- INSERT statement conflicted with the FOREIGN KEY constraint – SQL Server
- INSERT statement conflicted with the FOREIGN KEY constraint – SQL Server
- Case statement in MySQL
- How to implement one-to-one, one-to-many and many-to-many relationships while designing tables?
- Drop a temporary table if it exists
- ORA-00918: column ambiguously defined in SELECT *
- IDENTITY_INSERT is set to OFF – How to turn it ON?
- How to reset AUTO_INCREMENT in MySQL
- How do I limit the number of rows returned by an Oracle query after ordering?
- MySQL: Invalid use of group function
- Compare dates in MySQL
- Get day of week in SQL Server 2005/2008
- incorrect syntax error CREATE VIEW must be the only statement in the batch
- PLS-00103: Encountered the symbol when expecting one of the following:
- MySQL Error 1264: out of range value for column
- How do you create a temporary table in an Oracle database?
- Oracle SQL: Update a table with data from another table
- How to SUM and SUBTRACT using SQL?
- Determine ROW that caused “unexpected end of file” error in BULK INSERT?
- Sql query to insert datetime in SQL Server
- How to divide two columns?
- MySQL starts with searching issue
- SQL Parentheses use in an OR clause
- Is it possible to GROUP BY multiple columns using MySQL?
- SQL “select where not in subquery” returns no results
- ListAGG in SQLSERVER
- Is there a Max function in SQL Server that takes two values like Math.Max in .NET?
- Best way to test if a row exists in a MySQL table
- Get current year in TSQL
- Is it possible to specify condition in Count()?
- SQL Server: Make all UPPER case to Proper Case/Title Case
- How do I query for all dates greater than a certain date in SQL Server?
- Temporary table in SQL server causing ‘ There is already an object named’ error
- Oracle: If Table Exists
- Equivalent of explode() to work with strings in MySQL
- MySQL OPTIMIZE all tables?
- MySQL INSERT INTO table VALUES.. vs INSERT INTO table SET
- How do I count unique items in field in Access query?
- Append table to an existing one: SQL Server
- SQL Server – An expression of non-boolean type specified in a context where a condition is expected, near ‘RETURN’
- “select * into table” Will it work for inserting data into existing table
- ORA-01735: invalid ALTER TABLE option – Toad
- CASE IN statement with multiple values
- Update query using Subquery in Sql Server
- List of special characters for SQL LIKE clause
- “This SqlTransaction has completed; it is no longer usable.”… configuration error?
- register_post_status – show_in_admin_all_list & show_in_admin_status_list does not affect query
- prepare() not working
- How do I move a WordPress site to another server?
- Return number of items in a table with post id
- Debugging WordPress
- Pull data and display as rows and columns
- I need a SQL command to delete specific authors and all posts connected with them
- How can i restore only Blogs from a SQL backup file?
- DB_HOST – is LOCALHOST speedy than domain name? [closed]
- wpdb prepare sql problem
- How to change post published date to today date with SQL
- Do I need to sanitize $_POST[‘keyword’] before send to ‘s’ parameter?
- How do I display SQL query on a specific page of my wordpress site
- blank page after update my theme
- Sql query returns empty. But not
- SQL – JOIN last child
- Adding profile data to database
- How to get the sum of each post with the same date
- Deleting the MySQL database