Computer Science class ,8
Computer Science class ,8
1. What is a database?
A database is an organized collection of structured information, or data, typically
stored electronically in a computer system. A database is usually controlled by a database
management system (DBMS).
Step 2: Enter a name for the database in the file Name text box.
4. Write the steps to enter data in an MS Access 2016 database using templates.
After creating the database the next step is to enter the data. Follow the given
steps to enter data into a template:
Step1: When you open the template, you will see a message: Security Warning
"Some active content has been disabled. Click for more details."
Step 2: Click on Enable Content. Now, you can start typing data in the database.
Step 3: Click on New. A Student Details dialog box will appear. Type the data in the
required fields using the keyboard.
Step 4: Click on Save and New to fill in another student's details.
Step 5: After the details of all the students are filled in, click on Close.
Now, the entered data appears in the datasheet. Once you complete entering data
into your datasheet, you need to save it.
Step 6: Click on the File tab. The Backstage view will appear.
Step 7: Click on Save. The entered data is saved.
6. What are the advantages and disadvantages of the two types of databases?
➤ Flat File Database: In this database, all the data is stored in a single table. The
number of fields is small and fixed and they do not have any defined relationships between
them. The database file will hold just one table. Ms Excel is an example of a flat- file
database.
1. Tables:
A table can be defined as a two-dimensional representation of data in the form of
rows and columns known as records and fields, respectively.
2. Record:
Number of fields together form records. A record can be defined as a row in a table.
Together, a set of records with the same fields form a table.
3. Field:
The field is the basic unit of data in a database. A field stores a single piece of
data/information of a particular type.
4. Database:
A database is an organized collection of structured information, or data, typically
stored electronically in a computer system. A database is usually controlled by a database
management system (DBMS).
5. Query:
A query is a request for data or information from a database table or combination of
tables. To extract data, tables should have a relationship defined between them so that a
record set which satisfies some condition(s) spanning some or all tables can be executed
successfully. Queries can also be used to perform actions such as delete, update, etc., on
the data.
6. Report:
If you want to display the selected data in printable formats, reports are used.
Reports collect the summarized data from queries or tables and organize it in a printable
format.
7. Primary Key:
A primary key is one (or more columns) whose values uniquely identify every row in
a table. The value in the primary field is different for every record and thus helps to
identify records uniquely. For example, in a table containing details of students of Class VIII,
section B, the column Admission Number behaves as the primary key because every student
has a unique admission number.
8. Alternate Key:
In a table, there may be more than one field that uniquely identifies a record. All
such fields are called candidate keys. Only one of the candidate keys is selected as the
primary key of a table. All the other candidate keys are called alternate keys.
9. Foreign Key:
When you use the primary key of one table in another table to establish a relation,
then the primary key of one table is the foreign key in the other table.
1. Define Queries.
A Query can be defined as a database object which is
Used to extract data from one or more tables depending on the given criteria.
5. What is a Report?
Reports offer a way to view, format and summarize the information in your
database. Reports can be used to view or print data online.
3. Distinguish between the Design Area and Design Grid of the query design window.
Design Area: Displays the fields, tables and queries that you may want to use in
the query
Design Grid: Contains columns where you can set up the fields
4. Write down the steps to create a form in Access.
Step 1: Select a table or query from the Navigation Pane.
Step 2: Click on the create tab.
Step 3 : A new form opens in the Layout view. On creating a form, three new tabs
appear on the ribbon-from layout design, Arrange and format.
Step 4: Click on Home->view->form view. You can enter or update data.
Step 5: Use the Record navigation bar to move through the records in the Form. After
entering and updating records save your work.