Professional Documents
Culture Documents
in
Page 1
visit @ http://www.infotechcomputer.in
Page 2
visit @ http://www.infotechcomputer.in
Page 3
visit @ http://www.infotechcomputer.in
a. % - specify any and all characters
b. _ - any single character
Q25. Neha created a table later on she realize that there is no need to include CLASS column which
command she should use to do so? [tablename is student]
Ans.
ALTER TABLE student Drop Class
Q26. A table name OFFICE has 6 rows 10 columns and another table name STAFF has 3 rows and 5
columns. How many rows and columns will be there, it we obtain the cartesian product of these two
tables?
Ans.
Number of Rows = 18 (6x3)
Number of Columns (15 (10+5)
Q27. What are six relational operations
Ans.
>, <, >=, <=, =, <> or @=
Q28. Which statement is used to create a new database?
Ans.
CREATE DATABASE
Q29. Which command in mysql is used to open a specified database?
Ans. USE databasename
Q30. Which command in mysql is used to view the structure of a table?
Ans.
DESC or DESCRIBE
Q31. What is a NULL Value?
Ans.
NULL value means that is Unavailable, Unassigned, Unknown (or) inapplicable value. Absense of value is
indicated by null value.
Q32. What is Cartesian Join?
Ans.
The join query which combines each row of one table with each row of the another table is called as
Cartesian (or) Cross Join (Or) Cartesian Product Join.
Page 4
visit @ http://www.infotechcomputer.in
Q33. What is Equi-Join?
Ans.
The Query which combines he rows from multiple table by using equality condition on the common
columns (i.e. Primary Key of one table to Foreign key of another table) is called equi join.
Q34. Which command is used to modify existing data in a table?
Ans.
UPDATE Command
Syntax : UPDATE tablename SET columnname=value WHERE condition.
Q35. Which command is used to delete rows from a table?
Ans.
DELETE command
Syntax. DELETE FROM tablename WHERE condition
Q36. What are Constraints? Give examples?
Ans.
Constriant is a limitation or Specification or condition on a column(s).
e.g. Primary key, Not Null, Check , Foreign Key etc.
Q37. In a database there is a table Cabinet. The data entry operator is not able to insert a null value in a
column. What may the possible reason?
Ans.
The column is defined with NOT NULL or primary key constraint.
Q38. Do the Primary key of a table accept null or duplicate values?
Ans. NO. it does not accept duplicate or null values.
Q39. What is a Transaction?
Ans.
A Logical unit or work that must be done in a logical order and successfully as a grouop or not done at all
is called a transaction.
Q40. What is the purpose of inserting savepoint?
Ans.
The savepoint statement defines a marker in a transaction. It is used to rollback a transaction till the
marker.
Q41. Difference between ROLLBACK and ROLLBACK TO?
Ans. ROLLBACK is used to undo the transaction to the beginning whereas ROLLBACK TO is used to undo
the transaction upto the given savepoint name.
INFOTECH Computer Education, Kishangarh (Raj) 9829171122
Page 5
visit @ http://www.infotechcomputer.in
Page 6
visit @ http://www.infotechcomputer.in
There are four categories of MySql Functions
1. String Functions
2. Numeric Functions
3. Date and Time Functions
4. Miscelleneous Functions
Q50 . What is a Data Dictionary ?
Ans.
A data dictionary is a file that contains "metadata" which is data about data. It helps the DBMS to find
various elements of a database while execution of a query.
Page 7