<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:www.nabble.com,2006:forum-15447</id>
	<title>Nabble - JReport</title>
	<updated>2006-05-29T23:46:55Z</updated>
	<link rel="self" type="application/atom+xml" href="http://www.nabble.com/JReport-f15447.xml" />
	<link rel="alternate" type="text/html" href="http://www.nabble.com/JReport-f15447.html" />
	<subtitle type="html"></subtitle>
	
<entry>
	<id>tag:www.nabble.com,2006:post-4639916</id>
	<title>Re: problem with mysql  deatediff in ireport</title>
	<published>2006-05-29T23:46:55Z</published>
	<updated>2006-05-29T23:46:55Z</updated>
	<author>
		<name>Vijay-21</name>
	</author>
	<content type="html">alfa &amp;lt;sneha_nrao7@...&amp;gt; writes:
&lt;br&gt;&lt;div class='shrinkable-quote'&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Hi 
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Here is my sql query
&lt;br&gt;&amp;gt; select a.rmaid, CompanyName, arrivaldate, despatchdate,
&lt;br&gt;&amp;gt; datediff(despatchdate,arrivaldate) 'NoOfDays', Orderdate,proddesc from
&lt;br&gt;&amp;gt; rmatable a, company b, companyorder c, product d,
&lt;br&gt;&amp;gt; rmatable_product e where &amp;nbsp; a.companyid = b.companyid and a.rmaid = c.rmaid
&lt;br&gt;&amp;gt; and a.companyid = c.companyid and
&lt;br&gt;&amp;gt; a.rmaid = e.rmaid and d.prodid = e.prodid and month(despatchdate) = &amp;nbsp;
&lt;br&gt;&amp;gt; (month(curdate())-1);
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; this query is working fine with i report. but when i try to display
&lt;br&gt;&amp;gt; 'NoOfDays' field in the report i cannot generate the report. i get error
&lt;br&gt;&amp;gt; while compiling. if i don't include this field in the report then report
&lt;br&gt;&amp;gt; runs fine. 'NoOfDays' is alias name.
&lt;br&gt;&amp;gt; doen anyone know the reason? please let me know.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; Thanks
&lt;br&gt;&amp;gt; --
&lt;br&gt;&amp;gt; View this message in context: 
&lt;/div&gt;&lt;a href=&quot;http://www.nabble.com/problem+with+mysql++deatediff+in+ireport-&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/problem+with+mysql++deatediff+in+ireport-&lt;/a&gt;&lt;br&gt;t1679426.html#a4554225
&lt;br&gt;&amp;gt; Sent from the JReport forum at Nabble.com.
&lt;br&gt;&amp;gt; 
&lt;br&gt;&amp;gt; -------------------------------------------------------
&lt;br&gt;&amp;gt; All the advantages of Linux Managed Hosting--Without the Cost and Risk!
&lt;br&gt;&amp;gt; Fully trained technicians. The highest number of Red Hat certifications in
&lt;br&gt;&amp;gt; the hosting industry. Fanatical Support. Click to learn more
&lt;br&gt;&amp;gt; &lt;a href=&quot;http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=107521&amp;bid=248729&amp;dat=121642&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=107521&amp;bid=248729&amp;dat=121642&lt;/a&gt;&lt;br&gt;&amp;gt; 
&lt;br&gt;&lt;br&gt;Hi,
&lt;br&gt;I went through your query and it looks as if you are getting the problem since 
&lt;br&gt;you are giving 'NoOfDays' (within single quotes). Instead try giving without 
&lt;br&gt;the single quotes as below.
&lt;br&gt;&lt;br&gt;datediff(despatchdate,arrivaldate) NoOfDays,
&lt;br&gt;&lt;br&gt;In case if that was helpful mail a feedback to me...
&lt;br&gt;Regards,
&lt;br&gt;Vijay
&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-------------------------------------------------------
&lt;br&gt;All the advantages of Linux Managed Hosting--Without the Cost and Risk!
&lt;br&gt;Fully trained technicians. The highest number of Red Hat certifications in
&lt;br&gt;the hosting industry. Fanatical Support. Click to learn more
&lt;br&gt;&lt;a href=&quot;http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=107521&amp;bid=248729&amp;dat=121642&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://sel.as-us.falkag.net/sel?cmd=lnk&amp;kid=107521&amp;bid=248729&amp;dat=121642&lt;/a&gt;&lt;br&gt;_______________________________________________
&lt;br&gt;jasperreports-questions mailing list
&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=4639916&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jasperreports-questions@...&lt;/a&gt;
&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jasperreports-questions&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jasperreports-questions&lt;/a&gt;&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/problem-with-mysql--deatediff-in-ireport-tp4554225p4639916.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-4579871</id>
	<title>Re: problem with mysql deatediff in ireport</title>
	<published>2006-05-26T10:46:51Z</published>
	<updated>2006-05-26T10:46:51Z</updated>
	<author>
		<name>Dex Madden</name>
	</author>
	<content type="html">Does it work from mysql command line or query browser gui?&lt;br&gt;Shouldn't you have an AS before the alias?&lt;br&gt;&lt;br&gt;datediff(despatchdate,arrivaldate) AS 'NoOfDays'&lt;br&gt;&lt;br&gt;&lt;div&gt;&lt;span class=&quot;gmail_quote&quot;&gt;On 5/25/06, &lt;b class=&quot;gmail_sendername&quot;&gt;
