<?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>Ethelcofie’s Thought-osphere &#187; linkedin</title>
	<atom:link href="http://blog.ethelcofie.com/tag/linkedin/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ethelcofie.com</link>
	<description>Bits and Bobs from Software development,New Technologies and other random stuff i have done</description>
	<lastBuildDate>Tue, 22 Dec 2009 01:59:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.3</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>A tweet ,A retweet and a couple emails later its BarCampAfrica UK 2009</title>
		<link>http://blog.ethelcofie.com/2009/08/28/a-tweet-a-retweet-and-a-couple-emails-later-its-barcampafrica-uk-2009/</link>
		<comments>http://blog.ethelcofie.com/2009/08/28/a-tweet-a-retweet-and-a-couple-emails-later-its-barcampafrica-uk-2009/#comments</comments>
		<pubDate>Fri, 28 Aug 2009 08:53:47 +0000</pubDate>
		<dc:creator>ethelcofie</dc:creator>
				<category><![CDATA[Experiences]]></category>
		<category><![CDATA[General Articles]]></category>
		<category><![CDATA[BarCamp Africa]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[UK]]></category>

		<guid isPermaLink="false">http://blog.ethelcofie.com/?p=126</guid>
		<description><![CDATA[After BarCamp Africa in the US and BarCamp Diaspora also in US.
I think there was a sense from those of us on this side of the pond that we also need a BarCamp Africa in the UK .
Of course there will never  be enough events that will bring together a group of talented entrepreneurs, technologist, [...]]]></description>
			<content:encoded><![CDATA[<p>After BarCamp Africa in the US and BarCamp Diaspora also in US.</p>
<p>I think there was a sense from those of us on this side of the pond that we also need a BarCamp Africa in the UK .</p>
<p>Of course there will never  be enough events that will bring together a group of talented entrepreneurs, technologist, charities, engineers, designers, bloggers, artists, with a passion for African development.</p>
<p>So a tweet , a retweet ,a couple of emails back and forth and an organizers meeting later we are on course for an inspiring and action oriented <a href="http://barcampafrica.com/uk">BarCampAfrica UK on the 7th of November 2009 .</a></p>
<p>Ps.  The Next Organisers meeting is in secondlife ooo! check us out we are making use of all technological avenues open to us . <img src='http://blog.ethelcofie.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Find out more about BarCampAfrica UK and register on <a href="http://barcampafrica.com/uk" target="_blank">http://barcampafrica.com/uk</a></p>
<p>Untill the Next Post see you later</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ethelcofie.com/2009/08/28/a-tweet-a-retweet-and-a-couple-emails-later-its-barcampafrica-uk-2009/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Usability issues with the African Union website</title>
		<link>http://blog.ethelcofie.com/2009/07/26/usability-issues-with-the-african-union-website/</link>
		<comments>http://blog.ethelcofie.com/2009/07/26/usability-issues-with-the-african-union-website/#comments</comments>
		<pubDate>Sun, 26 Jul 2009 04:16:38 +0000</pubDate>
		<dc:creator>ethelcofie</dc:creator>
				<category><![CDATA[Experiences]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[African union]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[usabililt issues]]></category>
		<category><![CDATA[usabililty nightmare]]></category>

		<guid isPermaLink="false">http://blog.ethelcofie.com/?p=113</guid>
		<description><![CDATA[Being an African and a national of a country that belongs to the AU, I have had cause  to visit the AU site many times and  I have come to notice certain niggling issues with AU site’s http://www.africa-union.org/   front page.]]></description>
			<content:encoded><![CDATA[<p>Being an African and a national of a country that belongs to the AU, I have had causeto visit the AU site many times and I have come to notice certain niggling issues with AU site’s <a href="http://www.africa-union.org/">http://www.africa-union.org/</a>front page.</p>
<p>I must reiterate that the aim of this article is to bring these issues to the attention of the web masters, developer and administrators and thereby helping to improve the usability of the site.<br />
The issue are enumerated below:<br />
1 .When the home page loads initially it runs what I assume is a flash intro of the site. This is in theory is nice concept can become a usability issue and an all round nuisance when the user is not given the option to stop the flash from running fully and be sent directly to the main content pages but has to wait until the whole flash runs to click a link .This is especially a nuisance when that user logs on multiple times or use his back button to get back to the home page.</p>
<p>Many information and corporate sites e.g.<a href="https://careers3.accenture.com/taleo/taleo.asp?countryname=uk" target="_blank">Accenture</a> , <a href="http://www.zdnet.com/">www.zdnet.com</a>and numerous other sites do because they are increasingly aware of the nuisance this becomes .</p>
<p>2. When the Flash intro loads up, an African map is displayed.When the user passes his mouse over the countries on the map the colour of these regions lighten and the mouse symbol changes to a hand giving the impression that they are links when they are clearly not. At the best I think what should have being done was to display a information on that country as a tool tip when the user passes a mouse over the countries on the map.<br />
3. Lastly there is funny problem with the links provided after the flash intro loads. There are parts of that text link which the user cannot click on. I can only assume here that the problem is that the link area is not wide enough and should be changed to cover a wider area than just barely covering the text provided.<br />
They are small niggling issues but they go long to improving the user experience on the site, decreasing site dropout rate and the perceived quality of the site.<br />
I hope somebody this article comes to the attention of the administrators of the<a href="http://www.africa-union.org/">http://www.africa-union.org/</a>site.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ethelcofie.com/2009/07/26/usability-issues-with-the-african-union-website/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Fckeditor for drupal usability nightmare</title>
		<link>http://blog.ethelcofie.com/2008/10/08/fckeditor-for-drupal-usability-nightmare/</link>
		<comments>http://blog.ethelcofie.com/2008/10/08/fckeditor-for-drupal-usability-nightmare/#comments</comments>
		<pubDate>Wed, 08 Oct 2008 13:48:58 +0000</pubDate>
		<dc:creator>ethelcofie</dc:creator>
				<category><![CDATA[Rants]]></category>
		<category><![CDATA[drupal. fckeditor]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[usabililty nightmare]]></category>

		<guid isPermaLink="false">http://blog.ethelcofie.com/?p=101</guid>
		<description><![CDATA[Ranting about the poor usability of the fckeditor setting page on drupal 6

1.Fields to &#8216;include/Exclude&#8217; why couldnt they just have 2 text areas 1 for includes and another for exclude &#8211; i get the impression that they just couldnt be bothered
2. The include/exclude drop down i was assuming would toggle to show in the ensuing [...]]]></description>
			<content:encoded><![CDATA[<p>Ranting about the poor usability of the fckeditor setting page on drupal 6</p>
<p><a title="fckeditorrant by etheldcofie, on Flickr" href="http://www.flickr.com/photos/etheldcofie/2924550210/"><img src="http://farm4.static.flickr.com/3202/2924550210_4a3a680185.jpg" alt="fckeditorrant" width="429" height="500" /></a></p>
<p>1.Fields to &#8216;include/Exclude&#8217; why couldnt they just have 2 text areas 1 for includes and another for exclude &#8211; i get the impression that they just couldnt be bothered</p>
<p>2. The include/exclude drop down i was assuming would toggle to show in the ensuing text area   the fields that were include or excluded  unfortunately they just serve  to indicators for saving included or excluded files making it a a <strong>usabilty nightmare for anymore who want to rack which files are either included or excluded</strong></p>
<p>I know its open source but guys seriously</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ethelcofie.com/2008/10/08/fckeditor-for-drupal-usability-nightmare/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Life Hacks</title>
		<link>http://blog.ethelcofie.com/2008/09/22/life-hacks/</link>
		<comments>http://blog.ethelcofie.com/2008/09/22/life-hacks/#comments</comments>
		<pubDate>Mon, 22 Sep 2008 20:21:41 +0000</pubDate>
		<dc:creator>ethelcofie</dc:creator>
				<category><![CDATA[Experiences]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[flickr api]]></category>
		<category><![CDATA[free css templates]]></category>
		<category><![CDATA[life hacks]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[Ning.com]]></category>
		<category><![CDATA[social media]]></category>

		<guid isPermaLink="false">http://etheldcofie.wordpress.com/?p=70</guid>
		<description><![CDATA[Suggestions……
 
In need of quick design for a website, if you are like me and you probably developing the website as a favour to a friend or family member but don’t have enough time for drudging out designs your best bet is a free online CSS templates that you can download and personalize for use:
 [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><span lang="EN-GB">Suggestions……</span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">In need of quick design for a website, if you are like me and you probably developing the website as a favour to a friend or family member but don’t have enough time for drudging out designs your best bet is a free online CSS templates that you can download and personalize for use:</span></p>
<p class="MsoNormal"><strong><span lang="EN-GB"><span> </span></span></strong><a href="http://www.freecsstemplates.org/"><strong></strong><strong></strong></a><strong><a href="http://www.free-css.com/">http://</a></strong><cite><span lang="EN-GB"><a href="http://www.freecsstemplates.org/"><span style="font-style:normal;">www.</span><strong><span style="font-style:normal;">freecsstemplates</span></strong><span style="font-style:normal;">.org/</span></a></span></cite><cite></cite></p>
<p class="MsoNormal"><a href="http://www.free-css-templates.com/"><strong></strong><strong></strong></a><strong><a href="http://www.free-css.com/">http://</a></strong><cite><span lang="EN-GB"><a href="http://www.free-css-templates.com/"><span style="font-style:normal;">www.</span><strong><span style="font-style:normal;">free</span></strong><span style="font-style:normal;">-</span><strong><span style="font-style:normal;">css</span></strong><span style="font-style:normal;">-</span><strong><span style="font-style:normal;">templates</span></strong><span style="font-style:normal;">.com/</span></a></span></cite></p>
<p class="MsoNormal"><strong><span lang="EN-GB"><a href="http://www.free-css.com/">http://www.free-css.com/</a></span></strong></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">Else if you need to put together a simple a quick and easy website which you give over to user to take control of the content then your easiest bet is using word press as a Content Management System Mark Kirby has an excellent tutorial on his website <a href="http://mark-kirby.co.uk/2008/wordpress-as-a-cms-talk-and-sample-code/">http://mark-kirby.co.uk/2008/wordpress-as-a-cms-talk-and-sample-code/</a></span></p>
<p class="MsoNormal"><span lang="EN-GB"> </span></p>
<p class="MsoNormal"><span lang="EN-GB">If you want to add an album to your website but don’t have the space or bandwidth I suggest use online photo social sites like and <a href="http://www.flickr.com/" target="_blank">Flickr</a> and use the API’s to retrieve images on demand Or just hotlink from your Facebook albums. A bit dodgy but it works! </span></p>
<p class="MsoNormal"><span lang="EN-GB">I wrote a tutorial on how to use flickr API which I presented at Bar Camp Brighton 3 <a href="http://blog.ethelcofie.com/2008/05/19/flickr-api-how-to-perform-authenticating-using-php/">http://etheldcofie.wordpress.com/2008/05/19/flickr-api-how-to-perform-authenticating-using-php/</a></span></p>
<p class="MsoNormal">
<p class="MsoNormal">If you need to knock out your own custom social netwrok for your friends, family  or people with similar interest( chocolate loving  geeks perhaps !) then use  <a href="http://www.ning.com/">Ning.com</a>. It is great platform that allows you to create your own social network and even register a domain that points to your customized social network.</p>
<p class="MsoNormal">
<p class="MsoNormal">This section will be updated as often as i can  with short cuts and life hacks&#8230; watch this space</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ethelcofie.com/2008/09/22/life-hacks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A developer&#8217;s plunge into the world of Test Analysis</title>
		<link>http://blog.ethelcofie.com/2008/09/08/a-developers-plunge-into-the-world-of-test-analysis/</link>
		<comments>http://blog.ethelcofie.com/2008/09/08/a-developers-plunge-into-the-world-of-test-analysis/#comments</comments>
		<pubDate>Mon, 08 Sep 2008 16:10:47 +0000</pubDate>
		<dc:creator>ethelcofie</dc:creator>
				<category><![CDATA[Experiences]]></category>
		<category><![CDATA[developers]]></category>
		<category><![CDATA[lessons]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[test analysis]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://etheldcofie.wordpress.com/?p=36</guid>
		<description><![CDATA[I am a developer at work and at heart who had not done much formal testing except to verify that the system I was developing  worked [J] .I however moved into a new job  which dictated as part of my contract  that  I had to go through a two month period working as a full time test analyst for the experience .]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal"><span lang="EN-US">I am a developer at work and at heart who had not done much formal testing except to verify that the system I was developing<span> </span>worked [</span><span style="font-family: Wingdings;"><span>J</span></span><span lang="EN-US">] .I however moved into a new job <span> </span>which dictated as part of my contract<span> </span>that<span> </span>I had to go through a two month period working as a full time test analyst for the experience .</span></p>
<p class="MsoNormal"><span lang="EN-US">My reaction: What! </span>No building stuff, no development well at least not at work for the next two months *groan groan* I am going to die before I complete my time I just know [my melodramatic side showing]</p>
<p class="MsoNormal">So I started my stint praying time would go fast and I wouldn’t realize it. <span lang="EN-US">l also acknowledge above my melodramatics that<span> </span>it was probably a good<span> </span>learning experience<span> </span>which will make me a<span> </span>better developer in the long run . </span></p>
<p class="MsoNormal"><span lang="EN-US">I started out running manual scripts for an online financial system painful yes, by the end of the second week I was fast losing my will to live.</span></p>
<p class="MsoNormal"><span lang="EN-US"><span> </span>So to keep from going crazy I turned to reading materials on what testing was all about and what made a great tester. There had to be more to testing! Right?</span></p>
<p class="MsoNormal"><span lang="EN-US">Yes! Right, My perception of testing as developer changed dramatically when I <span> </span>moved to 2 relatively small size projects [less that 10 people ]<span> </span>working as the sole <span> </span>test analyst<span> </span>on the first and as an adjunct test analyst on the second .</span></p>
<p class="MsoNormal"><strong><em><span lang="EN-US">So what changed for me? </span></em></strong></p>
<p class="MsoNormal"><span lang="EN-US">Being the only test analyst on a project means I had to learn quickly what was required of me , what mentality<span> </span>I was to adopt to be effective in my role<span> </span>and of course how to work smart as opposed to laboriously , what tools<span> </span>would make my work better or not .</span></p>
<p class="MsoNormal"><span lang="EN-US">Fundamentally I believe I begun to thoroughly enjoy being a test analyst when I bought into the mentality and attitude of a tester.</span></p>
<p class="MsoNormal"><span lang="EN-US">No it’s not being sadistic it’s the fact that I am the last line of defense for the customer it’s my job to make sure that the customer gets the best product possible <span> </span>[or die trying </span><span style="font-family: Wingdings;"><span>J</span></span><span lang="EN-US">]</span></p>
<p class="MsoNormal"><span lang="EN-US">There will always be something wrong with the system and if it’s big enough to make the users experience or systems substandard then I will find it .oh yes I will ….</span></p>
<p class="MsoNormal"><span lang="EN-US">..And the love for breaking things especially software </span></p>
<p class="MsoNormal"><span lang="EN-US">Also automated testing appealed to the developer/programmer in me, I could write/program automated test s that could do a lot of the mundane repetitive tasks and User Acceptance Tests that needed to be done </span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><strong><em><span lang="EN-US"> </span></em></strong></p>
<p class="MsoNormal"><strong><em><span lang="EN-US">What I learnt </span></em></strong></p>
<p class="MsoNormal"><span lang="EN-US">I took away for my time as a test analyst:</span></p>
<p class="MsoNormal"><span lang="EN-US">Tact: saying to developer fix this! Fix this Now!<span> </span>Is hardly going to get you anywhere .When to push when to stop when to assert and to smile and let go.</span></p>
<p class="MsoNormal"><span lang="EN-US">A better eye for detail when I am<span> </span>developing :I have a sort of split personality now when I am working I look at the system<span> </span>through the eyes of a tester and a developer.[I still believe it not right for a developer to double as his/her own test analyst ]</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">&#8230;And a whole new respect for the testers I work with.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ethelcofie.com/2008/09/08/a-developers-plunge-into-the-world-of-test-analysis/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Write a Process Order Stored Procedure in T-SQL</title>
		<link>http://blog.ethelcofie.com/2008/07/29/how-to-write-a-process-order-stored-procedure-in-t-sql/</link>
		<comments>http://blog.ethelcofie.com/2008/07/29/how-to-write-a-process-order-stored-procedure-in-t-sql/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 14:02:59 +0000</pubDate>
		<dc:creator>ethelcofie</dc:creator>
				<category><![CDATA[Development Articles]]></category>
		<category><![CDATA[linkedin]]></category>
		<category><![CDATA[order processing]]></category>
		<category><![CDATA[sql server]]></category>
		<category><![CDATA[T-SQL notes]]></category>

		<guid isPermaLink="false">http://etheldcofie.wordpress.com/?p=12</guid>
		<description><![CDATA[This Persistent stored module Process Processes Orders by reading the oldest unfulfilled Order and Flags it status as Fulfilled when there is enough stock to fulfil other or leaves to Unfulfilled or Awaiting Stock otherwise]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="text-align:justify;margin:0;"><strong><span style="font-size: small;"><span style="font-family: Times New Roman;">PERSISTANT STORED MODULE CHOSEN: PROCESS ORDER</span></span></strong></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: small;"><span style="font-family: Times New Roman;"><span> </span>This Persistent stored module Process Processes Orders by reading the oldest unfulfilled Order and Flags it status as Fulfilled when there is enough stock to fulfil other or leaves to Unfulfilled or Awaiting Stock otherwise.</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: small; font-family: Times New Roman;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span><span style="font-size: small; font-family: Times New Roman;"> Database Structure</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;">
<div class="MsoNormal" style="text-align:justify;margin:0;"><span><span style="font-size: small; font-family: Times New Roman;"> </span></span></div>
<div id="attachment_10" class="wp-caption alignnone" style="width: 310px"><a href="http://etheldcofie.files.wordpress.com/2008/07/db.jpg"><img class="size-medium wp-image-10" src="http://etheldcofie.files.wordpress.com/2008/07/db.jpg?w=300" alt="Stock control database" width="300" height="268" /></a><p class="wp-caption-text">Stock control database</p></div>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: small; font-family: Times New Roman;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: small;"><span style="font-family: Times New Roman;"><span> </span><strong>5.1 Pseudocode</strong></span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: small;"><span style="font-family: Times New Roman;"><span> </span>START</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: small;"><span style="font-family: Times New Roman;"><span> </span>Get <span> </span>oldest Unfufilled Order data</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: small;"><span style="font-family: Times New Roman;"><span> </span>Get the catalogue data for that Order </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: small;"><span style="font-family: Times New Roman;"><span> </span>For Each Catalogue Item</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: small;"><span style="font-family: Times New Roman;"><span> </span>If<span> </span>Catalogue Item type is Stock<span> </span></span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: small;"><span style="font-family: Times New Roman;"><span> </span>Then</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: small;"><span style="font-family: Times New Roman;"><span> </span>if<span> </span>Catlogue Item available stock&gt; Catalogue Order Quantity</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: small;"><span style="font-family: Times New Roman;"><span> </span><span> </span>Then</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: small;"><span style="font-family: Times New Roman;"><span> </span>Set Order Status =Fufilled</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: small;"><span style="font-family: Times New Roman;"><span> </span>Else </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: small;"><span style="font-family: Times New Roman;"><span> </span>Set Order Status=Awaiting Stock</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: small;"><span style="font-family: Times New Roman;"><span> </span>STOP</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: small;"><span style="font-family: Times New Roman;"><span> </span>Else if<span> </span>Catalogue Item type is Non-Stock<span> </span></span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: small;"><span style="font-family: Times New Roman;"><span> </span>Create supplier Order</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: small;"><span style="font-family: Times New Roman;"><span> </span>If<span> </span>Error in<span> </span>then return transaction to former state</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: small; font-family: Times New Roman;">STOP</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: small; font-family: Times New Roman;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: small; font-family: Times New Roman;"> </span></p>
<p class="MsoNormal" style="text-indent:-18pt;text-align:justify;margin:0 0 0 33pt;"><span style="font-family: Times New Roman;"><strong><span><span style="font-size: small;">5.2</span><span style="font-family: &quot;&quot;;"> </span></span></strong><strong><span style="font-size: small;">Actual code</span></strong></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><strong><span style="font-size: small; font-family: Times New Roman;"> </span></strong></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span><span style="font-size: small; font-family: Times New Roman;"> </span></span><span style="font-size: 10pt; color: #0000ff;">CREATE</span><span style="font-size: 10pt; font-family: &quot;&quot;;"> <span style="color: #0000ff;">PROCEDURE</span> [dbo]<span style="color: #808080;">.</span>[ProcessOrder] </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #008000;">&#8211; Add the parameters for the stored procedure here</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span> </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span> </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; color: #0000ff;">AS</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; color: #0000ff;">BEGIN</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #008000;">&#8211; SET NOCOUNT ON added to prevent extra result sets from</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #008000;">&#8211; interfering with SELECT statements.</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">SET</span> <span style="color: #0000ff;">NOCOUNT</span> <span style="color: #0000ff;">ON</span><span style="color: #808080;">;</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">declare</span> @catId <span style="color: #0000ff;">varchar</span><span style="color: #808080;">(</span><span style="color: #ff00ff;">max</span><span style="color: #808080;">)</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">declare</span> @count <span style="color: #0000ff;">int</span><span> </span><span style="color: #008000;">&#8211;count</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">declare</span> @iRow <span style="color: #0000ff;">int</span><span> </span><span style="color: #008000;">&#8211;showing number of rows</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">declare</span> @itemtype <span style="color: #0000ff;">varchar</span><span style="color: #808080;">(</span>50<span style="color: #808080;">)</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">declare</span> @available_stock <span style="color: #0000ff;">int</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">declare</span> @orderqty <span style="color: #0000ff;">int</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">declare</span> @Orderid <span style="color: #0000ff;">varchar</span><span style="color: #808080;">(</span><span style="color: #ff00ff;">max</span><span style="color: #808080;">)</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">declare</span> @checkAwaiting <span style="color: #0000ff;">int</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #008000;">&#8211; Insert statements for procedure here</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; color: #0000ff;">DECLARE</span><span style="font-size: 10pt; font-family: &quot;&quot;;"> @tbl <span style="color: #0000ff;">TABLE</span><span style="color: #808080;">(</span><span> </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span>RowID <span style="color: #0000ff;">INT</span> <span style="color: #0000ff;">IDENTITY</span><span style="color: #808080;">(</span>1<span style="color: #808080;">,</span> 1<span style="color: #808080;">),</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span>CatlID <span style="color: #0000ff;">VARCHAR</span><span style="color: #808080;">(</span><span style="color: #ff00ff;">Max</span><span style="color: #808080;">),</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span>Qty <span style="color: #0000ff;">INT</span><span style="color: #808080;">,</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span>OrderID <span style="color: #0000ff;">VARCHAR</span><span style="color: #808080;">(</span><span style="color: #ff00ff;">MAX</span><span style="color: #808080;">))</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; color: #0000ff;">INSERT</span><span style="font-size: 10pt; font-family: &quot;&quot;;"> @tbl </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">SELECT</span> Catl_id<span style="color: #808080;">,</span>Quantity<span style="color: #808080;">,</span>Order_id <span style="color: #0000ff;">from</span> dbo<span style="color: #808080;">.</span>VwUnfufilledOrders <span style="color: #0000ff;">where</span> VwUnfufilledOrders<span style="color: #808080;">.</span>Order_date<span style="color: #808080;">=(</span><span style="color: #0000ff;">Select</span> <span style="color: #ff00ff;">min</span><span style="color: #808080;">(</span>VwUnfufilledOrders<span style="color: #808080;">.</span>Order_date<span style="color: #808080;">)</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; color: #0000ff;">from</span><span style="font-size: 10pt; font-family: &quot;&quot;;"> dbo<span style="color: #808080;">.</span>VwUnfufilledOrders<span style="color: #808080;">)</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; color: #808080;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; color: #0000ff;">SET</span><span style="font-size: 10pt; font-family: &quot;&quot;;"> @count <span style="color: #808080;">=</span> <span style="color: #ff00ff;">@@ROWCOUNT</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; color: #0000ff;">SET</span><span style="font-size: 10pt; font-family: &quot;&quot;;"> @iRow <span style="color: #808080;">=</span> 1</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; color: #0000ff;">set</span><span style="font-size: 10pt; font-family: &quot;&quot;;"> @checkAwaiting<span style="color: #808080;">=</span>0</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; color: #0000ff;">Select</span><span style="font-size: 10pt; font-family: &quot;&quot;;"> @count</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">Begin</span> <span style="color: #0000ff;">transaction</span><span style="color: #008000;">&#8211; start transcation</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #008000;">&#8211;call function for availability</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; color: #008000;">&#8212;start loop to check for availabilty of every catlogue item</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; color: #0000ff;">WHILE</span><span style="font-size: 10pt; font-family: &quot;&quot;;"> @iRow <span style="color: #808080;">&lt;=</span> @count</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">begin</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">Select</span> @catId<span style="color: #808080;">=</span>CatlID<span style="color: #808080;">,</span>@orderqty<span style="color: #808080;">=</span>Qty<span style="color: #808080;">,</span>@Orderid<span style="color: #808080;">=</span>OrderID <span style="color: #0000ff;">from</span> @tbl <span style="color: #0000ff;">where</span> RowID<span style="color: #808080;">=</span>@iRow</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span> </span><span style="color: #0000ff;">select</span> @itemtype<span style="color: #808080;">=</span>Item_Type<span style="color: #808080;">,</span> @available_stock<span style="color: #808080;">=</span>Available_stock <span style="color: #0000ff;">from</span> dbo<span style="color: #808080;">.</span>Catlogue_Item <span style="color: #0000ff;">where</span> Catl_id<span style="color: #808080;">=</span>@catId</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">if</span> <span style="color: #808080;">(</span>@itemtype<span style="color: #808080;">=</span><span style="color: #ff0000;">&#8216;Stock&#8217;</span><span style="color: #808080;">)</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">begin</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">print</span> <span style="color: #ff0000;">&#8216;Order id is&#8217;</span><span style="color: #808080;">+</span>@Orderid<span style="color: #808080;">+</span><span style="color: #ff0000;">&#8216;with number of rows=&#8217;</span><span style="color: #808080;">+</span> <span style="color: #ff00ff;">convert</span><span style="color: #808080;">(</span><span style="color: #0000ff;">varchar</span><span style="color: #808080;">,</span>@count<span style="color: #808080;">)</span> <span style="color: #808080;">+</span><span style="color: #ff0000;">&#8216;it is a stock item&#8217;</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">if</span><span style="color: #808080;">(</span>@available_stock<span style="color: #808080;">&gt;</span>@orderqty<span style="color: #808080;">)</span> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">begin</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">print</span> <span style="color: #ff0000;">&#8216;Oder id is&#8217;</span><span style="color: #808080;">+</span>@Orderid<span style="color: #808080;">+</span><span style="color: #ff0000;">&#8216; /with Qty=&#8217;</span><span style="color: #808080;">+</span> <span style="color: #ff00ff;">convert</span><span style="color: #808080;">(</span><span style="color: #0000ff;">varchar</span><span style="color: #808080;">(</span>50<span style="color: #808080;">),</span>@orderqty<span style="color: #808080;">)</span> <span style="color: #808080;">+</span><span style="color: #ff0000;">&#8216;and available stock=&#8217;</span><span style="color: #808080;">+</span><span style="color: #ff00ff;">convert</span><span style="color: #808080;">(</span><span style="color: #0000ff;">varchar</span><span style="color: #808080;">(</span>50<span style="color: #808080;">),</span>@available_stock<span style="color: #808080;">)</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">Update</span> dbo<span style="color: #808080;">.</span>CustOrder <span style="color: #0000ff;">set</span> Status<span style="color: #808080;">=</span><span style="color: #ff0000;">&#8216;Fufilled&#8217;</span> <span style="color: #0000ff;">where</span> Order_id<span style="color: #808080;">=</span>@Orderid</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">If</span> <span style="color: #ff00ff;">@@error</span> <span style="color: #808080;">&lt;&gt;</span> 0 </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span style="color: #0000ff;"> goto</span> ERR_HANDLER</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span></span><span style="font-size: 10pt; font-family: &quot;&quot;;"><span style="color: #0000ff;">end</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">else</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">begin</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">Update</span> dbo<span style="color: #808080;">.</span>CustOrder <span style="color: #0000ff;">set</span> Status<span style="color: #808080;">=</span><span style="color: #ff0000;">&#8216;UnFufilled&#8217;</span> <span style="color: #0000ff;">where</span> <a href="mailto:Order_id=@Orderid">Order_id<span style="color: #808080;">=</span>@Orderid</a></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">print</span> <span style="color: #ff0000;">&#8216;Qty not enough&#8217;</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">set</span> @checkAwaiting<span style="color: #808080;">=</span>1</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">goto</span> ERR_HANDLER</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #008000;">&#8211; stock insufficient so Order status remains unfufilled</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #008000;">&#8211;call stock replenish function</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">end</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">end</span> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">if</span> <span style="color: #808080;">(</span>@itemtype<span style="color: #808080;">=</span><span style="color: #ff0000;">&#8216;NonStock&#8217;</span><span style="color: #808080;">)</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span> </span><span style="color: #0000ff;">begin</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #008000;">&#8211; create supplier order</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">print</span> <span style="color: #ff0000;">&#8216;Its a supplier direct order&#8217;</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">end</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; color: #0000ff;"> </span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">SET</span> @iRow <span style="color: #808080;">=</span> @iRow <span style="color: #808080;">+</span> 1</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">end</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; color: #0000ff;">Commit</span><span style="font-size: 10pt; font-family: &quot;&quot;;"> <span style="color: #0000ff;">Transaction</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; color: #0000ff;">Return</span><span style="font-size: 10pt; font-family: &quot;&quot;;"> 0</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;">ERR_HANDLER<span style="color: #808080;">:</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">Select</span> <span style="color: #ff0000;">&#8216;Unexpected error occurred!&#8217;</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">Rollback</span> <span style="color: #0000ff;">transaction</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; color: #0000ff;">if</span><span style="font-size: 10pt; font-family: &quot;&quot;;"> <span style="color: #808080;">(</span> @checkAwaiting<span style="color: #808080;">=</span>1<span style="color: #808080;">)</span><span style="color: #0000ff;">Update</span> dbo<span style="color: #808080;">.</span>CustOrder <span style="color: #0000ff;">set</span> Status<span style="color: #808080;">=</span><span style="color: #ff0000;">&#8216;AwaitingStock&#8217;</span> <span style="color: #0000ff;">where</span> Order_id<span style="color: #808080;">=</span>@Orderid<span style="color: #008000;">&#8211; to be removed</span></span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; font-family: &quot;&quot;;"><span> </span><span style="color: #0000ff;">Return</span> 1</span></p>
<p class="MsoNormal" style="text-align:justify;margin:0;"><span style="font-size: 10pt; color: #0000ff;">END</span></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ethelcofie.com/2008/07/29/how-to-write-a-process-order-stored-procedure-in-t-sql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
