What is this operand (*= star-equals) in SQL server 2000?
In SQL 2000 this was used as a LEFT OUTER JOIN
=* is a RIGHT OUTER JOIN
Your query could be:
SELECT
*
FROM
tbl1 a LEFT OUTER JOIN tbl2 b ON a.person_name = b.person_name
WHERE
a.id = b.id
As stated here:
Specifies an outer join using the
nonstandard product-specific syntax
and the WHERE clause. The *= operator
is used to specify a left outer join
and the =* operator is used to specify
a right outer join.
SQL Server *= operator
Kill the deprecated syntax if you can, but:
*= (LEFT JOIN)
=* (RIGHT JOIN)
A strange situation regarding searching for '[' in varchar columns in sql server 2000
That character has special meaning in the pattern syntax and needs to be escaped either by defining an explicit escape character
where Col1 like '%/[%' ESCAPE '/'
or by using more square brackets
where Col1 like '%[[]%'
In addition to its role in escaping characters it is used in the syntax when defining ranges or sets of characters to match. e.g. LIKE '[0-9]%'
to find all values starting with a digit.
When the range or set is not closed off with a ]
it appears as though SQL Server just adds one on to the end. So c like '%[%'
is treated as c like '%[%]'
and finds all values containing the %
character.
Sql server convert date to 10 digit integer for comparison
You need SELECT DATEADD(second, 1240494225, '19700101')
to convert the number to a date and SELECT DATEDIFF(second, '19700101', @some_date)
to go the other way.
Related Topics
Oracle Analytic Functions - Resetting a Windowing Clause
Sql Server Reverse Order After Using Desc
How to Join Two Unrelated Tables in Sql
Why Is There a Scan on My Clustered Index
How to Write SQL in a Migration in Rails
Incorrect Syntax Near 'Go' in SQL Server Management Studio
Sql Server Get The Full Month Name from a Date
How to Use Wildcards in "In" MySQL Statement
Split Multiple Columns into Multiple Rows
How to Search New Line Char in Oracle Table
List All SQL Columns with Max Length and Greatest Length
Passing C# Datatable as a Parameter to Stored Procedure in Ms SQL Server 2008
Apex 5.0: Show a Progress Bar While Database Action Is Performed
Sql Sum by Year Report, Looking for an Elegant Solution
Replacing Text in a Blob Column
Insufficient Privileges When Creating Tables in Oracle SQL Developer