alfa&lt;/b&gt; &amp;lt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=4579871&amp;i=0&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;sneha_nrao7@...&lt;/a&gt;&amp;gt; wrote:&lt;/span&gt;&lt;blockquote class=&quot;gmail_quote&quot; style=&quot;border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;&quot;&gt;
&lt;br&gt;Hi&lt;br&gt;&lt;br&gt;Here is my sql query&lt;br&gt;select a.rmaid, CompanyName, arrivaldate, despatchdate,&lt;br&gt;datediff(despatchdate,arrivaldate) 'NoOfDays', Orderdate,proddesc from&lt;br&gt;rmatable a, company b, companyorder c, product d,&lt;br&gt;
rmatable_product e where&amp;nbsp;&amp;nbsp; a.companyid = b.companyid and a.rmaid = c.rmaid&lt;br&gt;and a.companyid = c.companyid and&lt;br&gt;a.rmaid = e.rmaid and d.prodid = e.prodid and month(despatchdate) =&lt;br&gt;(month(curdate())-1);&lt;br&gt;&lt;br&gt;this query is working fine with i report. but when i try to display
&lt;br&gt;'NoOfDays' field in the report i cannot generate the report. i get error&lt;br&gt;while compiling. if i don't include this field in the report then report&lt;br&gt;runs fine. 'NoOfDays' is alias name.&lt;br&gt;doen anyone know the reason? please let me know.
&lt;br&gt;&lt;br&gt;Thanks&lt;br&gt;--&lt;br&gt;View this message in context: &lt;a href=&quot;http://www.nabble.com/problem+with+mysql++deatediff+in+ireport-t1679426.html#a4554225&quot; target=&quot;_top&quot;&gt;http://www.nabble.com/problem+with+mysql++deatediff+in+ireport-t1679426.html#a4554225
&lt;/a&gt;&lt;br&gt;Sent from the JReport forum at &lt;a href=&quot;http://Nabble.com&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;Nabble.com&lt;/a&gt;.&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;-------------------------------------------------------&lt;br&gt;All the advantages of Linux Managed Hosting--Without the Cost and Risk!
&lt;br&gt;Fully trained technicians. The highest number of Red Hat certifications in&lt;br&gt;the hosting industry. Fanatical Support. Click to learn more&lt;br&gt;&lt;a href=&quot;http://sel.as-us.falkag.net/sel?cmd=lnk&amp;amp;kid=107521&amp;amp;bid=248729&amp;amp;dat=121642&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;
http://sel.as-us.falkag.net/sel?cmd=lnk&amp;amp;kid=107521&amp;amp;bid=248729&amp;amp;dat=121642&lt;/a&gt;&lt;br&gt;_______________________________________________&lt;br&gt;jasperreports-questions mailing list&lt;br&gt;&lt;a href=&quot;http://www.nabble.com/user/SendEmail.jtp?type=post&amp;post=4579871&amp;i=1&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;jasperreports-questions@...&lt;/a&gt;&lt;br&gt;&lt;a href=&quot;https://lists.sourceforge.net/lists/listinfo/jasperreports-questions&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;https://lists.sourceforge.net/lists/listinfo/jasperreports-questions&lt;/a&gt;&lt;br&gt;&lt;/blockquote&gt;
&lt;/div&gt;&lt;br&gt;
</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/problem-with-mysql--deatediff-in-ireport-tp4554225p4579871.html" />
</entry>

<entry>
	<id>tag:www.nabble.com,2006:post-4554225</id>
	<title>problem with mysql  deatediff in ireport</title>
	<published>2006-05-24T23:06:20Z</published>
	<updated>2006-05-24T23:06:20Z</updated>
	<author>
		<name>alfa</name>
	</author>
	<content type="html">Hi 
&lt;br&gt;&lt;br&gt;Here is my sql query
&lt;br&gt;select a.rmaid, CompanyName, arrivaldate, despatchdate, datediff(despatchdate,arrivaldate) 'NoOfDays', Orderdate,proddesc from rmatable a, company b, companyorder c, product d,
&lt;br&gt;rmatable_product e where &amp;nbsp; a.companyid = b.companyid and a.rmaid = c.rmaid and a.companyid = c.companyid and
&lt;br&gt;a.rmaid = e.rmaid and d.prodid = e.prodid and month(despatchdate) = &amp;nbsp; (month(curdate())-1);
&lt;br&gt;&lt;br&gt;this query is working fine with i report. but when i try to display 'NoOfDays' field in the report i cannot generate the report. i get error while compiling. if i don't include this field in the report then report runs fine. 'NoOfDays' is alias name.
&lt;br&gt;doen anyone know the reason? please let me know.
&lt;br&gt;&lt;br&gt;Thanks</content>
	<link rel="alternate" type="text/html" href="http://www.nabble.com/problem-with-mysql--deatediff-in-ireport-tp4554225p4554225.html" />
</entry>

</feed>
