0% found this document useful (0 votes)
7 views29 pages

Day 11 data +

The document provides an overview of common techniques for data manipulation and optimization, focusing on functions available in tools like Microsoft Excel and SQL. It covers text, date, logical, and aggregation functions, as well as techniques for filtering, indexing, and using temporary tables in queries. Additionally, it includes review activities to reinforce understanding of these concepts.

Uploaded by

singhraj205762
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views29 pages

Day 11 data +

The document provides an overview of common techniques for data manipulation and optimization, focusing on functions available in tools like Microsoft Excel and SQL. It covers text, date, logical, and aggregation functions, as well as techniques for filtering, indexing, and using temporary tables in queries. Additionally, it includes review activities to reinforce understanding of these concepts.

Uploaded by

singhraj205762
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 29

Data+

Exam DA0-001

Copyright © 2022 CompTIA, Inc. All Rights Reserved. | CompTIA.org


1
Data+ Exam DA0-001

Lesson 8
Explain Common Techniques for Data
Manipulation and Optimization

Copyright © 2022 CompTIA, Inc. All Rights Reserved. | CompTIA.org


2
Lesson 8

Topic
8A Functions to Manipulate Data
Use

Copyright © 2022 CompTIA, Inc. All Rights Reserved. | CompTIA.org


3
Text Functions
• =TRIM(): Removes leading and trailing spaces.
• =CLEAN(): Removes all non-printable characters.
• =LEFT(): Returns a number of characters from the left side of the field.
• =RIGHT(): Returns a number of characters from the right side of the field.
• =MID(): Returns a number of characters from the middle of the field.
• =UPPER(): Converts field to uppercase.
• =LOWER(): Converts field to lower case.
• =PROPER(): Capitalizes each word.
4
Text Functions
• =TRIM(): Removes leading and trailing spaces.
• =CLEAN(): Removes all non-printable characters.

5
Text Functions - Left, Right, Mid

Microsoft Excel Right Function to Extract the Last Four Characters (i.e., Digits) of the Social Security
Number (Used with permission from Microsoft.)

6
Text Functions - Upper, Lower & Proper

Transform Option in Microsoft Power Query (Used with permission from


Microsoft.)
7
Combining Data Fields

CONCATENATE Function in Microsoft


Excel (Used with permission from
Microsoft.)

Merge Columns in Excel Power Query (Used with permission


from Microsoft.)

8
Parsing Strings for Information

Breaking Apart Product Number into Fields by Using Text to Columns and Delimiter in Microsoft
Excel (Used with permission from Microsoft.)

9
Parsing Strings for Information

Using Split Columns in Microsoft Power Query to Create Individual Names (Used with
permission from Microsoft.)

10
Date Functions

December 18,
2022

11
Date Functions

• WEEKDAY([Date]): This Excel function will return a number 1


through 7 to designate the day of the week.
• WEEKNUM([Date]): This Excel function will return the number of
the week of that year as 1 through 52.
• MONTH([Date]): This function returns a 1- 12 to designate the
month of the year.

12
Date Functions

• DATEDIFF(): This function can be used to calculate the amount of


days between two dates, a start date and an end point.
• NETWORKDAYS(): This function calculates how many business days
between a start and end date.

13
Date Functions

• NOW(): This function uses the computer system time to tell the
current date and time of a calculation. NOW() can tell you how
many days have elapsed from a given day, or how many days ahead.
• TODAY (): This function gives you the date, but not the time.

14
Logical Functions and Conditional Formatting
• IF(): Specifies a logical test to perform
• IFS(): Checks whether one or more conditions are met and returns a value that
corresponds to the first TRUE condition.
• AND(): Returns TRUE if all of its arguments are TRUE
• OR(): Returns TRUE if any argument is TRUE
• TRUE(): Returns the logical value TRUE
• FALSE(): Returns the logical value FALSE
• IFERROR(): Returns a value you specify if a formula evaluates to an error;
otherwise, returns the result of the formula
• NOT(): Reverses the logic of its argument
15
Logical Functions and Conditional Formatting
• IF(): Specifies a logical test to perform

Microsoft Excel IF Function for Shipping Status (Used with permission from
Microsoft.)
16
Aggregation and the Basic Types of Aggregate Functions
• SUM(): Will add all the records together to produce a total. You will see
this function used for amounts and quantities.
• COUNT(): Will count all the records as individual lines to produce a record
count.
• DISTINCT COUNT(): Will count all the records in that column but will only
count the field one time, even if it appears multiple times.
• AVERAGE(): Will total all the values in that column and then divide them
by the count of values.
• MAX(): Will give the largest value in that column.
• MIN(): Will give the smallest value in that column.

17
Aggregation and the Basic Types of Aggregate Functions
• COUNT(): Will count all the records as individual lines to produce a record count.

• DISTINCT COUNT(): Will count all the records in that column but will only count
the field one time, even if it appears multiple times.

Distinct Count DAX Measure and Table in Power BI (Used with permission from
Microsoft.) 18
System Functions
• Most reporting tools come packaged with some system functions
that you can use so that you do not manually have to track
information. These functions provide valuable insight to the people
who will read your reports.
• Some system functions might include the following:
• Page numbers
• File paths
• Refresh Date
19
Review Activity: Functions to Manipulate Data

1.Which function removes all non-printable characters? Which function trims leading
and trailing spaces? What type of function would we use to classify these as?

2. Which function is used to combine data fields?

3.If you had a data set with a column for Full Name, and you needed columns for
First Name and Last Name, what action would you need to perform?

4. The TODAY function will provide and not provide what, respectively?

5. Which function is used to test whether a condition is true or false?

6. SUM, COUNT, DISTINCT COUNT, AVERAGE, MAX, and MIN are all what type of
function?

7. Which function type is program or tool dependent?


20
Lesson 8

Topic
8B Common Techniques for Query
Use
Optimization

Copyright © 2022 CompTIA, Inc. All Rights Reserved. | CompTIA.org


21
Filtering Data

Simple Select Statement in


SQL

22
Parameterization

Screenshot of Parameters in Crystal Reports Parameter Prompt in Crystal Reports 2016 (Copyright © 2021 SAP
2016 (Copyright © 2021 SAP SE or an SAP SE or an SAP affiliate company. All rights reserved.)
affiliate company. All rights reserved.)

23
Indexing Data

Indexes/Keys Screen via SQL Server Management


Studio (Used with permission from Microsoft.)

24
Temporary Tables

Create Table Syntax for a Temporary Table in Temporary Table Found in Tempdb in Microsoft SQL
Microsoft SQL Server Management Studio (Used Server Management Studio (Used with permission
with permission from Microsoft.) from Microsoft.)

25
Sub Querying and Subsets of Information

SQL View of a Subquery That Pulls the MaxUnitPrice in Microsoft


SQL Server Management Studio (Used with permission from 26
Query Execution Plan

Display the Estimated Plan Generated in Microsoft SQL Server Studio


(Used with permission from Microsoft.)
Visual View of the Query Execution Plan (Used with permission from
Microsoft.)

27
Review Activity: Recode Data and Derived Variables and Duplicated Data

1.What can you create to optimize data load time and filter data to
certain criteria?
2. What fields are automatically indexed when they are created?
3. When does a temporary table stop being stored on the database server?
4. What is being created when querying another query?
5. What are the two types of query execution plans?

28
Data+ Exam DA0-001

Lesson 8A, 8B
Summary

Copyright © 2022 CompTIA, Inc. All Rights Reserved. | CompTIA.org


29

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy