What is a sql profiler?
No Answer is Posted For this Question
Be the First to Post Answer
How do I know if I have sql express or standard?
How to call shell script from pl sql procedure?
What is the difference between a procedure and a function?
What is pl/sql and what is it used for?
What is the requirement of self-join?
what is data integrity? : Sql dba
what is d diff between grant,commit,rollback n savepoint
State some properties of relational databases?
Hi All, I am new to both this blog and technology. I was able to see a response for one of the questions on triggers as below. I would like to know why are we using " if rtrim(to_char(sysdate,'day'))=rtrim('sunday') then" instead, can't we use " if sysdate = 'sunday' then". I can understand the use of "rtrim", but dont know y v r using to_char. I have seen this in many cases but did not get a convincible explaination. Please help me with this and do excuse if this question sounds silly. Thanks in advance...... create or replace trigger trg_sun before insert on <table name> begin if rtrim(to_char(sysdate,'day'))=rtrim('sunday') then raise_application_error(-20345,'no transaction in sunday'); end if; end trg_sun;
What can I use instead of union in sql?
Define concurrency control. : Transact sql
What is composite primary key in sql?