how to retrive only second row from table?
Answers were Sorted based on User's Feedback
How many types of indexes are there in sql?
What is the use of index in sql?
What is memory optimized table?
Why do we use sql constraints?
Why use subqueries instead of joins?
Give the structure of the procedure ?
What is a package ? What are the advantages of packages ?
What is the difference between partition and index?
Initially question was asked to mention the types of indexes. Then asked about BITMAP INDEX and B-Tree Index
Write a sql to print only character form the below string. @So&*CIE%$TE@GEN!@RAL
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 are the datatypes available in pl/sql ?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)