Salesforce Object Query Language (SOQL) Crash Course | The Complete Hands-on Tutorials | In 1 Hour

Sdílet
Vložit
  • čas přidán 9. 07. 2024
  • SOQL in Salesforce is used to retrieve data from the Salesforce database for specific information. This video covers everything you need to know as a beginner to SOQL from writing your first SOQL query to making you interview ready.
    Check out my other crash courses -
    Salesforce Integration Crash Course: • Salesforce Integration...
    LWC Crash Course: • Lightning Web Componen...
    JS Crash Course: • Modern JS Crash Course...
    SLDS Crash Course: • SLDS Crash Course - Be...
    SOQL Reference Guide - developer.salesforce.com/docs...
    0:00 - What is SOQL? Why do we use it?
    1:15 - Demystify a SOQL query
    1:54 - How to build or write a SOQL query?
    3:21 - Project's object schema overview
    3:55 - Auto Build SOQL using Dev console
    5:29 - Query standard object records using SOQL (Write your first SOQL query)
    6:25 - Querying custom object's records using SOQL
    7:49 - Filtering records using SOQL (Using WHERE clause in SOQL)
    9:00 - AND Operator in SOQL (using multiple filter conditions)
    10:34 - OR Operator in SOQL
    11:28 - Using AND and OR operator together in SOQL
    13:45 - Using multiple OR conditions in SOQL
    14:50 - Using IN operator in SOQL (combining multiple OR conditions together in SOQL)
    16:03 - Using LIKE operator in SOQL (Finding close match records with SOQL)
    19:58 - ORDER BY clause in SOQL (Sorting records using SOQL)
    22:20 - Comparison Operators in SOQL (Equals, greater than, not equals, less than, etc)
    25:50 - Date Literals in SOQL (working with date fields in SOQL)
    28:53 - Using LIMIT keyword in SOQL (Limiting the number of records in resultset in SOQL)
    29:55 - OFFSET keyword in SOQL
    31:07 - Understanding Relationship Queries in SOQL (No join queries)
    33:55 - Getting Relationship Name for SOQL
    36:02 - Inner SOQL Queries on Standard Objects, Fetching Child Records along with Parent in SOQL (Parent to Child Relationship SOQL queries) - Standard Objects
    38:09 - Inner SOQL Queries on Custom Objects, Fetching Child Records along with Parent in SOQL (Parent to Child Relationship SOQL queries)
    41:47 - Child to Parent Relationship Queries on Standard objects
    45:47 - Child to Parent Relationship Queries on Custom objects
    49:00 - Advanced SOQL - GROUP BY Clause Overview
    50:17 - Using Aggregate Function in SOQL (MAX, SUM, AVG, MIN, COUNT functions) - Advanced SOQL
    52:47 - Aggregate functions with GROUP BY clause in SOQL
    About:
    Manish is a highly experienced Software Developer who has worked in big tech companies like Google and Salesforce. Presently he is associated with Amazon as SDE 2.
    He is on his journey to make everyone interview ready for the big 5 FAANG (Facebook, Amazon, Apple, Netflix, Google) companies. Check out his channel for comprehensive tutorials on various technologies and mock google/amazon interviews.
    🎓 My courses on Udemy (discounted links below):
    📹 The Complete Salesforce Development Course - www.udemy.com/course/salesfor...
    📹 The Ultimate Hands-On Lightning Web Component - www.udemy.com/course/lightnin...
    📹 The Practical Guide to SFDX and Salesforce CLI - www.udemy.com/course/salesfor...
    Follow SFDCFacts Academy:
    Website: sfdcfacts.com
    Facebook: / sfdcfacts
    Instagram: / sfdcfacts
    LinkedIn: / sfdcfacts
    Connect with Manish:
    / manish-choudhary
    Twitter: / sfdcfacts
    Become a patron and support my work here: / sfdcfacts
    #SalesforceIntegration #Api #Webservices
    #soql #salesforcetutorial #soqltutorial #sql

