I've dug into window functions, which, I agree, are way cool. However, I can't seem to find a specification that doesn't "jump over" the active status when setting the date ranges for the inactive status. I've tried lag and lead, first_value and last_value. Instead of getting:
OrganizationID...
I have a table tracking, say, an organization's participation in a particular program. The relevant columns in this table might look something like:
OrganizationID Year Status
1 1999 Inactive
1 2000 Inactive
1 2001 Active
1 2002 Active
1...
XML Newbie question. The XML file being created is UTF-8 encoded. Does it make any difference if the data is stored in SQL Server as varchar or nvarchar?
Thanks for the quick response. The kicker here is the requirement that the number be rounded up to the nearest EVEN tenth.
So 24.48 should round up to 24.6 and ceiling(24.48 * 10) / 10 yields 24.5.
alex
I am a relative newbie with respect to SSIS, so I don't know if this is the proper forum for my question.
My file records have over a hundred fields, all different lengths.
The documentation gives the start and end columns for each field.
Record length is 972 characters. There are probably...
I'm having memory issues when trying to do some "divide and conquer" lookups.
I have a reference table - call it Person. Each record contains a unique ID, LastName, FirstName, BirthDate, Gender.
I have a second table - call it Respondent. Each record also has an ID, LastName, FirstName...
This product was installed on a stand-alone laptop for me, to be used as a BI learning and experimentation tool. Most of the services are set to log on as "Local System". I have no admin training or experience. So, I would just like to know if I can leave it as is, or, if not, what those of you...
Thank you for your quick response.
The code you suggested resulted in the error:
XQuery [#XmlSourceTable.XmlData.value()]: 'value()' requires a singleton (or empty sequence), found operand of type 'xdt:untypedAtomic *'
I got the same message after replacing...
This is my first exposure to XML.
I have a SQL Server 2005 Payments database with an XML column that looks like:
<entities>
<entity id="4191" name="Center for Success, Inc.">
<elements>
<element name="YTDDue">242041.85</element>
<element name="YTDPaid">112049.36</element>...
This is my first exposure to XML.
I have a SQL Server 2005 Payments database with an XML column that looks like:
<entities>
<entity id="4191" name="Center for Success, Inc.">
<elements>
<element name="YTDDue">242041.85</element>
<element name="YTDPaid">112049.36</element>...
As markros surmised, I did define consecutive activities as non-overlapping. (I shall be more explicit in future.) It is also true that a self-join results in a set of pairwise consecutive activities. Not precisely what is required. For example, when I added one more activity to student A's...
I have a group of students who, during the course of a school year, participate in one or more activities for varying lengths of time. The object of the game is, for each student, to report the number of consecutive activities in which he or she participated during the year. For example,
Year...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.