SQL Faq
SQL Faq
(2) How do I list all the indexes created for a particular table (say EMP)?
WHERE TABLE_NAME='EMP';
(3) How do I list all constraints created for a particular table (say EMP)?
WHERE TABLE_NAME='EMP';
(4) Create one table from another table without copying the data from the first table.
(6) What is the default format of date in Oracle? How can I change my default date
format?
DD-MON-RR
9) What is a synonym?
15) What is the meaning of “i” and “g” in 9i & 10g respectively?
16) What is the purpose of joining the tables? Explain different types of Joins.
(31) Display the Department Names that are having more than 4 employees in it?
UPDATE EMP
SET SAL=SAL+SAL*0.1
WHERE DEPTNO IN(SELECT DEPTNO FROM DEPT)
Table1
Table2
Deptno
10
40
1. How does one get the time difference between two date columns?