How could I get distinct entries from a table?
The SELECT statement in conjunction with DISTINCT lets you select a set of distinct values from a table in a database. The values selected from the database table... Read more »
The SELECT statement in conjunction with DISTINCT lets you select a set of distinct values from a table in a database. The values selected from the database table... Read more »
You can sort the results and return the sorted results to your program by using ORDER BY keyword thus saving you the pain of carrying out the sorting yourself. The... Read more »
You could use the COUNT keyword , example SELECT COUNT(*) FROM emp WHERE age>40 Read more »
The GROUP BY keywords have been added to SQL because aggregate functions (like SUM) return the aggregate of all column values every time they are called. Without... Read more »
Dropping : (Table structure + Data are deleted), Invalidates the dependent objects ,Drops the indexes Truncating: (Data alone deleted), Performs an automatic... Read more »
Cursors allow row-by-row prcessing of the resultsets. Types of cursors: Static, Dynamic, Forward-only, Keyset-driven. See books online for more information. Disadvantages... Read more »
Triggers are special kind of stored procedures that get executed automatically when an INSERT, UPDATE or DELETE operation takes place on a table. Triggers can’t... Read more »
Joins are used in queries to explain how different tables are related. Joins also let you select data from a table depending upon data from another table. Types... Read more »
Self join is just like any other join, except that two instances of the same table will be joined in the query. Read more »
A hot backup is basically taking a backup of the database while it is still up and running and it must be in archive log mode. A cold backup is taking a backup of... Read more »
A data block is the smallest unit of logical storage for a database object. As objects grow they take chunks of additional storage that are composed of contiguous... Read more »
Disable the foreign key constraint to the parent, drop the table, re-create the table, enable the foreign key constraint. Read more »
ARCHIVELOG mode is a mode that you can put the database in for creating a backup of all transactions that have occurred in the database so that you can recover to... Read more »
STARTUP NOMOUNT - Instance startup. STARTUP MOUNT - The database is mounted. STARTUP OPEN - The database is opened Read more »
The INST_ID column which indicates the instance in a RAC environment the information came from. Read more »
Create a plan table with utlxplan.sql. Use the explain plan set statement_id = ‘tst1? into plan_table for a SQL statement. Look at the explain plan with utlxplp.sql... Read more »
Use the buffer cache advisory over a given workload and then query the v$db_cache_advice table. If a change was necessary then I would use the alter system set db_cache_size... Read more »
You get this error when you get a snapshot too old within rollback. It can usually be solved by increasing the undo retention or increasing the size of rollbacks.... Read more »
ORACLE_BASE is the root directory for oracle. ORACLE_HOME located beneath ORACLE_BASE is where the oracle products reside. Read more »