<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.blackbaud.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Read Only Database Assistance</title><link>http://forums.blackbaud.com/forums/19.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP2 (Debug Build: 20611.960)</generator><item><title>Decoding marital status code, country code etc</title><link>http://forums.blackbaud.com/forums/thread/50337.aspx</link><pubDate>Fri, 20 Nov 2009 17:59:02 GMT</pubDate><guid isPermaLink="false">f90a95a0-00e2-4810-8af8-0bbdde08f853:50337</guid><dc:creator>Ajit Dhaliwal</dc:creator><slash:comments>1</slash:comments><comments>http://forums.blackbaud.com/forums/thread/50337.aspx</comments><wfw:commentRss>http://forums.blackbaud.com/forums/commentrss.aspx?SectionID=19&amp;PostID=50337</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;We are trying to extract data from our Raiser&amp;#39;s Edge system so that we can use it on our website. We have extracted the data in an Access document but we are having trouble decoding values such as the marital status code and country code among others. For example we have a marital status code of 3288 but we cannot find a table that will tell us what this code means in words. We are having the same issue with country codes and many others. Can any one tell me where I can find the table that will let us decode these?&lt;/p&gt;&lt;p&gt;Thanks a lot&lt;/p&gt;&lt;p&gt;AJ &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Getting Gift &amp; Donor Counts</title><link>http://forums.blackbaud.com/forums/thread/41224.aspx</link><pubDate>Mon, 04 May 2009 17:13:53 GMT</pubDate><guid isPermaLink="false">f90a95a0-00e2-4810-8af8-0bbdde08f853:41224</guid><dc:creator>Ken Kogler</dc:creator><slash:comments>2</slash:comments><comments>http://forums.blackbaud.com/forums/thread/41224.aspx</comments><wfw:commentRss>http://forums.blackbaud.com/forums/commentrss.aspx?SectionID=19&amp;PostID=41224</wfw:commentRss><description>
&lt;p&gt;I&amp;#39;m having a little trouble with a query in RODBA, and I&amp;#39;m hoping someone here can steer me in the right direction.&lt;/p&gt;

&lt;p&gt;I&amp;#39;m trying to pull total gift sum, gift count, and donor count per fiscal year for the last five fiscal years. (This is for only certain funds, only certain appeals, and only certain gift types). I&amp;#39;ve got the gift sum working down to the penny, but the donor and gift counts are off by about 1% or less, and I can&amp;#39;t figure out where it&amp;#39;s coming from. My hunch is that it has to do with split gifts or adjustments, but I can&amp;#39;t prove that yet.&lt;/p&gt;

&lt;p&gt;I&amp;#39;ve created a report in Raiser&amp;#39;s Edge, and I&amp;#39;m trying to write a query in RODBA that returns the same numbers so that I can create an external report for this data set. I&amp;#39;m trying to balance the numbers between the RE report and my external report, and that&amp;#39;s where I&amp;#39;m seeing the mis-matched data. &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;Here&amp;#39;s what I&amp;#39;ve done in RODBA so far :&lt;/p&gt;

