UPDATE R
SET R.status="0"
FROM dbo.ProductReviews AS R
INNER JOIN dbo.products AS P
ON R.pid = P.id
WHERE R.id = '17190'
AND P.shopkeeper="89137";
More Related Contents:
- What is the best way to create and populate a numbers table?
- How do I generate a random number for each row in a T-SQL select?
- Auto increment primary key in SQL Server Management Studio 2012
- SQL Server Linked Server Example Query
- Combine multiple results in a subquery into a single comma-separated value
- Infinite loop CTE with OPTION (maxrecursion 0)
- SQL Server IN vs. EXISTS Performance
- How to drop a table if it exists?
- PIVOT in sql 2005
- How to run the same query on all the databases on an instance?
- Atomic UPSERT in SQL Server 2005
- SQL Server truncation and 8192 limitation
- Get dates from a week number in T-SQL
- What are named pipes?
- How to check if a database exists in SQL Server?
- BULK INSERT with identity (auto-increment) column
- How to update primary key
- determining the character set of a table / database?
- SQL Server 2008 Row Insert and Update timestamps
- Full text search does not work if stop word is included even though stop word list is empty
- Should I index a bit field in SQL Server?
- Setting up maven dependency for SQL Server
- Trouble Connecting to sql server Login failed. “The login is from an untrusted domain and cannot be used with Windows authentication”
- In SQL Server, how can I lock a single row in a way similar to Oracle’s “SELECT FOR UPDATE WAIT”?
- Escaping single quote in SQL Server
- SQL Server 2008 can’t login with newly created user
- Update SQL with consecutive numbering
- Nested transactions in Sql Server
- What is the difference between Cartesian product and cross join?
- Count number of records returned by group by