Eswar Koneti's Blog

All about Configmgr and its connected objects…….

  • About Author
      View eswar koneti's LinkedIn profile
  • Enter your email address to subscribe to this blog and receive notifications of new posts by email.

    Join 99 other subscribers

  • Awards


  • FaceBook Updates

  • Catagories

  • Meta

  • Copyright!

    All the blog posts in this website are owned by Eswar Koneti and may not be reused in any mode without prior approval of Eswar Koneti. You may quote one paragraph from the blog posts if you link to the original blog post.
    Happy Reading!

Writing SCCM Reports using SQL Joins

Posted by Eswar Koneti on August 30th, 2012

Joins ? In Simple terms they are used to Join more than 2 tables and give you required information.

while working with SCCM reports,we will use SQL Joins in most of the reports to get customized information (not part of default reports).

These joins  are used to query data from two or more tables, based on a relationship between certain columns in these tables. It creates a set that can be saved as a table or used as is.

A JOIN is a means for combining fields from two tables by using values common to each. ANSI standard SQL specifies four types of JOIN: INNER, OUTER, LEFT, and RIGHT.

Here is nice Pictorial representation of using SQL Joins.You can keep it as reference when creating reports/collections on the need basis.

INNER JOIN : This Join used to get result when there is at least one match in both tables.

LEFT JOIN :This Join used to get all rows from the left table even if there are no matches in the right table.

RIGHT JOIN : This Join used to get all the rows from the right table, even if there are no matches in the left table

Full Join : This Join used to get all rows when there is a match in one of the tables.

 

SQL Joins thumb Writing SCCM Reports using SQL Joins

2 Responses to “Writing SCCM Reports using SQL Joins”

  1. Nisar Says:

    Hi,
    I am looking for SCCM2012 query for patch status from specific deployment and specific collection. I need the following details in my patch report with against each machine name
    Total patch count in deployment
    Total patch count installed
    Total patch count missing
    Total patch count not required

  2. Eswar Koneti Says:

    Did you check the default reports ? You should get something to proceed further.I can get back to you on this later once am done with this.

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>