Class X: Unit-3 Relational Database Management Systems (Basic)
Class X: Unit-3 Relational Database Management Systems (Basic)
Class X: Unit-3 Relational Database Management Systems (Basic)
Binary Types:
Binary data types are used for storing data in binary formats. Binary data types in a database can be using for
storing photos, music files, etc. In general, files of any format can be stored using the binary data type. The
different types of binary data types available are listed here
DATE TIME:
Date time data types are used for describing date and time values for the field used in the table of a database.
Date time data types in a database can be used for storing information such as date of birth, date of
admission, date of product sale, etc. The different types of date time data types available are listed here.
3. MANY to MANY
In this relationship, no table has the primary key column.
It signifies that all the columns of primary key table are associated with all the columns of associated table.
Example: In the given tables EMP and DEPT, there is no primary key.
Ques: List the different ways to create the relationships between the tables.
Ans: There are two ways to create the relationships between the tables
a. Click on Insert option and select New Relation… option in Relation Design window. Select the options as
required:
b. Drag the primary key column from one table and drop it on the key column of another table.
Ques: How to remove the relationship between tables?
Ans: Remove the Relationships
The relationships applied on the tables can be removed also with the help of Delete option. Right Click on the
relationship thread and select Delete option.
SESSION 4: RETRIEVE DATA USING QUERY
Ques: Define a query.
Ans: Query is to collect specific information from the pool of data. A query helps us join information from
different tables and filter that information. Filtering means that the query uses criteria you provide to hide
some data and present only what you want to see.
Ques: List the different ways to create query.
Ans: a) Create query in design view
b) Use wizard to create query
c) create query in sql view.
Ques: Define Structured Query Language.
Ans: Structured Query languages are computer languages used to make queries into databases and information
systems. Queries are commands that are used to define the data structure and also to manipulate the data in the
database.
Ques: What is the purpose of Select statement?
Ans: A SELECT statement retrieves zero or more rows from one or more database tables or database views. In
most applications, SELECT is the most commonly used Data Manipulation Language(DML) command.
The SELECT statement has many optional clauses:
• WHERE specifies which rows to retrieve.
• ORDER BY specifies an order in which to return the rows.
To retrieve all the columns in a table the syntax is:
SELECT * FROM <TABLENAME>;
Ques: How to execute queries?
Ans: In order to execute queries click on the Queries option available on the left side under database section,
click Create Query in SQL View. A window will appear
Type the query in the above window and execute it by using the F5 function key.
Ques: How to display data of same type of values?
Ans: Grouping of Data
To display the records containing the same type of values “WHERE” clause can be used with the Select SQL
Command.
To get details about the list of students whose favorite color is blue, you can use:
select * from SDetails where Color=’Blue’;
Ques: Explain Update statement.
Ans:UPDATE statement
Update statement is used for modifying records in a database. The general syntax of the update statement is as
follows:
UPDATE <table_name>
SET <column_name> = value [, column_name = value ...]
[WHERE <condition>];
SESSION 5: CREATE FORMS AND REPORTS USING WIZARD
Ques: Define a Form.
Ans: A form provides the user a systematic way of storing information into the database. It is an interface in a
user specified layout that lets users to view, enter, and change data directly in database objects such as tables.
Ques: List the different ways to create a form.
Ans: a) Create form in design view
b) Use wizard to create form
Ques: Define Reports
Ans: A report helps to display the data in a summarized manner. It is used to generate the overall work outcome
in a clear format. You can create reports in the database.
Ques: List the way to create a report.
Ans: a) Use wizard to create a report