Quantcast
Channel: Active questions tagged ampscript - Salesforce Stack Exchange
Viewing all articles
Browse latest Browse all 359

Can we convert a SQL query to AMPscript?

$
0
0

I have this big query to convert in AMPscript. Is it even possible. Any suggestion or guidance would be helpful.

 SELECT count(*)FROM properties_viewINNER JOIN markets on properties_view.market_id = markets.idWHERE(properties_view.market_id IS NOT NULL AND properties_view.address_1 IS NOT NULLAND properties_view.city IS NOT NULLAND properties_view.state IS NOT NULLAND properties_view.zipcode IS NOT NULLAND properties_view.lat IS NOT NULLAND properties_view.lng IS NOT NULLAND properties_view.property_status = ‘Active’AND properties_view.syndication_status != ‘Never’AND (properties_view.syndication_status = ‘Always’ OR (properties_view.syndication_status = ‘Auto’ AND properties_view.allow_syndication = true))AND properties_view.unit_status IN (‘Notice Unrented’, ‘Vacant Unrented Not Ready’, ‘Vacant Unrented Ready’)AND (properties_view.available - coalesce(properties_view.syndication_days, markets.syndication_days)) <= now())

Viewing all articles
Browse latest Browse all 359

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>