Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Unanswered

How to add specific values in my Query

Posted on by 25

Hi all,

I am using this Query in SSMS. I get a "Syntax Error" when I execute it.

My Query is listed below:

SELECT c.* FROM LogisticsPostalAddress a JOIN LogisticsLocation b ON a.LOCATION = b.PARENTLOCATION JOIN LOGISTICSELECTRONICADDRESS c ON b.recid = c.LOCATION WHERE a.RECID = PurchTable.DeliveryPostalAddress value; 

What should I enter in values? Where can I find it?

  • Martin Dráb Profile Picture
    Martin Dráb 230,214 Most Valuable Professional on at
    RE: How to add specific values in my Query

    Your statement is indeed syntactically wrong. What are you trying to achieve by "values"? If nothing, delete it. Also, you're trying to use PurchTable in a comparison, but you didn't select the table.

    I think you should start by explaining what you're trying to achieve and why you're writing T-SQL in the first place.

    Don't forget that if you access database directly, you must handle many things by yourself. For instance, you forgot to deal with DataAreaIds.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans