Posted on December 19, 2008 by Raghunath Bhandari
Sub Query Update:
if you want to run update query in join or by comparing other table then here is the example.
UPDATE Table1
SET Price = Price * 2
WHERE ProductID IN
(SELECT ID
FROM Table2
WHERE ID= 51);
GO
Here is an equivalent UPDATE statement using a join:
USE [...]
Filed under: SQL Subquery, Stored Procedures | Tagged: Microsoft SQL server, MSSQL, MSSQL server, SQL Server, SQL update with join, Sub Query Update, tow table update, UPDATE statement using a join | 1 Comment »
Posted on October 10, 2008 by Raghunath Bhandari
Most of us, the database programmers, have used Stored Procedures. May be not all of us knows about why we use them. This article is for those who have used/never used stored procedures, and are yet to understand why everyone suggests using them in your Database.
Stored Procedures – What are they?
Stored procedure is a [...]
Filed under: Stored Procedures | Tagged: Advance SQL tips and tricks, Author Raghunath Bhandari, Database, Database Optimization Tips, dba, MCP, Microsoft Certified Professional, MSDN Help, MSDN SQL News, MSSQL Resources, MSSQL Server help, SQL, SQL Best practices and tips, SQL Coding Standards, SQL Database Optimization Tricks, SQL Database Settings Optimization Tips, SQL Documentation, SQL help, SQL Optimization, SQL Optimization Tips, SQL Query, SQL Server, SQL server tips, SQL technology, SQL Tips, SQL Tips and Tricks, SQL tips for programmer, sqlhelp, sqlhelp news, sqlhelp WebSite Review, Stored Procedures, T-SQL, Technology News | Leave a Comment »