Komentáře • 123

  • @SFDCFacts
    @SFDCFacts  Před 2 lety +9

    Do you find this video helpful? Here are my other crash courses you might be interested in:
    ⏭ Salesforce Integration Crash Course 🔗 czcams.com/video/2myol9hI28c/video.html
    ⏭ LWC Crash Course 🔗 czcams.com/video/bLyAsIeDZtw/video.html
    ⏭ Modern Javascript Crash Course 🔗 czcams.com/video/dY8li4JnoWQ/video.html
    ⏭ SLDS Crash Course 🔗 czcams.com/video/HDsuCGbtqyk/video.html
    ⏭ CSS Filter Crash Course 🔗 czcams.com/video/gx25xodfxY8/video.html

    • @kmpkidsdance2195
      @kmpkidsdance2195 Před 2 lety

      Can u plz explain lwc progress bar our own customization by using CSS or jquery

  • @demariotucker1176
    @demariotucker1176 Před 2 lety +2

    Wow! Definitely some of the best Salesforce content I have encountered yet! Kudos my friend and thanks so much for creating this!

  • @ollenelsonhall7393
    @ollenelsonhall7393 Před rokem

    Fantastic tutorial, keep up the great videos!

  • @chrystalfreeland2862
    @chrystalfreeland2862 Před rokem

    This is an awesome tutorial! Thank you, this helps out a lot.

  • @Halil7236
    @Halil7236 Před rokem

    Great content, thank you for your time and effort. Much appreciated.🙏

  • @kittyvonrosco8116
    @kittyvonrosco8116 Před rokem

    I'm not very technical and this was very well explained with good examples. Thank you!

  • @thfeiroz76
    @thfeiroz76 Před rokem

    I find it much useful in understanding the SOQL topic for beginners. Your presentation is very good with examples. Thank you.

  • @ravirajadhalikar9679
    @ravirajadhalikar9679 Před 2 lety

    Very useful, really liked it. Thank you :)

  • @guilhermesouza5366
    @guilhermesouza5366 Před rokem

    Awesome, find this course in a great time, it help me so much, thanks Manish!

  • @sanjaychari9666
    @sanjaychari9666 Před 2 lety +1

    You explain it so well.

  • @rajeshbawge9250
    @rajeshbawge9250 Před rokem

    Very nice explanation with proper understanding if anyone have little bit confusion go through this video you can get each and everything without boring. thank you

  • @RandomGuy-hv7tb
    @RandomGuy-hv7tb Před 2 lety +7

    You're one of the best instructor, your udemy course resolved all my doubts.

  • @gsairamsai266
    @gsairamsai266 Před 2 lety

    Thanks for the great tutorial on SOQL and its really worth of time...

  • @siddharthanks6843
    @siddharthanks6843 Před rokem

    this helped me brush up. Thanks a lot.

  • @saikumargummalla1709
    @saikumargummalla1709 Před 2 lety

    THANK YOU SO MUCH MANISH YOUR SOQL CRASH COURSE HELPS ME ALOTTT

  • @ADITYASINGH-ih2hz
    @ADITYASINGH-ih2hz Před 2 lety +4

    Great crash course as always.
    Thanks, Manish sir .
    In the future, i would really like to see a crash course on Apex + SOQL.
    Please think about it.

  • @saniyahussain2159
    @saniyahussain2159 Před 4 měsíci

    What a video!
    I belong to a non tech background and the way you are breaking the thing into a simplified manner is just simply boosting my confidence and increasing my interest!!

  • @sivareddycrm
    @sivareddycrm Před 2 lety

    Thanks Manish for wonderful session. In future, I want to learn on list, Map, Set, multiple Maps,obects which are useful while writing apex.

  • @rupeshjha1929
    @rupeshjha1929 Před 2 lety +5

    Thanks @ Manish for the wonderful crash-course. This 60 min video is a go to refresher for SOQL anytime for anyone

    • @SFDCFacts
      @SFDCFacts  Před 2 lety +1

      Thanks Rupesh, glad you enjoyed it!

  • @swayanpravasahoo8735
    @swayanpravasahoo8735 Před 2 lety

    wonderful Manish....very helpful

  • @irmak3885
    @irmak3885 Před 2 lety

    Thank you so much. It is an amazing informative video. I love it. Please share more videos.

  • @antrasharma3580
    @antrasharma3580 Před 2 lety

    Thank you so much, its really helpful.

  • @lifeinatl-vlog8001
    @lifeinatl-vlog8001 Před rokem

    the second half is a must watch!

  • @birendrachand5286
    @birendrachand5286 Před 11 měsíci

    Great Video !

  • @amuthak9513
    @amuthak9513 Před 11 měsíci

    you have explained very clear about the Concepts.Its very useful as i am beginner. Thanks for your content.

  • @gauravbhardwaj2588
    @gauravbhardwaj2588 Před 2 lety +1

    Mast bhai. Thanks a lot. Please, make video on regular basis.

  • @rinkibiswas9760
    @rinkibiswas9760 Před rokem

    awesome video sir. being from non IT background I understood all very nicely

  • @fit.shubhh
    @fit.shubhh Před 2 lety +1

    Thanks a lot Manish Sir to provide such a great content🤩...

  • @anishroy8805
    @anishroy8805 Před 2 měsíci

    Great Explanation Manish bhai 😍

  • @sathishgopi3217
    @sathishgopi3217 Před 7 měsíci

    Such a Great Broh !!!

  • @ashishsahu1310
    @ashishsahu1310 Před 2 lety

    Good content!!

  • @Vishal-cs8bp
    @Vishal-cs8bp Před 11 měsíci

    Excellent Explanation

  • @zt3258
    @zt3258 Před 7 měsíci

    Thank you!

  • @anusha81
    @anusha81 Před 2 lety

    Thanks a lot for this video 👍

  • @muralikrishna4243
    @muralikrishna4243 Před rokem

    Ya really use full course. And the way you explained is also very good tq for providing with such type of videos

  • @arnabsaha9483
    @arnabsaha9483 Před 2 lety +5

    Keep Updating, Salesforce Development coarse please ... & Add more Coding Challenges in Apex

  • @ranvirk9039
    @ranvirk9039 Před 2 lety

    Awsome video...thank you so much

  • @karthikdv158
    @karthikdv158 Před 2 lety

    very much useful, Thank you so much

  • @vikassinghal7496
    @vikassinghal7496 Před 2 lety

    Love you man

  • @damupawan2518
    @damupawan2518 Před rokem

    Thanks bro... really very helpful 🙂

  • @husnuozaltun3477
    @husnuozaltun3477 Před 5 měsíci

    Thank you brother.

  • @sravankumares7138
    @sravankumares7138 Před 2 lety

    Awesome vedio thanks 😊

  • @yash25dec
    @yash25dec Před 2 lety

    I am admire of your work. There is only one correct Account object isn't the parent of contact/opportunity. there is a lookup relationship( with delete item checkbox). I too got to know it while checking something else.

  • @filmydetective3116
    @filmydetective3116 Před rokem

    Thank you..

  • @gauravpatil4930
    @gauravpatil4930 Před 2 lety

    Thank you so much. It is an amazing informative video....Very Helpful

  • @BoomcoreIsLive
    @BoomcoreIsLive Před 2 lety

    Thanks for the great tutorial on SOQL

  • @kaishgupta4376
    @kaishgupta4376 Před 2 lety

    How to fetch data when you have alphanumeric character by using like operator

  • @suhaskshirsagar5202
    @suhaskshirsagar5202 Před 2 lety

    Nice explanation..👌👌

  • @manishamaradkar6023
    @manishamaradkar6023 Před rokem

    I cleared all my doubt ..thanks for the video...if possible make video on trigger in salesforce.

  • @madebyyasemin
    @madebyyasemin Před 2 lety

    hi i really enjoy while learning with your videos about Salesforce. Can you pls make next video about triggers

  • @learnwithtrailhead2856

    Good one Manish, Keep posting such type of crash courses.
    I am looking for more interview series :P

    • @SFDCFacts
      @SFDCFacts  Před 2 lety +1

      This will lead you to clearing an interview ;)

  • @meatswitch9572
    @meatswitch9572 Před 2 lety

    This is the top recommended video on this subject, and I'm eager to learn, but I have a really bad auditory processing disorder and I can't understand most accents without asking for clarification. Can you please consider putting closed captions on videos like this?

  • @satoboshi11
    @satoboshi11 Před 2 lety

    Thanks for the video! I have a question, I was running a parent-child query and get 50 records as results but when I run a report with the same filters and objects I get 75 records.
    Have this ever happened to you?

  • @riyazpasha6264
    @riyazpasha6264 Před 2 lety

    nice explanation bro

  • @selsiaebanezar1308
    @selsiaebanezar1308 Před 2 lety

    After querying I need the particular data in Excel what to do for that

  • @suneelkumar-kn4ds
    @suneelkumar-kn4ds Před 2 lety +1

    Hi, is it possible to write a comparision logic in where clause like if I want to get records WHERE ECM_PARTY_ID =ECM_ADDRESS_ROW_ID is it possible through SOQL query

  • @chinomsojohnson8746
    @chinomsojohnson8746 Před 7 měsíci

    I had an interview question where I was asked to write a soql query on the account field to retrieve all related contacts and I wrote this Select Id, Name (Select Id, Name from Contacts) from Account. The interviewer said it was wrong and we will need to loop through each account record to get the related contacts. Is there a better way to do this. I would love to know incase I see it again. I have gone online but I keep on seeing the same thing I did at the interview

  • @satyaprasad9371
    @satyaprasad9371 Před 2 lety

    Super explanation

  • @user-qe2vi4ye9o
    @user-qe2vi4ye9o Před 2 měsíci

    nice session

  • @divyasreemareedu7105
    @divyasreemareedu7105 Před 6 měsíci

    thanks Manish , liked the course. Could you please make a deeper course on relationship soql queries in combination with Apex

  • @shamisyed9285
    @shamisyed9285 Před 2 lety

    How to download the columns names and data type in sales force

  • @omkarkulkarni9539
    @omkarkulkarni9539 Před rokem

    Hello Manish,
    Your Videos was awsome for better understanding related the salesforce core concept. but there one humble request to you, please create a crash course lecture video on Visualforce and Asynchrnous process.

  • @anmoldhanvijay2138
    @anmoldhanvijay2138 Před rokem

    What if we want data from a particular field who's having a self relationship. For now I'm able to get I'd only. Any tips for this ,

  • @Tanya-vr2um
    @Tanya-vr2um Před 2 lety

    the one who created his custom object how did he create the table which is the name and the data in city__s how did he create

  • @maruthisainath6080
    @maruthisainath6080 Před 2 lety

    Awesome video sir.
    If possible please do video on apex Classes and triggers.

  • @Sai-Krishna786
    @Sai-Krishna786 Před rokem

    Useful

  • @vaibhavbhojne1446
    @vaibhavbhojne1446 Před rokem

    How to write soql query that will retrieve account having 2 contact and 2 opportunity

  • @vinitham8781
    @vinitham8781 Před 2 lety

    Thank you so much for this sir, Can u do a video of FFLIB framework

  • @ramesha5243
    @ramesha5243 Před rokem

    Thank you very much, Excellent understanding very clearly, and I think you missed having aquery

  • @pratikshapatil6792
    @pratikshapatil6792 Před rokem

    Thank u

  • @debarunsengupta3555
    @debarunsengupta3555 Před 2 lety +6

    I think it would be better if you can include having clause and polymorphic soql as well

    • @rajnishjha5817
      @rajnishjha5817 Před 2 lety

      Yes, I thought there is no having clause as such in SOQL ...oh boy!!😆😅

  • @MD-fh4lb
    @MD-fh4lb Před 2 lety

    Good Course

  • @naveenkumar-ib4lm
    @naveenkumar-ib4lm Před 2 lety +1

    usefull information

  • @parvathymc138
    @parvathymc138 Před 2 lety +4

    Hi, Thanks so much for detailed videos, could you please publish a video on end to end project explanation which covers all aspects like LWC, Apex programming wiht Triggers, Integration etc.

  • @sailakshmankanukollu5328
    @sailakshmankanukollu5328 Před 2 lety +1

    How to get unique records in single query like we use distinct in Oracle

  • @SanamKarki
    @SanamKarki Před 2 lety +3

    Thank you so much for this. I would definitely love to see a course on APEX. Thanks.

  • @Abhishek-yb9kb
    @Abhishek-yb9kb Před 2 lety

    Thanks Manish, one doubt - can i fetch Account name from contact, maybe using inner qurey or in any other way

  • @a.k8058
    @a.k8058 Před 5 měsíci

    What is difference between SOQL and SQL both are same or different?

  • @ramireddygarivinaykumarred7261

    Fantastic explanation Manish bro

  • @sandhyasrimahesh9918
    @sandhyasrimahesh9918 Před 2 lety +1

    Super

  • @vinayhans161
    @vinayhans161 Před 4 měsíci

    Hi, Just completed this course and it is very helpful... having 1 question..while fetching data from parent to child soql query, the child data is in json format Because of multiple childs ...can we extract them in relational format??

  • @MD-fh4lb
    @MD-fh4lb Před 2 lety

    Hi Manish, can you write about how to know which profile have access to which objects ?

  • @tejachowdhary1159
    @tejachowdhary1159 Před 2 lety

    hello Brother Excellent explanation. can you please make a crash course on TRIGGERS.

  • @saichakravarthi510
    @saichakravarthi510 Před 2 lety +1

    superb bro

  • @SeekingSmiles236
    @SeekingSmiles236 Před rokem

    Hello Sir, Please help me understand this::::: Select AccountId,max(Amount) from Opportunity where AccountId = '0015i00000NCb9lAAD'
    group by AccountID
    I should get the result as 915000 but getting 91500 . Can you explain me why this is happening?

  • @dsn910
    @dsn910 Před 2 lety

    How to install this tool....

  • @rajeshbawge9250
    @rajeshbawge9250 Před rokem

    Pls you have to make videos on trigger if its already let me know.... Bcz your explanation is very useful
    thank you
    advance

  • @chandrabasetti4893
    @chandrabasetti4893 Před rokem

    How can we track that a user has used Salesforce inspector?

  • @srinivaschandika6153
    @srinivaschandika6153 Před rokem

    Very good Explanation, how to get distinct records using soql. kindly help me

  • @sanjaychari9666
    @sanjaychari9666 Před 2 lety +1

    crash course on
    1. Triggers
    2. Apex
    3.Aura Component
    4. Asynchronous-batch Apex

    • @SFDCFacts
      @SFDCFacts  Před 2 lety +2

      Thanks for the suggestions Sanjay!

  • @gauravbhardwaj2588
    @gauravbhardwaj2588 Před 2 lety +2

    Bhai waiting. I have purchased your all course on udemy

  • @KumarNaveennaveen
    @KumarNaveennaveen Před 2 lety

    If have created a report and report type contains Accounts, Custom object lets say B.
    I am filtering in report using Account record type and record type from B.
    COULD YOU PLEASE TELL ME HOW CAN WE WRITE A SOQL QUERY FOR THIS?? PLEASE

  • @ramesha5243
    @ramesha5243 Před rokem

    Could please make all complete course videos series for admin, Development , LWC, Integration for us please

  • @maheshb5703
    @maheshb5703 Před 2 lety

    Great job brother. Help me to write this querry. SOQL for {list of accounts which should not have contacts}

    • @moneybee5228
      @moneybee5228 Před 2 lety +1

      Select phone, name from account where phone=null or select name, account.name from contact where account.name=null

  • @user-js5ml8id9n
    @user-js5ml8id9n Před 2 měsíci

    18:38 % is percentile, not ampersand (&).

  • @rohitpathak3192
    @rohitpathak3192 Před 2 lety

    How to retrieve ALL CONTACTS FROM ALL ACCOUNTS IN A SINGLE SOQL ?

  • @tommykindle9774
    @tommykindle9774 Před rokem

    Link to your udemy course?

  • @arthisu8270
    @arthisu8270 Před 2 lety

    I am from a non-IT field.Initally i didn`t understand anything in salesforce but now I am learning from your videos,its easy and faster than reading Salesforce help docs.

    • @SFDCFacts
      @SFDCFacts  Před 2 lety

      Wow!! This means a lot to me. Best of luck Arthi!!

  • @naveenkumar-ib4lm
    @naveenkumar-ib4lm Před 2 lety +2

    I need test classes for apex classes

    • @SFDCFacts
      @SFDCFacts  Před 2 lety

      Nice, write some then :) Just kidding buddy!!

  • @ADITYA-ui6mp
    @ADITYA-ui6mp Před rokem

    🤝👌