Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


If an unique key constraint on DATE column is created, will
it validate the rows that are inserted with SYSDATE?

Answers were Sorted based on User's Feedback



If an unique key constraint on DATE column is created, will it validate the rows that are inserted..

Answer / kangana

uNIQUE CONSTARINT CAN VALIDATE PSEUDOCLOUMN SYSDATE

SYSDATE FORMAT IS LIKE 3/2/2010 8:42:46 PM

SO FOR EACH MILLISECOND IF U INSER A ROW IT WILL TAKE THE
INSERTION BUT IF U INSERT IN EACH FRACTION OF MILLISECOND
ITS VALIDATE AND UNIQUE CONSTARINT IS VOILATED.

Is This Answer Correct ?    14 Yes 0 No

If an unique key constraint on DATE column is created, will it validate the rows that are inserted..

Answer / nagendra

Yes, it will validate the rows that are inserted with sysdate

Is This Answer Correct ?    9 Yes 3 No

If an unique key constraint on DATE column is created, will it validate the rows that are inserted..

Answer / zikku

No Date column can not validate the rows that are inserted
with sysdate.

Is This Answer Correct ?    5 Yes 3 No

If an unique key constraint on DATE column is created, will it validate the rows that are inserted..

Answer / chandrasekar ramasamy

No B'coz the sysdate contains date and time format

Is This Answer Correct ?    5 Yes 3 No

Post New Answer

More SQL PLSQL Interview Questions

discuss about myisam key cache. : Sql dba

0 Answers  


how will u find statistics of a database objects?

2 Answers   iFlex,


What are stored procedures used for?

0 Answers  


Describe types of sql statements?

0 Answers  


Is primary key an index?

0 Answers  


What does data normalization mean?

0 Answers  


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;

2 Answers  


How do I sort a table in sql?

0 Answers  


In what condition is it good to disable a trigger?

0 Answers  


Why use truncate instead of delete?

0 Answers  


What are the advantages and disadvantages, compared to the standard SQL and SQL*plus ?

2 Answers  


What is Difference between StoredProcedure and function?

3 Answers  


Categories