We read your photo as:
How do I create queries in MS Access to add new fields and combine fields from multiple tables?
ScanSolve AI Answer
Step-by-step solution
31 stepsHere are the steps to complete the tasks:
QUERY ONE: Creating queries with new fields
Go to the
Createtab on the ribbon.In the
Queriesgroup, clickQuery Design.In the
Show Tabledialog box, select thepersonal detailstable and clickAdd, thenClose.Double-click on the fields
Paynum,Forename,Department, andBirthdateto add them to the query grid.In the next empty field column in the query grid, type `Age
Date()-[Birthdate]
in theField` row.Click
Runin theResultsgroup on theDesigntab to view the query results.Click
Saveon the Quick Access Toolbar orFile > Save.Type
Personnel agesas the query name and clickOK.QUERY TWO: Create another select query using fields from various tables
Go to the
Createtab on the ribbon.In the
Queriesgroup, clickQuery Design.In the
Show Tabledialog box, selectpersonal details,Appointment, andPaymentstables.Click
Addfor each, thenClose.Double-click on the following fields to add them to the query grid
- From
personal details:Paynum,Surname,Department - From
Appointment:Appointed,Salary - From
Payments:Tax,Medical aid,Pension
- From
In the next empty field column in the query grid, type
NET SALARY:[SALARY]-[TAX]-[MEDICAL AID]-[PENSION]in theFieldrow.Click
Runin theResultsgroup on theDesigntab to view the query results.Click
Saveon the Quick Access Toolbar orFile > Save.Type
net salariesas the query name and clickOK.QUERY THREE: CREATING CROSSTAB QUERIES
Go to the
Createtab on the ribbon.In the
Queriesgroup, clickQuery Wizard.Select
Crosstab Query Wizardand clickOK.In the first step of the wizard, select `Table
personal details
and clickNext`.For the row heading, select
Nationalityand clickNext.For the column heading, select
Departmentand clickNext.For the calculation, select
Paynumand chooseCountas the function.Ensure
Yes, include row sumsis selected. ClickNext.Type
Department by nationality summaryas the query name.Click
Finishto view the results.QUERY FOUR: CREATING ACTION (UPDATE) QUERY
Go to the
Createtab on the ribbon.In the
Queriesgroup, clickQuery Design.In the
Show Tabledialog box, select theappointmenttable and clickAdd, thenClose.In the
Query Typegroup on theDesigntab, clickUpdate.Double-click on the
Salaryfield to add it to the query grid.In the
Update Torow for theSalaryfield, type[salary]*1.15.Click
Runin theResultsgroup on theDesigntab.A warning message will appear indicating that you are about to update records. Click
Yesto proceed.Open the
appointmenttable to verify that the salaries have been increased by 15%.
Still stuck on this one?
Ask a follow-up, and the answer starts from this question.