Beruflich Dokumente
Kultur Dokumente
in SQL?
Primary key
Advantages
1) It is a unique key on which all the other candidate keys are functionally dependent
Disadvantage
1) There can be more than one keys on which all the other attributes are dependent
on.
Foreign Key
Advantage
1) It allows refrencing another table using the primary key for the other table
Which date function is used to find the difference between two dates?
datediff
Which system table contains information on constraints on all the tables created ?
yes,
USER_CONSTRAINTS,
system table contains information on constraints on all the tables created
Explain normalization ?
Normalisation means refining the redundancy and maintain stablisation. there are four types
of normalisation :
first normal forms, second normal forms, third normal forms and fourth Normal forms.
How to find out the database name from SQL*PLUS command prompt?
Select * from global_name;
This will give the datbase name which u r currently connected to.....
What is diffrence between Co-related sub query and nested sub query?
Correlated subquery runs once for each row selected by the outer query. It contains a
reference to a value from the row selected by the outer query.
Nested subquery runs only once for the entire nesting (outer) query. It does not contain any
reference to the outer query row.
For example,
Correlated Subquery:
select e1.empname, e1.basicsal, e1.deptno from emp e1 where e1.basicsal = (select
max(basicsal) from emp e2 where e2.deptno = e1.deptno)
Nested Subquery:
select empname, basicsal, deptno from emp where (deptno, basicsal) in (select deptno,
max(basicsal) from emp group by deptno)
1. % and
2. _ ( underscore )
% means matches zero or more characters and under score means mathing exactly one
character
What is database?
A database is a collection of data that is organized so that itscontents can easily be accessed,
managed and updated. open this url
RDBMS have Normalization. Normalization means to refining the redundant and maintain the
stablization.
the DBMS hasn't normalization concept.