Getting Started with Adobe After Effects - Part 6: Motion Blur


Upload Image Close it
Select File

Here is a TSQL challenge to build a well formed HTML fragment from a comma separated list of HTML tags provided as input.

TSQL Beginners Challenge 19 - Build valid HTML from the given unordered HTML Tags

Solution to TSQL Beginners Challenge 19

Sep 14 2011 1:17AM by chaithu559   

Solution to TSQL Beginners Challenge 19

;with cte
as
(
select id,HtmlTagNames,Convert(varchar(1000),HtmlTagNames+',') as temphtn,Convert(varchar(1000),'') as splittag 
from @tblUnorderedHTMLTags
union all
select ut.id,ut.HtmlTagNames,temphtn=Convert(varchar(1000),substring(temphtn,CHARINDEX(',',c.temphtn,1)+1,LEN(temphtn))),
Convert(varchar(1000),substring(temphtn,1,case 
                        when CHARINDEX(',',c.temphtn,1)<>0 then CHARINDEX(',',c.temphtn,1)-1
                        when CHARINDEX(',',c.temphtn,1)=0 then len(c.temphtn) end ))
 from cte c inner join @tblUnorderedHTMLTags 
ut on ut.ID=c.ID where c.temphtn<>''
),
cte2
as
(
select c.id,c.splittag,case when splittag='html' then 1 
                            when splittag='Head' then 2
                            when splittag='title' then 3
                            when splittag='Meta' then 4
                            when splittag='Body' then 5
                            when splittag='Font' then 6 end as pos from cte c inner join @tblTagOrders tor on c.splittag=tor.Tags  where c.splittag<>''

),
cte3
as
(
select  id,(select '<'+ case when splittag='Title' then splittag+'>'+' '
                              when splittag='Meta' then splittag+'>'+' '
                              when splittag='Font' then splittag+'>'+''
                              else splittag+'> ' end   from cte2 c where c.ID=cte.id order by pos for XML path(''),type).value('.','varchar(max)')+'' as HtmlTag from cte
)
select  distinct id,case when PATINDEX('%%',HtmlTag)>=1 and PATINDEX('%%',HtmlTag)>=1
						and PATINDEX('%%',HtmlTag)>=1 and PATINDEX('%<Body>%',HtmlTag)>=1
						then HtmlTag else 'All Valid Html tags are not present' end  as Html from cte3 
</pre>
<p>
<b>Tags:</b> 
</p>


    </div>
    <div style="margin-top: 10px">
        
        <span id="ctl00_ctl00_bcr_bcr_ctl05_ctl02_postdetails_DynamicPostDetails_userspan">
        <hr />
        

<style type="text/css"> 
.userprofile  
{
    color: #36c;
    font-size: 12px; 
	font-weight: bold; 
    text-decoration: none;
}

.userprofile A:VISITED
{
    color: #039;
    font-size: 16px; 
	font-weight: bold; 
    text-decoration: none;
}

.userprofile A:HOVER
{
	font-size: 16px; 
	font-weight: bold; 
	text-decoration: underline;
}
</style>
<table width="100%" >
    <tr>
        <td valign="top" width="30px" align="left" >
            <img id="ctl00_ctl00_bcr_bcr_ctl05_ctl02_postdetails_DynamicPostDetails_author_imgAvtar" src="http://beyondrelational.com/images/images.ashx?id=3d3702af94784293be4285e4e8b9155e&w=32&h=32" style="height:30px;width:30px;border-width:0px;" />
        </td>
        <td class="totalscore" valign="top" align="left"  >
            <a id="ctl00_ctl00_bcr_bcr_ctl05_ctl02_postdetails_DynamicPostDetails_author_lnkUserProfile" class="userprofile" href="http://beyondrelational.com/members/chaithu559/default.aspx">chaithu559</a>
            
            
            <br />
            <div class="totalscore">
                <span title="Rank of the user">
                    350
                    · </span><span title="Weight of the user">
                        0% · </span><span title="Total Points of the user">
                            116
                        </span>
            </div>
            
        </td>
    </tr>
</table>

        </span>
    </div>
</div>

</div>

            </div>
           
       
    
    
			 <div >
				
