<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DB Extension joins in SQL in Community Forum</title>
    <link>https://help.powerschool.com/t5/Community-Forum/DB-Extension-joins-in-SQL/m-p/319312#M14508</link>
    <description>&lt;P&gt;thank you. I forgot to look in DEM to see the data structure since the DBExt management does not show that field.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 Apr 2022 13:29:18 GMT</pubDate>
    <dc:creator>ORCSD-DB</dc:creator>
    <dc:date>2022-04-08T13:29:18Z</dc:date>
    <item>
      <title>DB Extension joins in SQL</title>
      <link>https://help.powerschool.com/t5/Community-Forum/DB-Extension-joins-in-SQL/m-p/319101#M14503</link>
      <description>&lt;P&gt;Writing a SQL export for some staff data that needs a basic / default SchoolStaff extension table field. I am having difficulty with the join for that table with the schoolstaff table. There does not appear to be a DCID field of any type to join on (like with an advanced / many to one extension), but SQL won't recognize the field in the extension table so I assume I need a table join. I have tried the field reference multiple ways: schoolstaff.u_def_ext_schoolstaff.field, U_def_ext_schoolstaff.field, schoolstaff.field, none of those work ("unrecognized identifier" is the run error).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This should be simple but my brain fails me today. Thanks.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SELECT&lt;BR /&gt;teachers.last_name,&lt;BR /&gt;teachers.first_name,&lt;BR /&gt;teachers.teacherloginID,&lt;BR /&gt;teachers.email_addr,&lt;BR /&gt;teachers.title,&lt;BR /&gt;teachers.teachernumber,&lt;BR /&gt;teachers.homeschoolid,&lt;BR /&gt;schoolstaff.status,&lt;BR /&gt;teachers.staffstatus,&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;&lt;EM&gt;schoolstaff&lt;/EM&gt;.u_def_ext_schoolstaff.oraccounttype&amp;nbsp;&lt;/FONT&gt;&amp;nbsp;&lt;BR /&gt;FROM&lt;BR /&gt;teachers&lt;BR /&gt;INNER JOIN SCHOOLSTAFF on teachers.dcid=schoolstaff.users_dcid&lt;BR /&gt;&lt;FONT face="arial black,avant garde"&gt;INNER JOIN u_def_ext_schoolstaff on u_def_ext_schoolstaff.DCID=schoolstaff.dcid&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2022 19:26:57 GMT</pubDate>
      <guid>https://help.powerschool.com/t5/Community-Forum/DB-Extension-joins-in-SQL/m-p/319101#M14503</guid>
      <dc:creator>ORCSD-DB</dc:creator>
      <dc:date>2022-04-07T19:26:57Z</dc:date>
    </item>
    <item>
      <title>Re: DB Extension joins in SQL</title>
      <link>https://help.powerschool.com/t5/Community-Forum/DB-Extension-joins-in-SQL/m-p/319243#M14506</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On u_def_ext_schoolstaff&amp;nbsp; there should be a SCHOOLSTAFFDCID&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;INNER JOIN u_def_ext_schoolstaff on u_def_ext_schoolstaff.SCHOOLSTAFFDCID=schoolstaff.dcid&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the select statement to pull the oraccounttype it would be:&amp;nbsp;&amp;nbsp;&lt;SPAN&gt;u_def_ext_schoolstaff.oraccounttype&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sincerely,&lt;/P&gt;&lt;P&gt;-Matt Molloseau&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 11:06:22 GMT</pubDate>
      <guid>https://help.powerschool.com/t5/Community-Forum/DB-Extension-joins-in-SQL/m-p/319243#M14506</guid>
      <dc:creator>mmolloseau</dc:creator>
      <dc:date>2022-04-08T11:06:22Z</dc:date>
    </item>
    <item>
      <title>Re: DB Extension joins in SQL</title>
      <link>https://help.powerschool.com/t5/Community-Forum/DB-Extension-joins-in-SQL/m-p/319312#M14508</link>
      <description>&lt;P&gt;thank you. I forgot to look in DEM to see the data structure since the DBExt management does not show that field.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 Apr 2022 13:29:18 GMT</pubDate>
      <guid>https://help.powerschool.com/t5/Community-Forum/DB-Extension-joins-in-SQL/m-p/319312#M14508</guid>
      <dc:creator>ORCSD-DB</dc:creator>
      <dc:date>2022-04-08T13:29:18Z</dc:date>
    </item>
    <item>
      <title>Re: DB Extension joins in SQL</title>
      <link>https://help.powerschool.com/t5/Community-Forum/DB-Extension-joins-in-SQL/m-p/352187#M15506</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Thanks for the post&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":grinning_face_with_big_eyes:"&gt;😃&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Super helpful&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jun 2022 00:52:50 GMT</pubDate>
      <guid>https://help.powerschool.com/t5/Community-Forum/DB-Extension-joins-in-SQL/m-p/352187#M15506</guid>
      <dc:creator>areynoldsK12</dc:creator>
      <dc:date>2022-06-17T00:52:50Z</dc:date>
    </item>
  </channel>
</rss>

