Question : Jquery / Mootools clash

Hi,
the code below is in the header of my site.
I've got all the jquery working but the mootools is not. If i remove the query the mootools calender works. So obviously it's clashing. I've tried to use the jquery noConflict code but my jquery knowledge isn't great.
How can i get them all to work?  
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
<!-- JS -->
<script type="text/javascript" src="<?php echo $js; ?>swfobject.js"></script>
<script type="text/javascript" src="<?php echo $js; ?>mootools.js"></script>
<script type="text/javascript" src="<?php echo $js; ?>calendar.js"></script>
<script type="text/javascript" src="<?php echo $js; ?>live-validation.js"></script>
<script type="text/javascript" src="<?php echo $js; ?>jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="<?php echo $js; ?>jquery.cycle.min.js"></script>
<script type="text/javascript" src="<?php echo $js; ?>jquery.easing_compatibility.js"></script>
<script type="text/javascript" src="<?php echo $js; ?>jquery.easing.js"></script>
<script type="text/javascript" src="<?php echo $js; ?>jquery.smoothanchors2.js"></script>
<script type="text/javascript" src="<?php echo $js; ?>slide.js"></script>

<!-- Anchor scrolls -->    
<script>
jQuery(document).ready(function(){
	jQuery.smoothAnchors(1000, "swing", false);
});
</script>

<!-- Image scroll -->
<script type="text/javascript">
jQuery(document).ready(function() {
    jQuery('.slideshow').cycle({
		fx: 'fade' 
	});
});
</script>

<!-- Calendar -->
<script type="text/javascript">		
//<![CDATA[
window.addEvent('domready', function() { 
	myCal2 = new Calendar({ date: 'd/m/Y' }, { classes: ['dashboard'], direction: 1 });
});
//]]>
</script>

Answer : Jquery / Mootools clash

That should have been

update tbl
set volume = (select avg(b.volume) from tbl b where b.hr=tbl.hr-1 or b.hr=tbl.hr+1)
where volume = 0

This is too simplistic however, but it may suit your needs. It is simplistic because:

If your first hour has 0, it will copy the value directly from the next hour since there is no data prior.
If you have two or more consecutive zeroes, you will end up with some low valued data.  See this example of before/after.

Hr / Before / after
0 / 10 / 10
1 / 0 / 5
2 / 0 / 0
3 / 0 / 15
4 / 30 / 30
5 / 10 / 10
6 / 0 / 15
7 / 20 / 20
Random Solutions  
 
programming4us programming4us