<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>MySQL Doubts on FromDual GmbH</title><link>https://www.fromdual.com/blog/mysql-questions-and-answers/comment-147/</link><description>Recent content in MySQL Doubts on FromDual GmbH</description><generator>Hugo</generator><language>en-GB</language><managingEditor>oli.sennhauser@fromdual.com (Oli Sennhauser)</managingEditor><webMaster>oli.sennhauser@fromdual.com (Oli Sennhauser)</webMaster><copyright>© FromDual GmbH</copyright><lastBuildDate>Wed, 13 Apr 2011 08:51:09 +0200</lastBuildDate><atom:link href="https://www.fromdual.com/blog/mysql-questions-and-answers/comment-147/index.xml" rel="self" type="application/rss+xml"/><item><title>MySQL Doubts</title><link>https://www.fromdual.com/blog/mysql-questions-and-answers/comment-147/</link><pubDate>Wed, 13 Apr 2011 08:51:09 +0200</pubDate><author>oli.sennhauser@fromdual.com (Oli Sennhauser)</author><guid>https://www.fromdual.com/blog/mysql-questions-and-answers/comment-147/</guid><description>&lt;p&gt;Hi everybody
Please rectify my doubts.
In my database i have three fields as id,medicinename,quantity.
In medicine name i have many different names.Many names comes twice or thrice.Now i need to fetch the data from database for particular medicine name only(this medicine name comes nearly 10 times)say for example if the medicinename is &amp;ldquo;A&amp;rdquo; it comes in id 1,4,9,12,25.Now i want to fetch the data from id 1 only.Whent the quantity comes to &amp;ldquo;0&amp;rdquo; in id &amp;ldquo;1&amp;rdquo;,i want to fetch the datas from next id.Also when the quantity comes to &amp;ldquo;0&amp;rdquo; the row shold be deleted automatically.Please help me to do this.&lt;/p&gt;</description></item></channel></rss>