 




<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Delete query</title>
	<atom:link href="http://itknowledgeexchange.techtarget.com/itanswers/delete-query/feed/" rel="self" type="application/rss+xml" />
	<link>http://itknowledgeexchange.techtarget.com/itanswers/delete-query/</link>
	<description></description>
	<lastBuildDate>Wed, 22 May 2013 17:12:23 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
	<item>
		<title>By: dwaltr</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/delete-query/#comment-52831</link>
		<dc:creator>dwaltr</dc:creator>
		<pubDate>Fri, 18 Apr 2008 18:40:09 +0000</pubDate>
		<guid isPermaLink="false">#comment-52831</guid>
		<description><![CDATA[Are you entering the data via a form?  If so you can use the Before Insert event (in the Form Property Sheet) to delete all the data prior to inserting the new row.  That eliminates the subquery, making your delete statement look like this:

delete from orders where audit=True and customerid = 121 (or Formname.CustomerID)

Using the formname.customerid will allow it to work for whatever customer id is on the form.]]></description>
		<content:encoded><![CDATA[<p>Are you entering the data via a form?  If so you can use the Before Insert event (in the Form Property Sheet) to delete all the data prior to inserting the new row.  That eliminates the subquery, making your delete statement look like this:</p>
<p>delete from orders where audit=True and customerid = 121 (or Formname.CustomerID)</p>
<p>Using the formname.customerid will allow it to work for whatever customer id is on the form.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mrdenny</title>
		<link>http://itknowledgeexchange.techtarget.com/itanswers/delete-query/#comment-52825</link>
		<dc:creator>mrdenny</dc:creator>
		<pubDate>Fri, 18 Apr 2008 18:10:17 +0000</pubDate>
		<guid isPermaLink="false">#comment-52825</guid>
		<description><![CDATA[Check out my SQL Server blog &quot;&lt;a href=&quot;http://itknowledgeexchange.techtarget.com/sql-server/&quot;&gt;SQL Server with Mr Denny&lt;/a&gt;&quot; for more SQL Server information.]]></description>
		<content:encoded><![CDATA[<p>Check out my SQL Server blog &#8220;<a href="http://itknowledgeexchange.techtarget.com/sql-server/">SQL Server with Mr Denny</a>&#8221; for more SQL Server information.</p>
]]></content:encoded>
	</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/10 queries in 0.039 seconds using memcached
Object Caching 281/287 objects using memcached

Served from: itknowledgeexchange.techtarget.com @ 2013-05-22 17:14:20 -->