Avatar of stevenhug
stevenhug
 asked on

Sql Server SELECT statement using '=*'

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?
Microsoft DevelopmentMicrosoft SQL Server

Avatar of undefined
Last Comment
Lee

8/22/2022 - Mon
SOLUTION
Kyle Abrahams

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
ASKER CERTIFIED SOLUTION
Paul Jackson

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Lee

Its a legacy join syntax for specifying outer joins.

http://msdn.microsoft.com/en-us/library/aa213228%28v=sql.80%29.aspx
Your help has saved me hundreds of hours of internet surfing.
fblack61