Notes-Raising Queries-Ch-4
Notes-Raising Queries-Ch-4
1. Can you create relationship between two tables in MS Access and for what purposedo we
create relationship between tables.
Ans: Yes we can create relationship between two tables in MS Access. Relationships define how tables
are related to each other through common fields, andthey serve several important purposes:
∙ Maintaining Data Integrity: Relationships help maintain data accuracy andconsistency by
preventing redundant or conflicting data.
∙ Avoiding Data Duplication: Instead of duplicating data across multiple tables, relationships
allow you to store data in normalized form.
∙ Improving Query Performance: When tables are appropriately related, queries canbe constructed
to retrieve data from multiple related tables simultaneously. ∙ Enforcing Referential Integrity: By
establishing relationships, you can enforcereferential integrity, ensuring that records in one table
refer to existing records inanother table.
Ans: Filtering records in Microsoft Access 2016 allows you to viewa subset of databased on
specific criteria. There are different ways to filter records. For example:
Steps for filtering records in MS Access:
∙ Open the table or query in Datasheet View.
∙ Locate the column by which you want to filter the records.
∙ Click on the filter arrow at the top of the column. This arrowappears whenyouhover over
the column header.
∙ A dropdown menu will appear. You can select various filtering options suchastext filters,
number filters, date filters, and more.
∙ Depending on the filter type, you'll be able to input filter criteria. For example, you can
choose specific values, ranges, or text patterns.
∙ Apply the filter to see the records that match the specified criteria. ∙ To remove the filter,
click the filter arrow again and choose "Clear Filter from[Column Name]."
3. Explain the process of raising a Query using a Query Wizard?
Ans : Step-by-step process for creating a query using the Query Wizard in Microsoft Access:
∙ Open Query Wizard:
Open your Microsoft Access database.
Click on the "Create" tab in the top menu.
Choose Query Type.
∙ In the "Queries" group, click on "Query Wizard."
∙ Pick the table or query you want to use as the data source for your query. ∙ Move the
fields you want to include in the query's results fromthe "AvailableFields" list to the
"Selected Fields" list.
∙ Set criteria to filter the data if necessary (e.g., show only records with a certainvalue).
∙ If you want to sort the results, select the fields you want to sort by and specifyif it should be
ascending or descending.
∙ Provide a name for your query or keep the suggested name. Click "Finish."
∙ View Query Results.
The query results will open in a new window, showing the data that meets your criteriaand
structure.
Save Query.
4. How does the criteria option help in defining the results of a query?
Ans:The "criteria" option in a query helps define the specific conditions or rules that records must
meet to be included in the query's results. It acts as a filter, allowingyou to narrow down the data
that is retrieved from the database based on certaincriteria. This is a powerful feature that lets
you retrieve only the informationthat isrelevant to your analysis or reporting needs.