top of page

Data Quality Management

To return duplicate Account/Contact/Lead names:

select name, count(id)

from <Account/Contact/Lead>

group by name

having count(id) > 1


To return null records

select name

from <Account/Contact/Lead>

where name = null

or

order by name ASC NULLS FIRST

Recent Posts

See All
Upserting Records

This example uses upsert and an external ID field Line_Item_Id__c on the Asset object to maintain a one-to-one relationship between an...

 
 
 
Using Joins in SOQL

Semi-Joins with IN: Eg, query using objects - Account and Opportunity, SELECT Id, Name FROM Account WHERE Id IN ( SELECT AccountId FROM...

 
 
 

Comments


Post: Blog2_Post

©2020 by SalesforceDemystified. Proudly created with Wix.com

bottom of page