<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Data Analysts, Crystal Reports and Sql Reporting Services Consultants &#187; Transact-SQL</title>
	<atom:link href="http://datamart.org/category/transact-sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://datamart.org</link>
	<description>Feel free to ask tough questions relating to Crystal Reports / SQL Reporting Services / SQL  and get answers from Collective intelligence</description>
	<lastBuildDate>Wed, 08 Feb 2012 09:01:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Database Programmer</title>
		<link>http://datamart.org/2010/04/19/database-programmer/</link>
		<comments>http://datamart.org/2010/04/19/database-programmer/#comments</comments>
		<pubDate>Mon, 19 Apr 2010 17:33:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Business Intelligence]]></category>
		<category><![CDATA[Data Analyst, SQL, BI Jobs]]></category>
		<category><![CDATA[Transact-SQL]]></category>

		<guid isPermaLink="false">http://datamart.org/?p=791</guid>
		<description><![CDATA[(one year contract) The Institute for Clinical Evaluative Sciences (ICES) is seeking a Database Programmer to design and develop reports using inTool, their web-based reporting tool. The successful candidate will be capable of understanding and working with an existing SQL server database that contains data spanning a variety of health topics. The position reports to [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://datamart.org/wp-content/uploads/2010/04/sqlprogrammer.jpg"><img src="http://datamart.org/wp-content/uploads/2010/04/sqlprogrammer-300x225.jpg" alt="" title="sqlprogrammer" width="300" height="225" class="alignnone size-medium wp-image-792" /></a>(one year contract)</p>
<p>The Institute for Clinical Evaluative Sciences (ICES) is seeking a Database Programmer to design and develop reports using inTool, their web-based reporting tool. The successful candidate will be capable of understanding and working with an existing SQL server database that contains data spanning a variety of health topics.</p>
<p>The position reports to the Director, Information Management, and involves direct collaboration with ICES Researchers, Epidemiologists, Programmers and Biostatisticians in the Monitoring and Reporting Department. </p>
<p>Qualifications/Skill Requirements:</p>
<p>Degree in Computer Science or related field<br />
Minimum of 3 years relational database experience having strong SQL/TSQL programming skills<br />
Experience with reporting tools, preferably MS SQL Server and related technology such as Reporting Services and Integration Services<br />
Data warehouse concepts and practical, hands-on data transformation and manipulation experience<br />
Excellent analytical, communication, documentation and organization skills<br />
Able to work well independently but also team-oriented and comfortable collaborating with fellow Epidemiologists and Developers<br />
Other/Nice to Have:</p>
<p>Experience in the health care sector and/or experience working with health information<br />
Experience and/or familiarity with Crystal Reports, ASP.NET, VB.NET, and MS Office<br />
Applicants should submit their résumé by Friday, April 30th, 2010, to the attention of:</p>
<p>Human Resources Department</p>
<p>E-mail: resumes@ices.on.ca</p>
<p>Please quote DP-01 on all correspondence.</p>
<p>We thank all applicants for their interest; however, only those invited for an interview will be contacted.</p>
<p>Source: <a href="http://www.workopolis.com/EN/job/11389722">Workopolis.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://datamart.org/2010/04/19/database-programmer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sample: Specific Job Skills for data analyst</title>
		<link>http://datamart.org/2010/03/22/sample-specific-job-skills-for-data-analyst/</link>
		<comments>http://datamart.org/2010/03/22/sample-specific-job-skills-for-data-analyst/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 20:59:23 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Crystal Reports]]></category>
		<category><![CDATA[data analyses]]></category>
		<category><![CDATA[E Reporting Services by EReporting.net]]></category>
		<category><![CDATA[MS Access]]></category>
		<category><![CDATA[Sql Reporting Services]]></category>
		<category><![CDATA[Transact-SQL]]></category>

		<guid isPermaLink="false">http://datamart.org/?p=768</guid>
		<description><![CDATA[Database professionals like sql developer, reporting analysts in Crystal Reports, Sql Reporting services and sql programmers can enter into new promising field of healthcare data analysts by following the job descriptions in this field. Following is the sample job description from &#8211; The Washington State Hospital Association (WSHA) published on Jan 2010. Data profeDemonstrated experience [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://datamart.org/wp-content/uploads/2010/03/data-analyst.jpg"><img src="http://datamart.org/wp-content/uploads/2010/03/data-analyst-300x300.jpg" alt="" title="data-analyst" width="300" height="300" class="alignnone size-medium wp-image-769" /></a>Database  professionals like sql developer, reporting analysts in Crystal Reports, Sql Reporting services and sql programmers can enter into new promising field of healthcare data analysts by following the job descriptions in this field. Following is the sample job description from &#8211; The Washington State Hospital Association (WSHA) published on Jan 2010.</p>
<p> Data profeDemonstrated experience and expertise with SAS programming language required.<br />
Demonstrated experience using advanced Excel features and techniques required. Demonstrated experience in analysis and presentation of data required. Experience working with a variety of information systems and data files, including large and complex files: analyzing file structure, using and creating file layouts, transforming raw data into finished products. Familiarity with various types and sources of health care information, including financial and patient-level data files.</p>
<p>Familiarity with Washington State Comprehensive Hospital Abstract Reporting System (CHARS) desirable.<br />
Experience with database application development (e.g., Microsoft Access) desirable. Strong communication skills, both written and spoken. Comfortable working independently, with experience working in a team environment. Skills in establishing and maintaining effective working relationships with WSHA members and staff. Physical ability to use computer hardware and software required. Ability to read, write, speak and understand English required. Educational, Experience and/or Licensing Requirements</p>
<p>Bachelor’s degree or higher in relevant field.<br />
Undergraduate or graduate coursework in statistics, data analysis, research methods.<br />
2-5 years experience in data analysis, decision support, including demonstrated proficiency with analytical software.</p>
]]></content:encoded>
			<wfw:commentRss>http://datamart.org/2010/03/22/sample-specific-job-skills-for-data-analyst/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Data related job titles</title>
		<link>http://datamart.org/2010/03/22/data-related-job-titles/</link>
		<comments>http://datamart.org/2010/03/22/data-related-job-titles/#comments</comments>
		<pubDate>Mon, 22 Mar 2010 19:34:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[E Reporting Services by EReporting.net]]></category>
		<category><![CDATA[Sql Reporting Services]]></category>
		<category><![CDATA[SQL, BI, IT news]]></category>
		<category><![CDATA[Top Searches on data Mart]]></category>
		<category><![CDATA[Transact-SQL]]></category>

		<guid isPermaLink="false">http://datamart.org/?p=765</guid>
		<description><![CDATA[This post about trend in new job titles we searched in data analyses, reporting / BI. We are writing these because job seekers can search job by using these titles on major job websites and will find lot of job openings. Data / Content Migration Assistant, Data / Content Migration Assistant data analyst data analyst [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://datamart.org/wp-content/uploads/2010/03/jobtitles.png"><img src="http://datamart.org/wp-content/uploads/2010/03/jobtitles-300x196.png" alt="" title="jobtitles" width="300" height="196" class="alignnone size-medium wp-image-766" /></a>This post about trend in new job titles we searched in data analyses, reporting / BI. We are writing these because job seekers can search job by using these titles on major job websites and will find lot of job openings.</p>
<p>Data / Content Migration Assistant,<br />
Data / Content Migration Assistant<br />
data analyst<br />
data analyst<br />
data analyst<br />
ENVIRONMENTAL DATA ANALYST<br />
data analyst<br />
data analyst<br />
data analyst<br />
data analyst<br />
data analyst<br />
data analyst<br />
Analyst, Systems and Data<br />
Marketing data analyst<br />
Analyst<br />
Data Administrator Competition No.<br />
Health Information Analyst<br />
Analyst, Research and Data Services<br />
IT Data Steward <br />
584, Corporate Reporting Analyst<br />
Research Analyst<br />
Data Modeller<br />
Decision Support Analyst,<br />
Junior Research Analyst<br />
Data / Content Migration Assistant, MSR/ECUSTOMS<br />
Reporting Analyst<br />
DATA CONSERSION SPECIALISTS<br />
Reporting production analyst</p>
]]></content:encoded>
			<wfw:commentRss>http://datamart.org/2010/03/22/data-related-job-titles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing a Traditional information system to adapt new technologies for effective decision making</title>
		<link>http://datamart.org/2010/03/04/changing-a-traditional-information-system-to-adapt-new-technologies-for-effective-decision-making/</link>
		<comments>http://datamart.org/2010/03/04/changing-a-traditional-information-system-to-adapt-new-technologies-for-effective-decision-making/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 14:57:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Business Intelligence]]></category>
		<category><![CDATA[Crystal Reports]]></category>
		<category><![CDATA[Crystal Reports functions]]></category>
		<category><![CDATA[data analyses]]></category>
		<category><![CDATA[MS Access]]></category>
		<category><![CDATA[MS Access 2007]]></category>
		<category><![CDATA[Transact-SQL]]></category>

		<guid isPermaLink="false">http://datamart.org/?p=613</guid>
		<description><![CDATA[This is about an experience of an anonymous writer of this post describing his/her hands on experience in upgrading company’s information to adapt to new technologies for effective decision making and resultantly growth of the company. This post also reveals that how the hands on experience sets the foundations of understanding new technologies, needs and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://datamart.org/wp-content/uploads/2010/03/trdtnal-compute1.jpg"><img src="http://datamart.org/wp-content/uploads/2010/03/trdtnal-compute1.jpg" alt="" title="trdtnal-compute" width="140" height="106" class="alignnone size-full wp-image-637" /></a>This is about an experience of an anonymous writer of this post  describing his/her hands on experience in upgrading company’s information to adapt to new technologies for effective decision making and  resultantly growth of the company. This post also reveals that how the hands on experience sets the foundations of understanding new technologies, needs and seamless coordination between management and technology.</p>
<p>When I joined the company in 1995 most of the accounting data was recorded in Manual registers ledgers / spreadsheets consequently extensive time was spent on preparing reports and making timely decisions. </p>
<p>In 1996, I initiated utilization of MS Access and led the logical data modeling of the Altech, and gradual implementation of RDMB format in MS Access. The data in MS Excel flat files was imported into MS Access and transformed into RDMS format. Created tables to store Master data about all accounts including customers, suppliers, employees and entity related to Altech business. Designed tables to record financial and material transactions and coordinated with Accounts departments to create general ledger and related reports in Crystal reports 8-9. </p>
<p>In 2000 this data base was upgraded to SQL Server 7 utilizing MS Access as front end using Access data project. All the data entry forms and reports were upgraded accordingly. From 2000 to 2002 all the data was centralized in a SQL Server database on server. This facilitates the in-depth business analyses through Crystal reports 9-10 and fast and correct data entry using MS Access Forms. </p>
<p>During the approximately 10 year of my first job, I learned and mastered several concepts of data management such as changing dimensions, notably how to keep track of historical data. For example every month company’s 300 production employees were rotated into different departments and issue was to produce employee historical reports. Database was extended to keep the monthly production activities of employees. New reports were developed in Crystal Reports in Crystal Reports 10 for example complete individual employee performance for any time span, departmental performance. Labor cost by production activities. </p>
<p>Automated the posting of inventory data to financial ledgers for example as soon as new raw material received it was stored in inventory table and updates vendor accounts and material accounts. </p>
<p>My first job set the foundation of database technologies, logical data modeling techniques like entity relationship diagram and translating these into physical model. Understanding of transact SQL Statements, Data input strategies and mastering Crystal reports software for preparing meaningful information, data cleansing/scrubbing and when to use to text files for data and spread sheets.</p>
]]></content:encoded>
			<wfw:commentRss>http://datamart.org/2010/03/04/changing-a-traditional-information-system-to-adapt-new-technologies-for-effective-decision-making/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Comparing SOUNDEX and DIFFERENCE</title>
		<link>http://datamart.org/2010/03/02/comparing-soundex-and-difference/</link>
		<comments>http://datamart.org/2010/03/02/comparing-soundex-and-difference/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 01:00:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Transact-SQL]]></category>

		<guid isPermaLink="false">http://datamart.org/?p=609</guid>
		<description><![CDATA[The SOUNDEX function converts a character string to a four-digit code for use in a comparison. Vowels are ignored in the comparison. Nonalphabetic characters are used to terminate the comparison. This function always returns some value. This example displays the results of the SOUNDEX function for the similar character strings of &#8220;chappel&#8221; and &#8220;chapelle&#8221;. When [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://datamart.org/wp-content/uploads/2010/03/soundex11.gif"><img src="http://datamart.org/wp-content/uploads/2010/03/soundex11.gif" alt="" title="soundex1" width="242" height="162" class="alignnone size-full wp-image-635" /></a>The SOUNDEX function converts a character string to a four-digit code for use in a comparison. Vowels are ignored in the comparison. Nonalphabetic characters are used to terminate the comparison. This function always returns some value.<br />
This example displays the results of the SOUNDEX function for the similar character strings of &#8220;chappel&#8221; and &#8220;chapelle&#8221;. When character strings are similar, both strings have the same SOUNDEX codes.<br />
select SOUNDEX (&#8216;chappel&#8217;), SOUNDEX (&#8216;chapelle&#8217;)<br />
Here is the result set:<br />
&#8212;&#8211;          &#8212;&#8211;<br />
C140           c140<br />
(1 row(s) affected)<br />
The DIFFERENCE function compares the SOUNDEX values of two strings and evaluates the similarity between them, returning a value from 0 through 4, where 4 is the best match. This example returns a DIFFERENCE of 4 for the first SELECT because &#8220;chappel&#8221; and &#8220;chappelle&#8221; differ by only 2 characters i.e extra l and extra e and the 4 no of characters are similar.<br />
select difference (&#8216;chappel&#8217;, &#8216;chapelle&#8217;) Here is the result set:<br />
&#8212;&#8212;&#8212;&#8212;<br />
           4<br />
(1 row(s) affected)</p>
]]></content:encoded>
			<wfw:commentRss>http://datamart.org/2010/03/02/comparing-soundex-and-difference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Transact-SQL Insert  post inventory data in related ledgers</title>
		<link>http://datamart.org/2010/01/16/transact-sql-insert-statment-for-post-inventory-data-in-related-ledgers/</link>
		<comments>http://datamart.org/2010/01/16/transact-sql-insert-statment-for-post-inventory-data-in-related-ledgers/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 02:33:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Transact-SQL]]></category>

		<guid isPermaLink="false">http://datamart.org/?p=582</guid>
		<description><![CDATA[This post is about posting only new data from inventory table into vendor ledgers and material control account  by automatically checking exisiting data. We are using true example from our accounting database. Transactionz table is a financial transactions table resulting from material received or returned. In inventory table data is recorded with date, material id,  quantity [...]]]></description>
			<content:encoded><![CDATA[<p>This post is about posting only new data from inventory table into vendor ledgers and material control account  by automatically checking exisiting data. We are using true example from our accounting database. Transactionz table is a financial transactions table resulting from material received or returned. In inventory table data is recorded with date, material id,  quantity received and vendor id. </p>
<p>This data is posted into two tables with transact-sql statements  below statement 1 post the data into transactionz table as mentioned above and statement 2 post the same transaction into material ledger a/c after checking exisiting transaction ids by using &#8216;where not (tr_id = any (select trn from transactionz))&#8217;  so no duplicate transaction is posted as well if priceis 0 in case rate not finalized no transcation will be posted into ledgers though quantity is already received.</p>
<p>These statements made accounting entry very simple with 1 step i.e. once data is recorded in inventory it is automatically posted in effected ledger accounts accounts.</p>
<p><strong><span style="text-decoration: underline;">Statement-1</span></strong></p>
<p>insert into transactionz  (trn, transactiondate, transactiondescription, accountid, credit, debit)</p>
<p>select  tr_id, transactiondate, cast(quantitycr as varchar)+ &#8216; / &#8216;+ cast(quantity as varchar)+ &#8216; &#8216;+ +cast([description/name] as nvarchar) + &#8216; @ Rs. &#8216; +cast(price as varchar) ,accountid,  (quantity*price), (quantitycr*price)  from view38</p>
<p>where not (tr_id = any (select trn from transactionz) and (price<> 0)</p>
<p><strong><span style="text-decoration: underline;">Statement-2</span></strong></p>
<p>insert into transactionmat  (trn, transactiondate, transactiondescription, accountid, debit, credit)</p>
<p>select  tr_id, transactiondate, cast(quantity as varchar)+ &#8216; / &#8216;+cast(quantitycr as varchar)+ &#8216; &#8216;+ +cast([description/name] as nvarchar) + &#8216; @ Rs. &#8216; +cast(price as varchar) ,215,  (quantity*price), (quantitycr*price)  from view38</p>
<p>where not (tr_id = any (select trn from transactionmat) and (price<> 0)</p>
]]></content:encoded>
			<wfw:commentRss>http://datamart.org/2010/01/16/transact-sql-insert-statment-for-post-inventory-data-in-related-ledgers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Temp table a useful tool in many reports</title>
		<link>http://datamart.org/2009/12/28/temp-table-a-useful-tool-in-many-reports/</link>
		<comments>http://datamart.org/2009/12/28/temp-table-a-useful-tool-in-many-reports/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 15:56:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sql Reporting Services]]></category>
		<category><![CDATA[SQL Server 2000]]></category>
		<category><![CDATA[Sql Server 2005]]></category>
		<category><![CDATA[Sql Server 2008]]></category>
		<category><![CDATA[Sql Server 2008 Express]]></category>
		<category><![CDATA[Transact-SQL]]></category>

		<guid isPermaLink="false">http://datamart.org/?p=580</guid>
		<description><![CDATA[Reporting the payments received against shipment’s C&#38;F value. In this example our client was facing an  issue where shipments are made  and C&#38;F value amount is taken as Accounts Receivable, payments are received in 2 to 3  installments.  Management wants to know how much is outstanding against each shipment C&#38;F Invoice. In database invoice is [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://datamart.org/wp-content/uploads/2009/12/TmpTable1.jpg"><img src="http://datamart.org/wp-content/uploads/2009/12/TmpTable1-300x136.jpg" alt="" title="TmpTable" width="300" height="136" class="alignnone size-medium wp-image-656" /></a>Reporting the payments received against shipment’s C&amp;F value.</p>
<p>In this example our client was facing an  issue where shipments are made  and C&amp;F value amount is taken as Accounts Receivable, payments are received in 2 to 3  installments.  Management wants to know how much is outstanding against each shipment C&amp;F Invoice.</p>
<p>In database invoice is generated on C&amp;F basis where comprehensive information is recorded like invoice no,  Bill of Lading No, C&amp;F Amount, Shipment NO and so on.</p>
<p>When Payments are received it is recorded exportpayments table along with shipment NO.</p>
<p>In order to create a report to what is outstanding against respective invoice we created a SQL Query  using select into Transact-SQL  as follows;</p>
<p>select sn1, sum(amt) as cfvl</p>
<p> into #sd4</p>
<p>from dbo.exportpayments</p>
<p>group by sn1</p>
<p>Select Sn, CFvlu,sn1, cfvl, Cfvlu-cfvl as balance from</p>
<p> dbo.invocesexpressions inner join #sd4 on</p>
<p>dbo.invocesexpressions.sn = #sd4.sn1</p>
<p>drop table #sd4</p>
<p>In the above example we selected Shipment NO SN1 and sum amount Sum(amt) as cfvlu</p>
<p>Into temp table SD4 and then we selected Shipment no SN, CFVLU from invoices table and CFVL from Temp table #SD4 and join Invoices table and #sd4 based on Shipment NO</p>
<p>At the end we dropped thetemp table  #SD4.</p>
<p>This example utilized the temp table for generating outstanding payments report.</p>
<p>Shipmnt              CFVLU          Shpmnt  Amnt RCD       Blnc</p>
<table border="0" cellspacing="0" cellpadding="0" width="326" align="left">
<tbody>
<tr>
<td width="64" valign="bottom">
<p align="right">311</p>
</td>
<td width="70" valign="bottom">
<p align="right">672000</p>
</td>
<td width="64" valign="bottom">
<p align="right">311</p>
</td>
<td width="64" valign="bottom">
<p align="right">672000</p>
</td>
<td width="64" valign="bottom">
<p align="right">0</p>
</td>
</tr>
<tr>
<td width="64" valign="bottom">
<p align="right">315</p>
</td>
<td width="70" valign="bottom">
<p align="right">48950</p>
</td>
<td width="64" valign="bottom">
<p align="right">315</p>
</td>
<td width="64" valign="bottom">
<p align="right">48950</p>
</td>
<td width="64" valign="bottom">
<p align="right">0</p>
</td>
</tr>
<tr>
<td width="64" valign="bottom">
<p align="right">316</p>
</td>
<td width="70" valign="bottom">
<p align="right">62968.75</p>
</td>
<td width="64" valign="bottom">
<p align="right">316</p>
</td>
<td width="64" valign="bottom">
<p align="right">62969</p>
</td>
<td width="64" valign="bottom">
<p align="right">-0.25</p>
</td>
</tr>
<tr>
<td width="64" valign="bottom">
<p align="right">317</p>
</td>
<td width="70" valign="bottom">
<p align="right">43775</p>
</td>
<td width="64" valign="bottom">
<p align="right">317</p>
</td>
<td width="64" valign="bottom">
<p align="right">42819</p>
</td>
<td width="64" valign="bottom">
<p align="right">956</p>
</td>
</tr>
<tr>
<td width="64" valign="bottom">
<p align="right">318</p>
</td>
<td width="70" valign="bottom">
<p align="right">43775</p>
</td>
<td width="64" valign="bottom">
<p align="right">318</p>
</td>
<td width="64" valign="bottom">
<p align="right">43776</p>
</td>
<td width="64" valign="bottom">
<p align="right">-1</p>
</td>
</tr>
<tr>
<td width="64" valign="bottom">
<p align="right">325</p>
</td>
<td width="70" valign="bottom">
<p align="right">48950</p>
</td>
<td width="64" valign="bottom">
<p align="right">325</p>
</td>
<td width="64" valign="bottom">
<p align="right">48950</p>
</td>
<td width="64" valign="bottom">
<p align="right">0</p>
</td>
</tr>
<tr>
<td width="64" valign="bottom">
<p align="right">326</p>
</td>
<td width="70" valign="bottom">
<p align="right">48950</p>
</td>
<td width="64" valign="bottom">
<p align="right">326</p>
</td>
<td width="64" valign="bottom">
<p align="right">48950</p>
</td>
<td width="64" valign="bottom">
<p align="right">0</p>
</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://datamart.org/2009/12/28/temp-table-a-useful-tool-in-many-reports/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Real world example of usage of Case statement in SQL Server Stored Procedure</title>
		<link>http://datamart.org/2009/10/26/real-world-example-of-usage-of-case-statement-in-sql-server-stored-procedure/</link>
		<comments>http://datamart.org/2009/10/26/real-world-example-of-usage-of-case-statement-in-sql-server-stored-procedure/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 14:43:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Sql Reporting Services]]></category>
		<category><![CDATA[SQL Server 2000]]></category>
		<category><![CDATA[SQL, BI, IT news]]></category>
		<category><![CDATA[Transact-SQL]]></category>

		<guid isPermaLink="false">http://datamart.org/?p=578</guid>
		<description><![CDATA[This post is our practical experience of using Case statement in Calculating monthly overtime amount. Issue was actually usage of different no hours for Overtime worked for different departments. In this case Security departments overtime was calculated based on 12 hours and in all other departments base was 8 hours. Salary was categorize by monthly [...]]]></description>
			<content:encoded><![CDATA[<p>This post is our practical experience of using Case statement in Calculating monthly overtime amount. Issue was actually usage of different no hours for Overtime worked for different departments. </p>
<p>In this case Security departments overtime was calculated based on 12 hours and in all other departments base was 8 hours.</p>
<p>Salary was categorize by monthly type as [monthlytype]  SG for Security Guard where ovetime was calculated based on 12 hours.</p>
<p>code is given below and was in included in select statement;</p>
<p>CASE monthlytype WHEN &#8216;sg&#8217; THEN dbo.wrkshopattndnc.TOTAL_OVERTIME * dbo.[wrkshop employees].Salary / DAY(dbo.wrkshopattndnc.month)/12</p>
<p>ELSE dbo.wrkshopattndnc.TOTAL_OVERTIME * dbo.[wrkshop employees].Salary / DAY(dbo.wrkshopattndnc.month) / 8 </p>
<p>END AS ovtamnt</p>
]]></content:encoded>
			<wfw:commentRss>http://datamart.org/2009/10/26/real-world-example-of-usage-of-case-statement-in-sql-server-stored-procedure/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Practicality of  Floor function in SQL Server</title>
		<link>http://datamart.org/2009/10/03/practicality-of-floor-function-in-sql-server/</link>
		<comments>http://datamart.org/2009/10/03/practicality-of-floor-function-in-sql-server/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 05:49:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Business Intelligence]]></category>
		<category><![CDATA[SQL Server 2000]]></category>
		<category><![CDATA[Sql Server 2005]]></category>
		<category><![CDATA[Sql Server 2008]]></category>
		<category><![CDATA[Transact-SQL]]></category>

		<guid isPermaLink="false">http://datamart.org/?p=573</guid>
		<description><![CDATA[We are writing this post to share our experience of usefulness of Floor function. We use the floor function in calculating product manufactured and raw material wastage in the process. The problem was to calculate how many units of a product can be manufactured from certain weight of a raw material. We were getting answer [...]]]></description>
			<content:encoded><![CDATA[<p>We are writing this post to share our experience of usefulness of Floor function. We use the floor function in calculating product manufactured and raw material wastage in the process. The problem was to calculate how many units of a product can be manufactured from certain weight of a raw material. </p>
<p>We were getting answer like 8.67 products manufactured from 50 kgs of raw material. We talked to the manufacturing department they confirmed that 8 no of products are manufactured and 0.67 is the wastage. We calculated the weight of each product and then multiply by 8   which gave us the weight in kgs of 8 no of products.<br />
After that weight of 1 product was multiplied with .67 of product and got the weight of wastage in  kgs.<br />
In the above scenario we needed the decimal value of .67 separated from 8.67 in separate column to show wastage. Our data was in SQL Server, we utilized the floor function to make 8.67 into 8 and then subtracted the 8 from 8.67. The issue was resolved by using floor function.</p>
<p>Below is the related information about Floor function as obtained from SQL Server books Online.</p>
<p>CEILING and FLOOR</p>
<p>The CEILING function returns the smallest integer greater than or equal to the given numeric expression. The FLOOR function returns the largest integer less than or equal to the given numeric expression. For example, given a numeric expression of 12.9273, CEILING returns 13, and FLOOR returns 12. The return value of both FLOOR and CEILING has the same data type as the input numeric expression.</p>
]]></content:encoded>
			<wfw:commentRss>http://datamart.org/2009/10/03/practicality-of-floor-function-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

