5. DBMS Owned By
MySQL, Open Source RDMS
MS Access Microsoft
Oracle Oracle Corporation(ORDMS)
Sybase SAP Company
SQL Server Microsoft (RDMS)
Postgresql Open Source RDMS
Informix IBM(RDMS)
14. Parent must be UNIQUE OR PRIMARY KEY
Child may have DUPLICATE/NULL
Constraint specify on child not in parent
Parent can delete only if child not exist
Parent cannot modify if child exist
43. IN or NOT IN predicate
EX:
SELECT FNAME,LNAME,ADDRESS
FROM CS2
WHERE FNAME IN (‘EBI’,’ANOOP’,’VIKAS’,’NAVIN’);
EX:
SELECT FNAME,LNAME,ADDRESS
FROM CS2
WHERE FNAME NOT IN (‘EBI’,’ANOOP’,’VIKAS’,’NAVIN’);
48. FUNCTION USE
AVG() AVERAGE
MIN() MINIMUM
COUNT() COUNTING
COUNT(*) COUNTING
MAX() MAXIMUM
SUM() TOTAL
ABS() ABSOLUTE
POWER() POWER
ROUND() ROUNDED
SQRT() SQUARE ROOT
EXTRACT()
GREATEST()
LEAST()
52. NO NAME ADDRE
SS
AGE MARK
1 RESHMA.S.R AAA 45 45
2 RESHMA.S.S BBB 35 30
3 REVATHI.B.R CCC 11 68
4 ROSYLIN DDD 75 75
5 RUBEENA EEE 70 62
6 S. APARNA FFF 56 48
53.
54.
55. SELECT <Column Name 1> <Column Name 2> . .<Column Name N>
AGGREGATE_FUNCTION (<EXPRESSION>)
FROM TABLE NAME
WHERE <Condition>
GROUP BY<ColumnName 1> <Column Name 2>.<ColumnNameN >
56.
57.
58.
59.
60. Subqueries can be used with the SELECT, INSERT,
UPDATE, and DELETE statements along with the
operators like =, <, >, >=, <=, IN, BETWEEN etc.
61. RULES:
• must be enclosed within
parentheses.
•can have only one column in the
SELECT clause, unless multiple
columns are in the main query for
the subquery to compare its
selected columns.
•An ORDER BY cannot be used in
a subquery, although the main
query can use an ORDER BY.
62. •The GROUP BY can be used to
perform the same function as the
ORDER BY in a subquery.
•Subqueries that return more than
one row can only be used with
multiple value operators, such as the
IN operator.
•The BETWEEN operator cannot be
used with a subquery; however, the
BETWEEN operator can be used within
the subquery.