<style type="text/css"> 
.views
{
    padding: 4px;
    color: #999999;
    text-align: center;
    border-style: solid;
    border-color: Gray;
    border-width: thin;
    width: 70px;
}
.views1
{
    padding: 4px;
    color: drakgray;
    text-align: center;
    border-style: solid;
    border-color: Gray;
    border-width: thin;
    width: 70px;
    background-color:lightgreen;
}

.mini-counts
{
    height: 25px;
    font-size: 190%;
    font-weight: bold;
    text-align: center;
}
</style>



<script language="javascript" type="text/javascript">
function SelectRadioButton(regexPattern, selectedRadioButton)
    {
        regex = new RegExp(regexPattern);
        for (i = 0; i < document.forms[0].elements.length; i++)
        {
            element = document.forms[0].elements[i];
            if (element.type == 'radio' && regex.test(element.name))
            {
                element.checked = false;
            }
        }
        selectedRadioButton.checked = true;
    }
    
function GetvalueXML()
{
    var gvControl = document.getElementById('ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_GvContents');
    var gvControlID = 'ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_GvContents';
    var p;
    p = 0;
    var XMLStr = "<ParametersDS>"
    for (i = 0; i < gvControl.rows.length -1 ; i = i + 1) {
         XMLStr += "<Item>"
        if (parseInt(i + 2) <= 9)
            midfix = '0' + parseInt(i + 2);
        else
            midfix = parseInt(i + 2);
        
        if(document.getElementById(gvControlID + '_ctl' + midfix + '_txtSetupField'))
        {
            var id = document.getElementById(gvControlID + '_ctl' + midfix + '_txtSetupField').value;
            var cnttype = document.getElementById(gvControlID + '_ctl' + midfix + '_txtControlType').value;
            var oldval = document.getElementById(gvControlID + '_ctl' + midfix + '_txtFieldValue').value;
            XMLStr += '<FieldName>'+validjxlString(id) + '</FieldName>'
            var ival;    
            if(document.getElementById(gvControlID + '_ctl' + midfix + "_" +id))
            {
                if(cnttype.toUpperCase() =='CHECKBOX' || cnttype.toUpperCase() =='RADIOBUTTON')
                {
                    if(document.getElementById(gvControlID + '_ctl' + midfix + "_" +id).checked)
                        ival = '1';
                    else
                        ival = '0';
                }    
                if(cnttype.toUpperCase() =='OPTION')
                {
                    if(document.getElementById(gvControlID + '_ctl' + midfix + "_" +id).attributes['type'] != undefined)
                    {
                        if(document.getElementById(gvControlID + '_ctl' + midfix + "_" +id).attributes['type'].value == 'RadioButtonList')
                        {
                           var lt = document.getElementById(gvControlID + '_ctl' + midfix + "_" +id)
                           for (k = 0; k < lt.rows.length ; k = k + 1) 
                           {
                                if (document.getElementById(gvControlID + '_ctl' + midfix + "_" +id+"_"+k))
                                {
                                    if(document.getElementById(gvControlID + '_ctl' + midfix + "_" +id+"_"+k).checked == true)
                                    {
                                        ival = document.getElementById(gvControlID + '_ctl' + midfix + "_" +id+"_"+k).value;
                                    }
                                }
                           }
                        }
                    }
                }
            }
            else
                ival = '0';
            
            XMLStr += '<FieldValue>'+ ival + '</FieldValue>'
            XMLStr += '<OldFieldValue>'+ oldval + '</OldFieldValue>'
        }  
        XMLStr += " </Item>"
    }
    XMLStr += "</ParametersDS>"
    document.getElementById('ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_txtSetupXml').value=XMLStr;
    return true;
}
function validjxlString(s){
   var r =  new String(s.replace(/&/g, '&').replace(/</g, '<').replace(/>/g, '>').replace(/\'/g,"'").replace(/\"/g,""").replace(/\\/g,"\"));
   return r;
}
</script>
<div id="ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_div" class="pad" style="margin-top: 5px; margin-bottom: 5px;">
<table width="100%" cellspacing="0" cellpadding="0" >
    <tr>
        <td>
            <table id="ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_dlCount" cellspacing="0" border="0" style="border-collapse:collapse;">
	<tr>
		<td>
                    <div class='views'
                         title='' >
                        <div class="mini-counts" >
                            0
                        </div>
                        <div align="center">
                           Liked<br>
                        </div>
                    </div>
                </td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>
	</tr>
</table>
        </td>
    </tr>
    <tr id="ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_trSubmit1">
	<td>
            <hr />
            <br />
        </td>
</tr>

    <tr>
        <td>
            <div>

</div>
        </td>
    </tr>
    <tr>
        <td>
            <div>
	<table cellspacing="0" border="0" id="ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_GvContents" style="border-style:None;width:100%;border-collapse:collapse;border: none">
		<tr style="border-style:None;">
			<th scope="col" style="border-width:0px;border-style:None;">
                            <div class="ItemsArea">
                        </th>
		</tr><tr style="border-style:None;">
			<td style="border-width:1px;border-style:None;">
                            <input name="ctl00$ctl00$bcr$bcr$ctl07$ctl02$DynamicPostAction$GvContents$ctl02$txtSetupField" type="text" value="ShowPostToFB" id="ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_GvContents_ctl02_txtSetupField" style="border-width:0px;border-style:None;height:0px;width:0px;display: none;" />
                            <input name="ctl00$ctl00$bcr$bcr$ctl07$ctl02$DynamicPostAction$GvContents$ctl02$txtFieldValue" type="text" value="1" id="ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_GvContents_ctl02_txtFieldValue" style="border-width:0px;border-style:None;height:0px;width:0px;display: none;" />
                            <input name="ctl00$ctl00$bcr$bcr$ctl07$ctl02$DynamicPostAction$GvContents$ctl02$txtControlType" type="text" value="CHECKBOX" id="ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_GvContents_ctl02_txtControlType" style="border-width:0px;border-style:None;height:0px;width:0px;display: none;" />                                
                            <input id="ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_GvContents_ctl02_ShowPostToFB" type="checkbox" name="ctl00$ctl00$bcr$bcr$ctl07$ctl02$DynamicPostAction$GvContents$ctl02$ShowPostToFB" checked="checked" /><label for="ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_GvContents_ctl02_ShowPostToFB">Post this to my facebook wall</label>
                        </td>
		</tr><tr style="border-style:None;">
			<td style="border-width:1px;border-style:None;">
                            <input name="ctl00$ctl00$bcr$bcr$ctl07$ctl02$DynamicPostAction$GvContents$ctl03$txtSetupField" type="text" value="ShowPostToTwitter" id="ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_GvContents_ctl03_txtSetupField" style="border-width:0px;border-style:None;height:0px;width:0px;display: none;" />
                            <input name="ctl00$ctl00$bcr$bcr$ctl07$ctl02$DynamicPostAction$GvContents$ctl03$txtFieldValue" type="text" value="1" id="ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_GvContents_ctl03_txtFieldValue" style="border-width:0px;border-style:None;height:0px;width:0px;display: none;" />
                            <input name="ctl00$ctl00$bcr$bcr$ctl07$ctl02$DynamicPostAction$GvContents$ctl03$txtControlType" type="text" value="CHECKBOX" id="ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_GvContents_ctl03_txtControlType" style="border-width:0px;border-style:None;height:0px;width:0px;display: none;" />                                
                            <input id="ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_GvContents_ctl03_ShowPostToTwitter" type="checkbox" name="ctl00$ctl00$bcr$bcr$ctl07$ctl02$DynamicPostAction$GvContents$ctl03$ShowPostToTwitter" checked="checked" /><label for="ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_GvContents_ctl03_ShowPostToTwitter">Tweet this</label>
                        </td>
		</tr><tr style="border-style:None;">
			<td style="border-width:1px;border-style:None;">
                            <input name="ctl00$ctl00$bcr$bcr$ctl07$ctl02$DynamicPostAction$GvContents$ctl04$txtSetupField" type="text" value="liked" id="ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_GvContents_ctl04_txtSetupField" style="border-width:0px;border-style:None;height:0px;width:0px;display: none;" />
                            <input name="ctl00$ctl00$bcr$bcr$ctl07$ctl02$DynamicPostAction$GvContents$ctl04$txtFieldValue" type="text" value="1" id="ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_GvContents_ctl04_txtFieldValue" style="border-width:0px;border-style:None;height:0px;width:0px;display: none;" />
                            <input name="ctl00$ctl00$bcr$bcr$ctl07$ctl02$DynamicPostAction$GvContents$ctl04$txtControlType" type="text" value="Checkbox" id="ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_GvContents_ctl04_txtControlType" style="border-width:0px;border-style:None;height:0px;width:0px;display: none;" />                                
                            <input id="ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_GvContents_ctl04_liked" type="checkbox" name="ctl00$ctl00$bcr$bcr$ctl07$ctl02$DynamicPostAction$GvContents$ctl04$liked" checked="checked" /><label for="ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_GvContents_ctl04_liked">Like this</label>
                        </td>
		</tr>
	</table>
</div>
        </td>
    </tr>
    <tr>
        <td>
            <textarea name="ctl00$ctl00$bcr$bcr$ctl07$ctl02$DynamicPostAction$txtSetupXml" rows="2" cols="20" id="ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_txtSetupXml" class="wmd-ignore" style="height:0px;width:0px;display: none;"></textarea>
            <br />    
        </td>
    </tr>
    
    <tr id="ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_trSubmit">
	<td>
            <table style="background-color: #63839b; margin-bottom: 3px;" cellpadding="0" border="0"
                cellspacing="0" width="100">
                <tr>
                    <td width="1" height="1" style="background-color: #fff;">
                    </td>
                    <td>
                    </td>
                    <td width="1" height="1" style="background-color: #fff;">
                    </td>
                </tr>
                <tr>
                    <td>
                    </td>
                    <td style="padding: 3px;" align="center">
                        <a onclick="return GetvalueXML();" id="ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_btnSubmit" href="javascript:__doPostBack('ctl00$ctl00$bcr$bcr$ctl07$ctl02$DynamicPostAction$btnSubmit','')" style="color: #fff; text-decoration: none;
                            padding: 5px 13px; font-size: 16px; display: block;">Submit</a>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td width="1" height="1" style="background-color: #fff;">
                    </td>
                    <td style="background-color: #4e6f8A">
                    </td>
                    <td width="1" height="1" style="background-color: #fff;">
                    </td>
                </tr>
            </table>
        </td>
</tr>

</table>
</div> 
<div id="ctl00_ctl00_bcr_bcr_ctl07_ctl02_DynamicPostAction_div2" style="margin-top: 5px; margin-bottom: 5px;">
</div> 


			</div >
           
    
    
			<div >
				
<script src="http://beyondrelational.com/external/js/prototype.js" type="text/javascript"></script>
<script type="text/javascript">
    window['wmd_options'] = {
        output: "Markdown"
    };
</script>

<script language="javascript" type="text/javascript">
var AnsId;
var ActionId;
function ReportAbouse(id,username,postsubtype)
{
   var pars = 'id='+id+'&type=reportabouse&username=' + username + '&posttype=ask&postsubtype='+ postsubtype;
   var request = new Ajax.Request(
	        'http://beyondrelational.com/external/PostIssues.aspx', 
	        {
		        method: 'get', 
		        parameters: pars, 
		        onComplete: onReportAbouseComplete.bind(this)
	        });
}
function onReportAbouseComplete(originalRequest)
{	
   var value = eval(originalRequest.responseText);  
}
function ReportFormattingIssue(id,username,postsubtype)
{
   var pars = 'id='+id+'&type=reportformatting&username=' + username + '&posttype=ask&postsubtype='+ postsubtype;
   var request = new Ajax.Request(
	        'http://beyondrelational.com/external/PostIssues.aspx', 
	        {
		        method: 'get', 
		        parameters: pars, 
		        onComplete: onReportFormattingIssueComplete.bind(this)
	        });
}
function onReportFormattingIssueComplete(originalRequest)
{	
   var value = eval(originalRequest.responseText);  
}
function Validate(obj)
{
    if(document.getElementById(obj).value=='')
    {
        alert('Please provide your reply');
        return false;
    }
    return true;    
}
var DisID;
function DiscussionAction(ModuleId , GroupId ,SubType ,PostId ,UserName ,DiscussionID , Act, ActionType)
{
   DisID = DiscussionID;
   var pg = document.getElementById('ctl00_ctl00_bcr_bcr_ctl08_ctl02_ModuleDiscussion_txtPageNumber').value;
   var pars = 'ModuleId='+ ModuleId +'&GroupId=' + GroupId + '&SubType=' + SubType + '&PostId=' + PostId  + '&UserName=' + UserName + '&DiscussionID='+ DiscussionID+ '&Action=' + Act + '&ActionType='+ ActionType + '&PageNumber='+ pg ;
   var request = new Ajax.Request(
	        'http://beyondrelational.com/external/ModuleDiscussionActions.aspx', 
	        {
		        method: 'get', 
		        parameters: pars, 
		        onComplete: onDiscussionActionComplete.bind(this)
	        });
}
function onDiscussionActionComplete(originalRequest)
{	
   var value = originalRequest.responseText;  
   var lnkMark = document.getElementById('lblActions_'+ DisID); 
   lnkMark.innerHTML = value;
}
</script>

<script type="text/javascript" src="http://beyondrelational.com/External/js/wmd.js"></script>

<style type="text/css"> 
.buttonblue {
    font-family: Trebuchet MS,Liberation Sans,DejaVu Sans,sans-serif;
    font-size: 130%;
    font-weight: bold;
    border-top-width: 1px;
    border-top-style: solid;
    border-top-color: #888888;
    
    border-bottom-style: solid;
    border-bottom-width: 1px;
    border-bottom-color: #888888;
    
    border-right-width-value: 1px;
    border-right-width-ltr-source: physical;
    border-right-width-rtl-source: physical;
    border-right-style-value: solid;
    border-right-style-ltr-source: physical;
    border-right-style-rtl-source: physical;
    border-right-color-value: #888888;
    border-right-color-ltr-source: physical;
    border-right-color-rtl-source: physical;
    
    border-left-width-value: 2px;
    border-left-width-ltr-source: physical;
    border-left-width-rtl-source: physical;
    border-left-style-value: solid;
    border-left-style-ltr-source: physical;
    border-left-style-rtl-source: physical;
    border-left-color-value: #888888;
    border-left-color-ltr-source: physical;
    border-left-color-rtl-source: physical;
    
    padding-top: 2px;
    padding-right: 2px;
    padding-bottom: 2px;
    padding-left: 2px;
    margin-top: 3px;
    margin-right: 3px;
    margin-bottom: 3px;
    margin-left: 3px;
    cursor: pointer;
}
.myClass{clear:both;padding:3px;border:2px dotted #ccc;font-size:107%;line-height:130%;width:98%;}
.myClass p{word-wrap:break-word;}
.answer {
	font-family: 'Lucida Grande', sans-serif; 
	font-size: 16px; 
	font-weight: bold; 
	color: #a72323; 
	margin: 0 0 4px 0; 
	padding: 0 0 4px 0; 
}
.score {
	font-family: 'Lucida Grande', sans-serif; 
	font-size: 20px; 
	text-decoration: underline;
	color: #a72323; 
	margin: 0 0 0 0; 
	padding: 0 0 0 0; 
}
.scorevalue {
	font-family: 'Lucida Grande', sans-serif; 
	font-size: 30px; 
	font-weight: bold; 
	color: gray; 
	padding-left: 15px;
	padding-top: 2px;
}
.ItemsArea
{
	margin: 0;
}
.ItemArea
{
	margin: 4px 0;
	background-repeat: no-repeat;
	background-position: 10px 10px;
	padding: 10px 10px 10px 70px;
	min-height: 100px;
}
.ItemArea.Alt
{
	background-color: #F8F8F8;
}

.ItemArea.Custom
{
	padding-left: 0px;
}
.ItemCustomAvatar
{
	float: left;
	padding-left: 10px;
	width: 40px;
	height: 100px;
	overflow: hidden;
}
.CustomContent
{
	margin-left: 60px;
}
.Item
{
	font-size: 14px;
	font-family:Helvetica, Arial, Verdana, sans-serif;
}
UL.ItemList
{
	margin: 0;
	padding: 0;
	list-style-type: none;
}
.posttitle {
	font-family: 'Lucida Grande', sans-serif; 
	font-size: 16px; 
	font-weight: bold; 
	color: #a72323; 
	margin: 0 0 4px 0; 
	padding: 0 0 4px 0; 
}
.ForumPostTitle
{
	font-size: 100%;
	font-weight: normal;
	color: #666;
	float: left;
	margin: 0px 0px 0px 0px;
	width: 100%;
	border-bottom: dotted 1px #DEE9FE;
	padding-top: 6px;
	padding-bottom: 0;
}
.posttitle1
{
	margin: 0px 0 0 0;
	color: #000;
	font-size: 80%;
	border-bottom: 1px dotted #cbcbcb;
}
</style>
<table width="100%" cellspacing="0" cellpadding="0">
    
    
    
    
    <tr id="ctl00_ctl00_bcr_bcr_ctl08_ctl02_ModuleDiscussion_trSubmitAnswer">
	<td colspan="2">
            <h2 class="homepagetitle">
                <span id="ctl00_ctl00_bcr_bcr_ctl08_ctl02_ModuleDiscussion_lblCommentCation">Your Comment</span></h2>
            <br />
            <textarea name="ctl00$ctl00$bcr$bcr$ctl08$ctl02$ModuleDiscussion$txtAnswerDetails" rows="10" cols="20" id="ctl00_ctl00_bcr_bcr_ctl08_ctl02_ModuleDiscussion_txtAnswerDetails" style="width:98%;font-family=helvetica, arial, verdana, sans-serif;"></textarea>
        </td>
</tr>

    <tr id="ctl00_ctl00_bcr_bcr_ctl08_ctl02_ModuleDiscussion_trSubmitAnswer1">
	<td colspan="2">
            <div class="myClass">
                <div class="wmd-preview">
                </div>
            </div>
        </td>
</tr>

    <tr id="ctl00_ctl00_bcr_bcr_ctl08_ctl02_ModuleDiscussion_trnotloggedin">
	<td colspan="2">
            <div class="CommonMessageWelcome">
                <span id="ctl00_ctl00_bcr_bcr_ctl08_ctl02_ModuleDiscussion_lblLogin"><font color='red'><b><a href='http://beyondrelational.com/user/CreateUser.aspx?ReturnUrl=http://beyondrelational.com/modules/19/tsql-beginners/332/solutions/4465/solution-to-tsql-beginners-challenge-19.aspx '>Sign Up</a> or <a href='http://beyondrelational.com/login.aspx?ReturnUrl=http://beyondrelational.com/modules/19/tsql-beginners/332/solutions/4465/solution-to-tsql-beginners-challenge-19.aspx'> Login</a> to post a comment. </b></font></span>
            </div>
        </td>
</tr>

    
    
    <tr>
        <td colspan="2">
            <hr/>    
        </td>
    </tr>
</table>

			</div>
			<div>
				<span id="ctl00_ctl00_bcr_bcr_ctl08_ctl02_DynamicPostFooter_lblMicroFormat"></span>
<span id="ctl00_ctl00_bcr_bcr_ctl08_ctl02_DynamicPostFooter_lblGoogleProfile"></span>
			</div>
           
    
       

    </div>

            </div>
        </div>
        <div style="clear: both;">
        </div>
        
    </div>
    <div id="CommonFooter">
       
            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr>
                    <td align="left" class="bottombgstyle">
                            Copyright © Rivera Informatic Private Ltd
                    </td>
                    <td align="right" class="bottombgstyle">
                        
<a href="mailto:webmaster@beyondrelational.com" style="color: White;" class="lnkStyle">Contact us</a>     
<a href="http://beyondrelational.com/modules/23/pages/362/posts/7157/privacy-policy-beyondrelationalcom.aspx" style="color: White;" class="lnkStyle">Privacy Policy</a>     
<a href="http://beyondrelational.com/modules/23/pages/362/posts/7156/terms-of-usage-beyondrelationalcom.aspx" style="color: White;" class="lnkStyle">Terms of use</a>     
<a href="mailto:abuse@beyondrelational.com" style="color: White;" class="lnkStyle">Report Abuse</a>     
<a href="mailto:advertise@beyondrelational.com" style="color: White;" class="lnkStyle">Advertising</a>     

                    </td>
                    <td align="right" class="bottombgstyle">
                       [ZULU1097]
                    </td>
                </tr>
            </table>
        </div>
    </div>
    
<script type="text/javascript">
// <![CDATA[
Telligent_Modal.Configure('/live/utility/loading.htm',['CommonModal'],['CommonModalTitle'],['CommonModalClose'],['CommonModalContent'],['CommonModalFooter'],['CommonModalResize'],['CommonModalMask'],100,false,true);
// ]]>
</script><script type="text/javascript">
<!--
function KeyDownHandlerctl00_ctl00_sr_ctl00_ctl00_TitleBarSearchButton(event)
{
	if (event.keyCode == 13)
	{
		event.returnValue = false;
		event.cancel = true;
     __doPostBack('ctl00$ctl00$sr$ctl00$ctl00$TitleBarSearchButton','')
   return false;
	}
}

//-->
</script>
<script type="text/javascript">
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-9085790-1']);
  _gaq.push(['_setDomainName', '.beyondrelational.com']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>

<script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script></form>
    
</body>
</html>