Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Sql Server SELECT statement using '=*'

Posted on 2012-03-13
3
Medium Priority
?
374 Views
Last Modified: 2012-03-13
I inherited some code which uses a dynamic Sql Server SELECT statement. The statement uses an Equal Sign, Asterisk (=*) as part of the WHERE clause like this:

SELECT
LocalChangeBoard_Sign_RFC_Parm.LcbBoardName,
RequestForChange_LCB_Signature.LcbApproveFlag AS LcbApproveFlag,
LocalChangeBoard_Sign_RFC_Parm.LcbBoardID
FROM RequestForChange_LCB_Signature ,LocalChangeBoard_Sign_RFC_Parm
WHERE RequestForChange_LCB_Signature.LcbApproveFlag = 1
AND (RequestForChange_LCB_Signature.LcbBoardID =* LocalChangeBoard_Sign_RFC_Parm.LcbBoardID )
AND (LocalChangeBoard_Sign_RFC_Parm.ActiveFlag = 'A')
AND (RequestForChange_LCB_Signature.RequestForChangeID = @RfcID)
ORDER BY LocalChangeBoard_Sign_RFC_Parm.LcbBoardName
 
I have no idea what this does. Can you help?
0
Comment
Question by:stevenhug
3 Comments
 
LVL 41

Assisted Solution

by:Kyle Abrahams
Kyle Abrahams earned 600 total points
ID: 37715326
http://stackoverflow.com/questions/983862/sql-server-operator

Apparently it's an implicit right join.

similiar to (+) in oracle.
0
 
LVL 29

Accepted Solution

by:
Paul Jackson earned 600 total points
ID: 37715329
=* is and old style way of doing a right outer join

http://www.gplivna.eu/papers/sql_join_types.htm#p6.6
0
 
LVL 25

Expert Comment

by:Lee Savidge
ID: 37715333
Its a legacy join syntax for specifying outer joins.

http://msdn.microsoft.com/en-us/library/aa213228%28v=sql.80%29.aspx
0

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently we ran in to an issue while running some SQL jobs where we were trying to process the cubes.  We got an error saying failure stating 'NT SERVICE\SQLSERVERAGENT does not have access to Analysis Services. So this is a way to automate that wit…
When trying to connect from SSMS v17.x to a SQL Server Integration Services 2016 instance or previous version, you get the error “Connecting to the Integration Services service on the computer failed with the following error: 'The specified service …
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how to use the SELECT statement in SQL to return specific rows and columns, with various degrees of sorting and limits in place.
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question