&lt;p&gt;SELECT FY,&lt;br /&gt;COUNT(DISTINCT CONSTIT_ID) AS NUMDONORS,&lt;br /&gt;COUNT(DISTINCT GIFT_ID) AS NUMGIFTS,&lt;br /&gt;SUM(AMOUNT) AS SUMGIFTS&lt;br /&gt;&lt;br /&gt;FROM ( &lt;/p&gt;

&lt;p style="margin-left:40px;"&gt;SELECT CG.CONSTIT_ID AS CONSTIT_ID, CG.GIFT_ID AS GIFT_ID, GS.AMOUNT, DBO.CSL_GETFY(G.DTE) AS FY&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; FROM GIFTSPLIT AS GS &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INNER JOIN GIFT AS G ON GS.GIFTID&amp;nbsp; =&amp;nbsp; G.ID --needed for gift date&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INNER JOIN CONSTIT_GIFTS AS CG ON G.ID&amp;nbsp; =&amp;nbsp; CG.GIFT_ID --needed for gift &amp;amp; donor counts&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; INNER JOIN APPEAL AS A ON GS.APPEALID&amp;nbsp; =&amp;nbsp; A.ID --needed for appeals in WHERE clause&lt;br /&gt;WHERE G.DTE BETWEEN &amp;#39;7/1/2002 00:00:00.000&amp;#39; AND &amp;#39;6/30/2008 23:59:59.997&amp;#39; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND A.APPEALCATEGORYID IN (SELECT TABLEENTRIESID FROM TABLEENTRIES&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE CODETABLESID = 5042) --all direct appeals&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND GS.FUNDID NOT IN (SELECT ID FROM FUND&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHERE FUND_CATEGORY = 3537) --exclude &amp;quot;misdirect&amp;quot; fund types&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND G.TYPE IN (1,2,3,9,10,11,12,13,14,15,16,17,18,19,20,31) --only direct/cash gifts&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND CG.FLAGS IN (0,1,4) --credit Soft Credits to donor; Matching Gift to company&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; AND GS.AMOUNT &amp;gt; 0 --exclude zero dollar gifts&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;) AS giftsByFY&amp;nbsp; &lt;/p&gt;

&lt;p&gt;GROUP BY FY&lt;br /&gt;ORDER BY FY DESC&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;I should explain that the csl_fy() function is a homemade scalar-value function that takes any valid date and returns &amp;quot;FYxxxx&amp;quot; where &amp;quot;xxxx&amp;quot; is the corresponding year, e.g. &amp;quot;FY2009&amp;quot; or &amp;quot;FY2008&amp;quot;. That and the particular code table IDs will make it hard to copy/paste this into RODBA, but you&amp;#39;re welcome to try!&lt;br /&gt;&lt;/p&gt;

&lt;p&gt;Anyway, the output (in CSV) looks like this: &lt;/p&gt;&lt;p&gt;FY, NUMDONORS, NUMGIFTS, SUMGIFTS&lt;br /&gt;FY2008, 16235, 35874, 20546214&lt;br /&gt;FY2007, 18547, 42687, 26857963&lt;br /&gt;FY2006, 14563, 38541, 19874563&lt;br /&gt;FY2005, 12354, 32569, 18759632&lt;br /&gt;FY2004, 10001, 22587, 12345678 &lt;br /&gt;&lt;/p&gt;


&lt;p style="font-style:italic;"&gt;(My Development department would want me to point out that these are made-up numbers!)&lt;/p&gt;
&lt;p&gt;The donor and gifts counts in my RODBA results above, when compared to the RE report, are all LOW by between 50 and 200 each. However, the dollar amount (the &amp;quot;sumGifts&amp;quot; column) is &lt;span style="font-style:italic;"&gt;exactly &lt;/span&gt;right.&lt;/p&gt;
&lt;p&gt;As you can see from the first SELECT statement, I&amp;#39;m counting the DISTINCT constituent and gift IDs from the constit_gifts table, and my numbers are under by just a tiny bit. If I remove the DISTINCT clause, the numbers almost double, and that&amp;#39;s obviously incorrect, too. &lt;/p&gt;
&lt;p&gt;So here&amp;#39;s really the question: how should I go about counting up the donor and gift counts? Should I be looking somewhere besides dbo.constit_gifts? Is there a table I forgot to join that factors into this? Do I have an INNER join somewhere that should be an OUTER instead?&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve been looking at this long enough that my brain is Jello. Can someone out there lend a hand? Thanks! &lt;br /&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;br /&gt;&lt;/p&gt;
</description></item><item><title>Org Sort Name</title><link>http://forums.blackbaud.com/forums/thread/39688.aspx</link><pubDate>Mon, 23 Feb 2009 17:11:29 GMT</pubDate><guid isPermaLink="false">f90a95a0-00e2-4810-8af8-0bbdde08f853:39688</guid><dc:creator>Sandy Fiddis</dc:creator><slash:comments>5</slash:comments><comments>http://forums.blackbaud.com/forums/thread/39688.aspx</comments><wfw:commentRss>http://forums.blackbaud.com/forums/commentrss.aspx?SectionID=19&amp;PostID=39688</wfw:commentRss><description>I am having trouble sorting Org names. For Org names wher I know that I have put a slash (\) in the company name I can&amp;#39;t find the field that contains the name after the slash - this is what I want to sory by. Instead Org&amp;#39;s that begin with &amp;quot;The&amp;quot; appear in the T&amp;#39;s.</description></item><item><title>Queries and Temporary Views</title><link>http://forums.blackbaud.com/forums/thread/39907.aspx</link><pubDate>Tue, 03 Mar 2009 20:01:13 GMT</pubDate><guid isPermaLink="false">f90a95a0-00e2-4810-8af8-0bbdde08f853:39907</guid><dc:creator>Brian Dudley</dc:creator><slash:comments>0</slash:comments><comments>http://forums.blackbaud.com/forums/thread/39907.aspx</comments><wfw:commentRss>http://forums.blackbaud.com/forums/commentrss.aspx?SectionID=19&amp;PostID=39907</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m getting started on extracting data from Raiser&amp;#39;s Edge with RODBA. The approach is to take the queries defined through the front-end and examine the SQL.&lt;/p&gt;
&lt;p&gt;Some of the queries included views with names like&amp;nbsp;&lt;span&gt;tmp14565_286378713_1, that are also refereneced in the TempObjectLog table. These views are created and destroyed when the queries are open. The definition of these views is not available, from the database -- it seems like the source is encrypted or the proper permissions don&amp;#39;t exist.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;I&amp;#39;m looking for any information on the views. They do not seem to be needed for all queries. Are they certain constructions or approaches that will prevent them? Is there some way to resolve them to their underlying definition? Any pointers for working with them?&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;We are developing automated extraction scripts, so having a view generated by the front-end would be a problem.&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;&amp;nbsp;Thanks!&lt;/span&gt;&lt;/p&gt;
&lt;p&gt;&lt;span&gt;Brian Dudley&lt;/span&gt;&lt;span&gt;&lt;/p&gt;&lt;/span&gt;</description></item><item><title>Finding Student Homeroom</title><link>http://forums.blackbaud.com/forums/thread/30829.aspx</link><pubDate>Sat, 17 May 2008 23:36:31 GMT</pubDate><guid isPermaLink="false">f90a95a0-00e2-4810-8af8-0bbdde08f853:30829</guid><dc:creator>Candace Chesler</dc:creator><slash:comments>1</slash:comments><comments>http://forums.blackbaud.com/forums/thread/30829.aspx</comments><wfw:commentRss>http://forums.blackbaud.com/forums/commentrss.aspx?SectionID=19&amp;PostID=30829</wfw:commentRss><description>&lt;p&gt;I&amp;#39;m having trouble locating the link between the student record and their&amp;nbsp;Homeroom.&amp;nbsp; I can find each faculty homeroom with no problem.&amp;nbsp; I can see the field SBHomeroom - but because we are running Registrar&amp;#39;s Office - that&amp;#39;s null.&amp;nbsp; I definitely have homerooms assigned to all students - and need this link so that I can create my customized report card. &lt;/p&gt;
&lt;p&gt;Any suggestions would be greatly appreciated.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>