Different Types of Joins in SQL with Syntax and their uses.
This Pictures Explains it all.
This Pictures Explains it all.
This Blog is Focused on the most recurrent problem while developing ASP .net Application and SQL server as Data base backend with lots of T-SQl. Its all real world problems and their solution faced at the time of Development.
PATINDEX ( '%pattern%' , expression )
Right:
RIGHT ( character_expression , integer_expression )
[]Wild Card for Patindex:
In case when we need to Update a table from another table or select query we can use
this syntax.
For update from another Table.
Syntax:
UPDATE
Table
SET
Table.col1 = other_table.col1,
Table.col2 = other_table.col2
FROM
Table
INNER JOIN
other_table
ON
Table.id = other_table.id
Update From Select Query.
example:
update
tbl_JournalMaster
set
Remarks=dbj.pname
from
tbl_JournalMaster
inner join
(
select
distinct DJ.vno,
(select
top(1) pname
from
DBASEJournal
where
vno=dj.vno) as pname
from
DBASEJournal DJ
) dbj
on
dbj.VNO=tbl_JournalMaster.JVNo ;
Feel Free To Contact For any Comments
Gautam Kumar Gupta
Go To Home Page