SQL Notes
SQL Notes
COMPUTER SCIENCE
DATABASE CONCEPT
1) What is database?
2) What is Database Management System (DBMS)?
3) What is Relational Database Management System (RDBMS)?
4) What is the difference between DBMS and RDBMS?
5) Write the name of some commonly used DBMS Software.
6) Write the name of some commonly used open source DBMS Software.
7) How can we control “Data Redundancy”?
8) How can we control “Data Inconsistency”?
9) What is the purpose of DBMS?
10) Explain the term “Enforcing Integrity Constrains”.
11) Explain the term “Data Sharing”.
12) Explain the term “Transaction Processing”.
13) What is Data Isolation?
14) Write the name of main components of DBMS.
15) What is cardinality? Explain with example.
16) What is degree? Explain with example.
17) What do you mean by terms :
a. Relation
b. Domain
c. Tuples
d. attributes
18) Write the name of different type of keys available in RDBMS.
19) State the concept of Primary Key with example.
20) State the concept of Foreign Key with example.
21) State the concept of Candidate Key with example.
22) State the concept of Alternate Key with example.
23) State the concept of Composite Key with example.
24) What is Referential Integrity?
25) Difference between char and varchar data type.
26) What is the default format of date data type in mysql?
27) How many categories of sql commands are there in SQL?
28) Write the names of commands under DDL and DML categories.
29) Write two differences between DDL and DML.
30) Write any five features of mysql database.
31) Write any five features of DBMS software.
32) Write the name of components in DBMS.
33) What do you mean by term Cartesian Product Operation?
34) Differentiate between having and where clause.
35) Differentiate between order by and group by.
36) How many categories are there to define all data types in mysql?
37) How to use comment in mysql?
38) How many types of aggregate functions are there?
39) Differentiate between count() and count(*) with an example.
40) Arrange the keyword where, having, order by and group by as per there execution
order in mysql.
41) What do you mean by aliasing (as keywoard) in mysql?
42) Differentiate between drop and delete command.
43) Differentiate between update and alter command.
44) How many types of constrains are there in mysql? Name them.
45) Differentiate between unique and distinct.
46) Differentiate between ifnull and isnull
47) Which operator is used for comparisons on character strings using patterns?
48) Explain the use of two special wildcard character (% and _) with example.