 




<?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>IT Answers &#187; Design principles</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/tag/development/design-principles/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers</link>
	<description></description>
	<lastBuildDate>Sat, 18 May 2013 21:33:01 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Recursive Association with compound primary key in SQL database</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/recursive-association-with-compound-primary-key/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/recursive-association-with-compound-primary-key/#comments</comments>
		<pubDate>Sat, 01 Jan 2011 23:53:46 +0000</pubDate>
		<dc:creator>Littlegreen</dc:creator>
				<category><![CDATA[Database issues]]></category>
		<category><![CDATA[Design principles]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL Database]]></category>
		<category><![CDATA[SQL Server database]]></category>
		<category><![CDATA[SQL Server errors]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[Hello, I&#8217;m afraid I&#8217;m very new to this and really struggling. I have a table with a compound primary key composing of Code, Date, Client to represent an attendee on a course. I need to include a &#8216;Lead Client&#8217; column to represent a recursive relationship where one attendee can be nominated to lead others attending [...]]]></description>
				<content:encoded><![CDATA[<p>Hello,<br />
I&#8217;m afraid I&#8217;m very new to this and really struggling.<br />
I have a table with a compound primary key composing of Code, Date, Client to represent an attendee on a course.<br />
I need to include a &#8216;Lead Client&#8217; column to represent a recursive relationship where one attendee can be nominated to lead others attending the same course – i.e. can lead other attendees with the same Code and Date only. The Code and Date need to be the same for the Lead Client as for the Client.<br />
At the moment I have set up a composite Foreign Key in the table which references the Primary Key of the same table and comprises of 3 columns: Lead_Code, Lead_Date and Lead_Client.<br />
I have set up the FK so that either all or none are null, and have set up the Lead_Code and Lead_Date so that their values must match the Code and Date of the same record.<br />
However &#8211; this does not seem to be a very tidy or efficient way of storing the data, as each row where a Lead_Client is listed will basically contain two columns containing the same Code, and two containing the same Date. It also means that anyone inserting data into the table will need to enter the Code and Date twice wherever a Lead_Client is listed. I can&#8217;t help feeling that there must be a simpler solution but I can&#8217;t work it out.<br />
Ideally I would like to simply include a &#8216;Lead Client&#8217; column, but somehow force the table to only accept values where Lead_Client belongs to a record as the Client (as part of the PK) where the Code and Date match the Code and Date of the original Attendee record.<br />
Example:<br />
Code CRS1 Date 01/10 Client AA Lead_Client Null<br />
Code CRS1 Date 01/10 Client BB Lead_Client AA<br />
Code CRS2 02/10 Client CC Lead_Client AA = NOT ALLOWED as Client AA is not an attendee on course Code CRS2 on Date 02/10<br />
Apologies if this doesn’t make sense – I’d be really grateful for any help on this as I’m really stuck.<br />
Thanks!</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/recursive-association-with-compound-primary-key/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Software interface design principles</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/design-principles/</link>
		<comments>http://itknowledgeexchange.techtarget.com/itanswers/design-principles/#comments</comments>
		<pubDate>Fri, 10 Apr 2009 11:12:41 +0000</pubDate>
		<dc:creator>Shaz24</dc:creator>
				<category><![CDATA[Design principles]]></category>
		<category><![CDATA[Interface design]]></category>
		<category><![CDATA[Mobile development]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[When I dial a number on my mobile phone, a small icon with an image of my mobile phone appears together with an animated green outgoing arrow. Underneath the arrow, the name and telephone number of the person I am ringing are shown (provided this person is in my address book). Which design principle does [...]]]></description>
				<content:encoded><![CDATA[<p>When I dial a number on my mobile phone, a small icon with an image of my mobile phone appears together with an animated green outgoing arrow. Underneath the arrow, the name and telephone number of the person I am ringing are shown (provided this person is in my address book).<br />
Which design principle does this information comply with?</p>
<!-- wpms-network-global-inserts -->]]></content:encoded>
			<wfw:commentRss>http://itknowledgeexchange.techtarget.com/itanswers/design-principles/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using memcached
Database Caching 3/16 queries in 0.019 seconds using memcached
Object Caching 389/422 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-19 09:27:05 -->