<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2" -->
<rss version="2.0">
    <channel>
        <title>Lowyat.NET: Latest topics by dennisooi</title>
        <description></description>
        <link>http://forum.lowyat.net/</link>
        <lastBuildDate>Sun, 27 Sep 2026 04:41:50 +0800</lastBuildDate>
        <generator>FeedCreator 1.7.2</generator>
        <item>
            <title>Home Sweet Home for your Pets &amp;#33;</title>
            <link>http://forum.lowyat.net/topic/2173908</link>
            <description>The new concept of Pets house in malaysia. Home sweet home for your pets. &lt;br /&gt;So, hurry and give your pet a better home today&amp;#33;&lt;br /&gt;&lt;br /&gt;More info please visit us at www.chillipets.com or www.facebook.com/chillipets&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;More image at &lt;a href='http://www.chillipets.com/?p=317' target='_blank'&gt;http://www.chillipets.com/?p=317&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Thank you&lt;br /&gt;</description>
            <author>dennisooi</author>
            <category>Pets Wonderland</category>
            <pubDate>Mon, 02 Jan 2012 19:27:59 +0800</pubDate>
        </item>
        <item>
            <title>oracle</title>
            <link>http://forum.lowyat.net/topic/274349</link>
            <description>&lt;!--emo&amp;:help:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/icon_question.gif' border='0' style='vertical-align:middle' alt='icon_question.gif' /&gt;&lt;!--endemo--&gt; really dunno how to solve the mutating error....hope any buddy know can helpme..thank..below is my coding....&lt;br /&gt;&lt;br /&gt;&lt;b&gt;The table name: instructor&lt;/b&gt;&lt;br /&gt;INSTRUCTOR_ID INSTRUCTOR_NAME    SALARY COMMISSION MENTOR_ID DATE_HIRE&lt;br /&gt;------------- --------------- --------- ---------- --------- ---------&lt;br /&gt;          700 WAYNE                4500        300           16-MAY-81&lt;br /&gt;          628 MONROE               3000                  700 16-JUN-84&lt;br /&gt;          790 NEWMAN               3100        300       700 16-DEC-82&lt;br /&gt;          795 BOGART               3200                  700 16-DEC-83&lt;br /&gt;          515 SHELLEY              3500        200       700 20-JAN-91&lt;br /&gt;          222 CAINE                5500        350           02-NOV-76&lt;br /&gt;          978 STEEL                5000        250       222 16-JAN-80&lt;br /&gt;          560 LAUREL               5200        200       978 16-DEC-83&lt;br /&gt;          835 SPARKS               4000        200       978 16-DEC-84&lt;br /&gt;          243 TUCKER               2000                  835 18-DEC-90&lt;br /&gt;          263 JOHNSON              4000                  835 18-JUL-92&lt;br /&gt;          453 LODGE                2500        100       835 14-SEP-98&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Procedure:&lt;/b&gt;&lt;br /&gt;CREATE OR REPLACE PROCEDURE question2_pro&lt;br /&gt;(y_InstructorId IN   	instructor.instructor_id%TYPE,&lt;br /&gt; y_ServiceYears OUT 	NUMBER,&lt;br /&gt; y_Salary  	OUT  	instructor.salary%TYPE)&lt;br /&gt;&lt;br /&gt;IS&lt;br /&gt;BEGIN&lt;br /&gt;&lt;br /&gt;  select months_between(sysdate, date_hired)/12, salary &lt;br /&gt;  into y_ServiceYears, y_Salary from instructor&lt;br /&gt;  where instructor_id = y_InstructorId;&lt;br /&gt;&lt;br /&gt;END question2_pro;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Triggle:&lt;/b&gt;&lt;br /&gt;CREATE OR REPLACE TRIGGER question2_tri&lt;br /&gt;AFTER INSERT OR UPDATE OF mentor_id ON instructor&lt;br /&gt;FOR EACH ROW&lt;br /&gt;DECLARE&lt;br /&gt;&lt;br /&gt;   V_SYears NUMBER;&lt;br /&gt;   V_Salary instructor.salary%TYPE;&lt;br /&gt;   V_Count NUMBER; &lt;br /&gt;BEGIN&lt;br /&gt;   /* This is to check if the new mentor_id is an existing mentor.&lt;br /&gt;      If count = 0, means it is not. */&lt;br /&gt;   SELECT count(mentor_id) INTO V_Count&lt;br /&gt;   FROM instructor&lt;br /&gt;   WHERE mentor_id = :new.g_mentor_id;&lt;br /&gt;&lt;br /&gt;   IF V_Count = 0 THEN&lt;br /&gt;      question2_pro(:NEW.mentor_id, V_SYears, V_Salary);&lt;br /&gt;&lt;br /&gt;      IF (V_SYears &amp;lt;= 20) AND (V_Salary &amp;lt;= 3400) THEN&lt;br /&gt;          RAISE_APPLICATION_ERROR (-20202, &amp;#39;Instructor:&amp;#39; || &lt;br /&gt;	    TO_CHAR(:NEW.mentor_id) || &amp;#39; cannot be a mentor.&amp;#39;);&lt;br /&gt;      END IF;&lt;br /&gt;   END IF;&lt;br /&gt;END;&lt;br /&gt;/&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Triggle create to slove the mutation error:&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;create or replace trigger checkCount&lt;br /&gt;before INSERT OR UPDATE OF mentor_id ON instructor&lt;br /&gt;for each row&lt;br /&gt;begin&lt;br /&gt;new.g_mentor_id := :NEW.mentor_id;&lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Package create to slove the mutation problem:&lt;/b&gt;&lt;br /&gt;create or replace package new as &lt;br /&gt;	g_mentor_id number; &lt;br /&gt;end;&lt;br /&gt;&lt;br /&gt;Your help wil appreaciate....thank you  &lt;!--emo&amp;:respect:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/notworthy.gif' border='0' style='vertical-align:middle' alt='notworthy.gif' /&gt;&lt;!--endemo--&gt;</description>
            <author>dennisooi</author>
            <category>Codemasters</category>
            <pubDate>Mon, 10 Apr 2006 07:42:30 +0800</pubDate>
        </item>
        <item>
            <title>oracle</title>
            <link>http://forum.lowyat.net/topic/272871</link>
            <description>1)	Design, create and test trigger(s)  to implement the following new  'business rule'&lt;br /&gt;&lt;br /&gt;To prevent any changes to the Course table  between 6pm and 8am on Weekdays (Mon-Fri), and at weekends.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Explain how  this could be made to apply to all the tables in the course database, not just the Course table.  &lt;/b&gt;								&lt;br /&gt;i jus dunno how to explain how to apply to all database table??&lt;br /&gt;any buddy can help me?? &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; &lt;!--emo&amp;:stars:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/rclxub.gif' border='0' style='vertical-align:middle' alt='rclxub.gif' /&gt;&lt;!--endemo--&gt;  &lt;!--emo&amp;:thumbs:--&gt;&lt;img src='http://static.lowyat.net/style_emoticons/default/thumbup.gif' border='0' style='vertical-align:middle' alt='thumbup.gif' /&gt;&lt;!--endemo--&gt; thank....</description>
            <author>dennisooi</author>
            <category>Codemasters</category>
            <pubDate>Thu, 06 Apr 2006 14:13:04 +0800</pubDate>
        </item>
    </channel>
</rss>
