Advanced MS Access Query Design
Advanced MS Access Query Design
AICITSS Page 1
Printing Reports
• Reports can be printed in Columns using the REPORT PAGE SETUP Property
• Blank Reports can be stopped from Printing by using the ON NO DATA event
Operands
• Operand is a value on which Calculation is performed
• Example: 5 + 3, "5" and "3" are operands and "+" is the operator
• Operands can be of 3 types
○ Literals
○ Identifiers
○ Functions
Literals
• They are fixed constants like numbers or text
Identifiers
• They are Variables
• Identifiers are used to specify the field (column) for an expression to act on.
• Identifiers are always represented using Square Brackets []
• Example: Table.[Column1] + Table.[Column2]
Functions
• Similar to functions of MS Excel
• They can be mathematical, text, Logical functions etc
• Example: Min, Max, Length, Avg, Sum
Note: Text can be enclosed in single or double quotes. E.g.; "MS ACCESS" or 'MS ACCESS'
• Space is counted as a character
• Len("MS ACCESS") outputs 9 instead of 8 because it counts the empty space as well.
Types of Operators
• Comparison Operators
○ >,<,>=,<=,<>,=
• Arithmetic Operators
○ +,-,*,/,\,^,Mod
○ Mod is used to return the Remainder in a division. Known as Modulo
○ / for normal division. Outputs decimals
○ \ for integer division. Does not output decimals
• Miscellaneous Operators
○ LIKE, BETWEEN, IN, IS NULL
LIKE operator : PATTERN MATCHING
○ Like works with TEXT OR DATE datatype
○ Wildcards are used to perform Like Operation
○ Wildcards are special characters used for pattern matching
▪ *, ?, #, [xyz]
○ Examples
▪ A* = Returns all items that start with A. * basically means ALL
▪ A??M = Returns items starting with A and ending with M, with 2 characters in between
▪ # means number. #A = Returns all items starting with a number and A, e.g., 123A
▪ [ABC]* = Returns all items starting with Either A, or B or C. Kind of like Multiple condition
Between operator
• Between works with NUMERIC OR DATE Datatype
IN Operator
• IN operator is used to search for specific values in a field. E.g. Find the employees that work in Marketing Department
• Select * From Table Where Department IN ('Marketing')
IS NULL Operator
• Used to find empty records in a table
• You can also use IS NOT NULL to find non empty values
Logical Operators
• Logical Operator returns TRUE or FALSE
• They are used to combine multiple expressions
• And, Or, Eqv, Xor, Not
• Refer page 130
Operator Precedence
• The order in which Operators are to be evaluated
• Similar to BODMAS
• Arithmetic operators RANK 1st, Comparison 2nd, and Boolean 3rd
Compound Criteria
• Compound criteria is used to specify multiple conditions
• They are 2 types of compound criteria
○ AND , OR
▪ And requires both conditions to be True
▪ OR requires either one of the conditions to be True
Text Functions
Date Functions
AICITSS Page 2
Math Functions
Financial Functions
AICITSS Page 3
Macros and Switchboards
28 July 2023 02:50 PM
• Switchboard Items table is created automatically when Switchboard is created using Switchboard Manager
• Switchboards can be modified in Design View, using Property Sheet pane
• You can set Switchboard as the default startup View in Access Options to add an extra layer of Security
Macros can be used to AUTOMATE data entry, Reduce Errors and Save time
AICITSS Page 4
Tally
28 July 2023 03:26 PM
Shortcuts
Interest Calculation F11 : Features
• Tally can calculate Simple Interest and Compound Interest F12: Configure
• You have to activate interest in Features, Accounts to use Interest Calculation feature Alt+F3 : Alter Company Info
• Interest Calculation Reports can be found under Statements of Accounts (gateway > Display > SoA
You will find 4 options under Interest Calculation Report
• Interest Receivable Report
• Interest Payable Report
• Ledger
• Group
Multi-Currency
• Helps you record and maintain transactions and accounts in foreign currency
• Home Currency is known as Base Currency
Exchange Rate
There are 3 types of Exchange Rate in Tally
• Standard Rate of Exchange : Normal Forex rate in the market
• Selling Rate (Customer Point of View): Rate at which banks buy from customers. The SR Is used when receiving
Money
• Buying Rate (Customer Point of View): Rate at which banks sell to customers. The BR is used when making
payments
Foreign exchange difference will be reflected as Unrealised Forex Gain/Loss
• A journal entry must be made at the end to write off Unrealised Forex Gain/Loss to Profit and Loss A/c
Reports
There are 3 financial Reports which can be viewed in Multi Currency
• Profit and Loss
• Balance Sheet
• Trial Balance
Inventory
Inventory is broken down into 3 stages
• Raw Materials
• Work in Progress
• Finished Goods
Bill of Materials
• Bill of Materials is created only for the items that are being assembled in-house
• You have to manually activate BoM using F12 (configure), Inventory Info
• Manufacturing Journal is the place where Manufactured inventory is accounted. It is not a default Voucher type. It
must be created manually
Stock Journal or Stock Transfers shows the list of all Stock Journal Vouchers entered
Transfer Analysis gives the movement details for each type of Stock Journal
• Display > Inventory Books > Movement Analysis > Transfer Analysis
Cost Estimation
• Cost Estimation is the statement that gives the value of cost incurred in the manufacturing of finished goods
• It helps in fixing the selling price of a product and helps in taking decisions to reduce costs.
Job Work
It means placing orders to job workers for manufacturing certain semi-finished or finished goods
You have to set it manually under Inventory (Features)
In Tally Job order consists of
• Job Work Out Order : When we place order outside
• Job Work in Order : When we get the order from outside ( We are the Job Worker)
Job Work Out Order and Job Work in Order contains the following Information
• Order Outstanding
• Job Work Registers
• Stock
• Job Work Analysis
Job work Features brings the Job Work Register and it contains the following 4 reports
• Job Work Out Order Book
• Material Out Register
• Material In Register
• Material Movement Register
Price List
Price list refers to the list of items maintained by an organisation along with their price details
Price List can be activated in Inventory under Features
AICITSS Page 5
Excel
29 July 2023 10:24 AM
Excel has a workbook and is inside workbooks, there can be multiple worksheets Rules for Creating Names
• XLSX- Normal Format What are allowed
• XLSM - Macro Enabled • Letter
• XLSB - Binary Workbook • Underscore
• Columns - 16,384 • Backslash
• Rows - 10,48,576 What are not allowed
Quick Access Toolbar - Important tools area • Space is not allowed
Ribbon - Expanded Menu • Names are not case sensitive
Formula Bar - Formula area • Maximum 255 characters
Spreadsheet - data entry space consisting of cells Names can be defined in 3 ways
Status Bar - Bottom bar showing information about the data • New Name Dialog Box under Formulas Tab
Refer page 54 • Using Create from Selection Option
Command Buttons in Excel can be of 4 types • Name Box
• Simple Button Shortcut key for Name Manager : Ctrl + F3
• Toggle Button Table
• Simple Drop Down • A Table is a rectangular range of Data
• Split Button When you convert a Range into a Table, Excel automatically provides
Ribbon tab - A group of related commands • Table Name
Contextual Ribbon Tabs - They appear only when a certain item such as a Table, Pivot chart etc is selected. • Column Header
If you import a customised ribbon from another Excel, all your own customisations will be lost • Formats the Data
Customising Ribbon Shortcut key for Table : Ctrl + T
• Cannot customise Excel's default commands, names or icons • Table options are available under Contextual Ribbon "Table Design"
• Cannot resize the Ribbon or their text size • Excel automatically provides Sort and Filter
Customising QAT • Excel can Auto Extend rows and columns in a Table
• Only Icons can be displayed • You can also add Slicers for filtering data
• Buttons cannot be resized • Excel can automatically add a Total Row to a table without formulas
• You can add additional buttons up to one line ○ Data in the LAST COLUMN is summed
• You can add Macros to QAT • In Table data, Excel uses a special formula syntax called Structured References
<Separator> • Excel has built in feature to remove Duplicates in a Table
Data Types • You can also convert a table back to a Range
Numbers: Aligns numbers to right side of the cell Data Validation
Text : Aligns text to left side of the cell • Data Validation helps to set up Rules to restrict or validate Data
Excel can handle up to 15 digits numbers. For working with more than 15 digits, text datatype is recommended • It is located in Data Tab
Date and Time are stored as Number types • You can
Boolean = True or false ○ Restrict Data to values in a drop down list
Excel treats time as fraction of days = 24 hours = 1 day = 6am = 6/24 = 0.25 ○ Restrict Data to whole number only with limits (e.g. 1-10 only)
New data types in Excel ○ Restrict Data to decimal number with limits
• Stock ○ Restrict Data to Date and Time only
• Geography ○ Restrict Data to Text only
• Currency > Crypto Currency • Errors can be of 3 types
Customise = File > Options ○ Stop
Advanced tab under Options has 14 headings ○ Warning
Abbreviations can be defined under Proofing > Autocorrect ○ Information
Auto Recover : Excel by default, saves your work every 10 minutes
Protected View : File > Options > Trust Center > Protected View
Adding Trusted Locations to open files without warning
• File > Options > Trust Center > Trusted Locations
Go To Special : CTRL + G or F5
• Go To Special only selects cells in the current Worksheet
Smart Copy Paste : ALT+E+S or CTRL+ALT+V Excel can detect headings intelligently
• 14 smart copy paste options are available • Use a single row of headings
Transpose : Change Rows to Columns • Bold
Shortcuts to move between worksheets : (left to right) • Never leave any gap between headings
• Move to next worksheet : Ctrl + Page down • There should be no blank rows or columns
• Move to previous worksheet : Ctrl + Page Up • Gap of one row if your heading row is not row 1
Watch Window: Lets us see the calculations without blocking the view Grouping Data / Outlining of Data
• Outlines can be done up to 8 levels
• Outline can be manual or automatic
Data Visualisation • Data Tab
Graphical Representation of Information and Data • Subtotal is a type of automatic grouping
• Subtotal provides you with 3 levels
Conditional Formatting
Allows you to apply cell formatting automatically based on conditions Excel has Database Functions
• Highlight cells • DGET : checks for duplicate entries in a database
• Top Bottom Values • DSUM : sum of records on a database
• Data Bars • DCOUNT : count of records on a database
• Colour Scales • DAVG : average of records on a database
• Icon Sets Array Formula
• Creating, Clearing and Managing Rules An Array Formula is a formula that contains an operations on an array of items instead of a single item
Excel Charts (f9)
• Column Headings are used in X Axis What is an Array? An Array is a collection of 2 or more items. The items can be text or numbers
• Data is used in Y Axis CNTRL + SHIFT + ENTER (CSE Formulas)
Pivot Table • There can be single cell arrays and multi cell arrays
• Quick way to summarise large amounts of data • An Array constant is a set of static Values
• You can use a Pivot Table Report to analyse large amounts of data • Column Array Constants are known as Vertical Array Constants
Pivot Table has 4 areas • Row Array Constants are known as Horizontal Array Constants
• Filter • Table Array Constants are known as Two Way Array Constants
• Rows • Text values must be in double quotes
• Columns • Doubt dash (--) is known as Double Unary Operator and is used to convert Non numeric Boolean
• Values values into numeric values…EG. True and False to 1 and 0
Pivot Charts • OFFSET function returns a reference to a range
• Pictorial representation of Pivot Table • Frequency Array function counts how many numbers are in each category
• Can be found in PivotTable Analyse Ribbon Logical Functions are of 4 types
Pivot Table sorting can be from • IF
• Small to Large • AND
• Large to Small • OR
AICITSS Page 6
Pivot Charts • OFFSET function returns a reference to a range
• Pictorial representation of Pivot Table • Frequency Array function counts how many numbers are in each category
• Can be found in PivotTable Analyse Ribbon Logical Functions are of 4 types
Pivot Table sorting can be from • IF
• Small to Large • AND
• Large to Small • OR
You can create multiple Pivot Table Reports using Show Report Filter Pages feature • NOT
You can use Multiple Consolidation Ranges option to consolidate data from different sources into one
report
Slicer
• Used to filter the contents of a Pivot Table
• Timelines are a type of Slicer based on TIME Encryption
KPI - Key Performance Indicator • File > Info
Dashboards are also known as Protect
• Management Dashboards • Review > Protect Workbook
• Information Dashboards Protected Cell
• Dashboard Reports • Locked: You cannot edit it
Dashboards can be static or interactive (dynamic) • Hidden: It is visible in the worksheet but its formula is hidden
It is better to divide workbook into 3 parts when creating Dashboards Get and Transform (Power Query)
• Import Data from External sources
Data Modelling Text to Columns
• Process of Formulating Data in a structured Format • Under Data Tools in Data Tab
• Data Model: Allows describing information in a systematic way that allows it to be stored and • Helps to split data into columns using delimiters
retrieved effectively ○ Delimiters can be
• Data Model assists in integrating tables ▪ Tab
Power Pivot ▪ Space
• It's an Add-in function ▪ Comma
• Power Pivot uses DAX Language Default Format : General Format
• DAX works on columns and not on cells Normal Data Consolidation
• Power Pivot is an in memory data modelling component that provides highly compressed data Consolidate data from different worksheets into one worksheet
storage and extremely fast aggregation and calculation • Under Data Tab
Power Query • Data can be consolidated in 2 ways
• Data Processing Software ○ Consolidation by position : Identical in order and location
• ETL ○ Consolidation by category : Location and order are not same
• Extract Transform Load Goal seek is a type of What if Analysis
• Output of Power Query can go to Excel or PowerBi • Helps you to find the input values to achieve a goal
• Also known as GET AND TRANSFORM Scenario Manager
Power View • Helps you to create different scenarios (results)
• Facilitates interactive data visualisation • It's also under What if Analysis
• Encourages ad hoc reporting • You can vary maximum of 32 input values
• Table, Matrix, Card, Charts> Line Charts, Bar Charts, Column Charts, Scatter Charts, Bubble Data Table
Charts • Found under What if Analysis
• Helps you to see multiple results in one go
• There are 2 types of data tables
○ One way
○ Two Way
• A data Table cannot accommodate more than 2 variables
• Useful when a formula depends on many variables
Solver
• It can solve problems for me
• Helps you find the best solution
• Developed by Frontline Systems
• Different types of Methods under Solver
○ Simplex LP Engine (for linear problems)
○ GRG Nonlinear Engine
○ Evolutionary Engine
AICITSS Page 7
AICITSS July 30 Exam
04 August 2023 06:58 PM
Exam questions
1) Excel's maximum digit for numbers
2) ETL full form
3) BADIR Framework full form
4) Data modelling
5) Tally Interest Rate
6) Tally Job Work
7) Tally Bill of Materials
8) IDEA Sampling techniques
9) IDEA types of relate features
10) EDATE function
11) StrnComp function
12) Input Values in Goal Seek
13) Auto filter
14) Macro Events and Actions odd one
15) Unmatched Queries
16) Excel Relative and Absolute Reference
17) Text mining (Data Analytics)
18) View all worksheets procedure
19) Tally addresses for enabling TDS, Payroll
20) TDS form 26Q
21) Tally Payroll
22) Tally Price List
23) Form 16A
24) Tally Audit functions
25) Challan Reconciliation address
AICITSS Page 8