Basics Flashcards

1
Q

Create Database

A

CREATE DATABASE bob;

(To Verify) SHOW DATABASES;

USE bob;

SHOW TABLES;
(None)

CREATE TABLE Checks
Check # NUMERIC(6) NOT NULL,
Payee VARCHAR(20) NOT NULL,
Amount DECIMAL(6,2) NOT NULL,
Remarks VARCHAR(20) NOT NULL;

INSERT INTO Checks VALUES
(‘I’, ‘MA’, ‘Bell’, ‘150’, ‘Have sons next time’);
etc…

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Arithmetic Operators

A

(*), (/), (%), (+), (-) Order of Operations is multiplication, division, modulo, addition, and subtraction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Place a Condition on a Query

A

WHERE clause = more selective queries

  • in order to find a particular item or group of items you need 1 or more conditions
  • contained in the WHERE clause
Ex: name = ‘Brown’
or
number of hours > 100
or
where
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Expression

A
  • an expression returns a value
  • anything that follows a clause is usually an expression

ex: SELECT Name, Address, Phone, FROM Addressbook;
or
where name = ‘Brown’
(Boolean)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

How would you select different tables in a database?

A

select * from deposits

Note: no semicolon

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Plus (+)

A

ex: add to prices

SELECT Item, Wholesale, (Wholesale + 0.15) FROM price;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

How would you change order of columns?

A

SELECT payee, remarks, amount, check #, FROM checks;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Dostinct

A

SELECT DISTINCT amount FROM checks;
or
SELECT DISTINCT, amount, payee FROM checks;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Primary Keys

A
  • column that uniquely identifies row
  • must contain unique values
CREATE TABLE suppliers
(     supplier_id int not null,
      supplier_name char(50) not null,
      contact_name char(50),
      constraint suppliers_pk primary key
      (supplier_id)
);
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Basic Query Syntax

A
  • commands are not case sensitive
  • spacing does not matter
  • semicolon tells program the query is complete
  • SQL’s magic element is “keywords”, used in clauses, to create SQL statements (FROM, SELECT, ORDER BY)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Select

A
  • does not work alone

- almost always followed by from (SELECT names FROM people;)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Select *

A

SELECT ALL

- returns info in it’s own order

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Putting all the data into one place makes it useful to …

A
  • Query the data
  • Update the data
  • Insert new data
  • Delete old data
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What is a database?

A

A container made up of columns and rows to help organize data in a constructive way

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

SQL stands for …

A

Structured Query Language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Declarative Language

A

– statements are declared and the system executes those statements

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

What tells the program the query is complete?

A

Semicolon ;

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Does spacing matter?

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Are commands case sensitive?

A

No

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Is data case sensitive?

A

Yes, it may

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

How do you change the order of a column?

A

SELECT payee, remarks, amount, check # FROM checks; (whatever order you would like)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Query Expression

A
  • returns a value
  • anything folllowing a clause (ie SELECT or FROM) is usually an expression
    ex: SELECT amount FROM checks;
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Conditions

A
  • contained in the WHERE clause

- in order to find a particular item or group of items in your database you need 1(+) condition(s)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Types of Databases

A

Relational, object oriented, and document based are a few of the most common,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

Table

A
  • has a name and a collection of columns
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Column

A
  • has a name and a restriction that restricts the size and category of data that can be stored in that column
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

Required Column

A
  • each row contains data for at least all the required columns
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

Row

A
  • a single record in a table, retrieved by asking questions of the data
    ex: “Who are all my contacts with the last name Smith?”
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

Key

A
  • keys belong to tables
  • each table should/must have one column that can uniquely identify a row (Primary key)
  • keys are what create relations between Rows in Tables (relational databases require keys)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

Foreign Key

A
  • links the Table’s key to a different Table’s Primary Key

- also allows rows of each Table to be linked together

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

Primary Key

A
  • column that uniquely identifies row
  • if more than one table uses the same primary key, you can merge the two tables
    • more than likely you will want to merge a subset of each table
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

Tableau Server does what in a nutshell?

A

Frames the analytical process.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

Data goes in a single section split by roles: (Tableau)

A

Dimensions & measures

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

A well designed Tableau dashboard should always be considered an…

A

interactive information-driven application. (IIDA)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

Two important principles of visualization are…

A

Manage intricacy.

Look for relevancy.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

What is a perfect database?

A

Non-existent

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

Systems Thinking

A

‘The bathtub model’
SOURCE -> (input control ‘spigot’)
-> STOCK ‘tub’ -> (output control ‘drain’)
-> DUMP

38
Q

Acquire Data (Tableau)

A

Key to answering questions/monitoring dashboards.

39
Q

Filter Data (Tableau)

A

Filter down to only data related to question.

40
Q

Enhance (Tableau)

A

Add in metrics, calculations, cost per customer.

41
Q

Tune (Tableau)

A

Use aggregates(?) etc to make dashboard faster.

42
Q

Key Points of Tableau

A
Aquire Data
Filter Data
Enhance
Tune
Deliver Dashboard or Visualizations
43
Q

Key Differences between Tableau Desktop and Tableau Server

A

Desktop is used for visualizations and workbook creation.

Server is used for distribution of these reports, visualizations, or dashboards. Users can edit or update in (Server/online) but cannot create new dashboards.

44
Q

Define Parameters (Tableau)

A

Dynamic variables/values that replace constant values in data calculations and filters

45
Q

Boolean Expression

A

A logical statement that returns a boolean value i.e. either true or false. Can compare data of any type as long as both parts of the expression are of the same basic data type.

46
Q

Differentiate between Parameters and Filters (Tableau)

A

Parameters are not filters but variables. Interactive, allows users to insert their own values. Do not operate alone and require to be a part of something such as an equation, a reference line, a calculated field, or parameter controls. Can be used in calculations for further analysis.

Filters are static or interactive (non-interactive by nature). Static filters cannot be edited from the dashboard or Tableau Public. Becomes interactive with a Quick Filter which adds a filter list to the worksheet and dashboard. Filters cannot be used in calculations.

47
Q

Name the File Extensions in Tableau

A
Tableau Workbook (.twb)
Tableau Packaged Workbook (.twbx)
Tableau Datasource (.tds)
Tableau Packaged Datasource (.tdsx)
Tableau Data extract (.tde)
Tableau Bookmark (.tdm)
Tableau Map Source (.tms)
Tableau Preferences (.tps)
48
Q

Tableau Products:

A

Server, Desktop, Public, and Reader.

49
Q

Tableau Desktop

A

Desktop environment to create and publish standard and packaged workbooks.

50
Q

Tableau Server

A

On-premise or cloud hosted software to access the workbooks built.

51
Q

Tableau Reader

A

Local access to an open Tableau packaged workbook.

52
Q

Tableau Public

A

Workbooks available publicly online for users to download and access the included data.

53
Q

Can Parameters Have a Dropdown List? (Tableau)

A

Yes, parameters do have independent dropdown lists. This enables users to view the data entries available in the parameter during its creation.

54
Q

How can you display the top five and last five sales in the same view? (Tableau)

A

Create two sets, one for top 5 and another for bottom 5. Then JOIN these two sets which will display a unique set of 10 total rows.

55
Q

What is a TDE file? (Tableau)

A

TDE is a Tableau Desktop file, it refers to the file that contains data extracted from external sources like Excel or CSV files.

56
Q

Two aspects that make TDE’s ideal for supporting analytics are? (Tableau)

A
  1. Columnar store.
  2. Architecture awareness, TDE’s use all parts of computer memory (RAM to hard disk) and puts each part to work at what best fits its characteristics.
57
Q

How to use group in calculated field? (Tableau)

A

By adding the same calculation to the ‘GROUP BY’ clause in the SQL query or by creating a Calculated Field in the Data Window to use when you group the fields.

58
Q

Fact Table (Tableau)

A

Facts are the numeric metrics (measurable quantities of the data) which can be analyzed by the dimension table.

Facts are stored in the Fact Table which contains foreign keys that uniquely refer to associated dimension tables.

‘This table supports data storage at the atomic level.’ It allows more records to be inserted at one time. For example it can have a product key, customer key, promotion key, all referring to a specific event.

59
Q

Dimension Table (Tableau)

A

Dimensions are the descriptive attribute values for multiple dimensions of each attribute, defines multiple characteristics.

A dimension table can consist of product name, product type, size, color, description, etc. Has a product key from the ‘fact table’ for reference.

60
Q

Quick Filters (Tableau)

A

A way to filter each worksheet on a dashboard until each of them contains a dimension. Useful for worksheets using the same data source which sometimes results in slow results.

61
Q

What is the biggest Tableau infra you’ve been a part of? (Interview)

A

Single node for non-profit but varied user base.

62
Q

How do you handle security for Tableau server? (Interview)

A

‘Defense in depth’; user rotation, auto password expiration.

63
Q

How do you deal with raw, unstructured data? (Interview)

A

During the work with the non-profit a lot of it was free-form so we had to standardize around keys for ‘types’ of comments and concerns.

64
Q

Where do you see the analytics industry moving? (Interview)

A

Fast, clean, and orchestrated.

65
Q

How do you know Mike? (Interview)

A

We worked for a while together at a non-profit.

66
Q

Limitations of Parameters (Tableau)

A

Parameters facilitate only four ways to represent data on a dashboard (seven in Quick Filters).
Parameters do not allow multiple selections in a filter.

67
Q

Aggregation of Data (Tableau)

A

Way to develop a scatter plot to compare and measure data values. Calculated form of a set of values that returns a single numeric value. A measure with values 1, 3, 5, 7 returns 1.

Default aggregations can be set for any measure (they can’t be user-defined). Default aggregations consist of sum, avg, median, count, etc.

68
Q

Disaggregation of Data (Tableau)

A

Way to develop a scatter plot to compare and measure data values. Refers to viewing each data source row while analyzing the data both independently and dependently.

69
Q

Data Blending (Tableau)

A

Combining of data from different sources and platforms.

ex: Blending data from an Excel file with that of an Oracle database to create a new dataset.

70
Q

What is a Context Filter? (Tableau)

A

Makes the process of filtering smooth and straightforward. Establishes a filtering hierarchy where all other filters refer to the context filter for their following operations. The other filters now process data that has been passed through the context filter.

Creating one or more context filters improves performance as users don’t need to create extra filters on a large data source. This reduces the query execution time.

71
Q

What are the limitations of context filters? (Tableau)

A

Tableau places filters in context. When a filter is set as context one, the software creates a temporary table for that particular context filter. Consists of all values that are not filtered by either context or custom SQL filter.

72
Q

What are the differences between .twb and .twbx? (Tableau)

A

.twb is the most common extension used in Tableau and presents an XML format file. Comprises all the information present in each dashboard and worksheet, for example styles and formatting applied to a worksheet and dashboard. This workbook does not contain any data. The packaged workbook merges the information in a Tableau workbook with local data available.

.twbx serves as a zip file, which will include any custom images. Allows users to share their work with other Tableau Desktop users and let them open it in Tableau Reader.

73
Q

XML

A

eXtensive Markup Language.

74
Q

What are Extracts? (Tableau Server)

A

Data extracts are the first copies or subdivisions of the actual data from an original source(s).

Workbooks using data extracts instead of using live database connections are faster since the extracted data is imported in Tableau Engine. After extraction users can publish the workbook which also publishes extracts in Server. (Workbook and extracts won’t refresh unless users apply a scheduled refresh on the extract.)

75
Q

What are Scheduled Refreshes? (Tableau Server)

A

Scheduling tasks set for data extract refresh.

When publishing a workbook with data extracts, extracts get refreshed automatically. Removes task of republishing the workbook every time the data involved is updated.

76
Q

Components of a Dashboard (Tableau)

A

Horizontal, Vertical, Text, Image Extract, Web [URL ACTION]

77
Q

Horizontal (Components of Dashboard(Tableau))

A

Horizontal layout containers allow the designer to group worksheets and dashboard components left to right across the page as well as edit the height of all elements at once.

78
Q

Vertical (Components of Dashboard(Tableau))

A

Vertical containers allow the user to group worksheets and dashboard components top to bottom down the page as well as edit the width of all elements at once.

79
Q

Image Extract (Components of Dashboard(Tableau))

A

A Tableau workbook is in XML format. In order to extract images Tableau applies codes to extract an image which can be stored in XML.

80
Q

Web [URL ACTION] (Components of Dashboard(Tableau))

A

An URL action is a hyperlink that points to a web page, file, or other web-based resource outside of Tableau.

You can substitute field values of a selection into the URL as parameters.

81
Q

How do you view underlying queries in Tableau?

A
  1. Create a performance recording which records the performance information about the main events you interact with. Users can view the performance metrics in a workbook. Help > Settings and Performance > Start Recording
  2. Review the Tableau Desktop logs. C:\Users\My Documents\My Tableau Repository

^For live connection to data source, check log.txt and tabprotosrv.txt
^For an extract check tdeserver.txt

82
Q

Page Shelf (Tableau)

A

The page shelf fragments the view into a series of pages with a different view on each page. User friendly and minimizes scrolling to view data, you can flip through the pages using specified controls and compare them.

83
Q

How do You do Performance Testing in Tableau?

A

Performance testing is done by testing Tableau Server with an application such as TabJolt which is a “point and run” load generator created to perform QA.

*QA

84
Q

Explain the Concept of Dual Axis. (Tableau)

A

Allows users to view two scales of two measures in the same graph. Let’s you compare multiple measures s at once, having two independent axis layered on top of one another.

85
Q

How many tables can you join in Tableau?

A

32 tables, table size is also limited to 255 columns (fields).

86
Q

How to remove ‘All’ options from a Tableau auto-filter?

A

The auto-filter provides a feature of removing ‘All’ options by simply clicking the down arrow in the auto-filter heading. After scroll down to ‘Customize’ in the dropdown and then uncheck ‘Show “All” Value’.

87
Q

How do you add custom color to Tableau?

A

Restart Tableau Desktop after you save .tps, from the Measures pane drag the color you want to ‘Color’. From the color legend menu arrow select Edit Colors in the dialog box and select the palette drop-down list to customize.

88
Q

What is Tableau?

A

Tableau is a business intelligence software that allows anyone to connect to respective data, and then visualize and create interactive, shareable dashboards.

89
Q

What are the supported datatypes in Tableau?

A

Boolean, Date, Date & Time, Geographical Values, Text/String, Number (Decimal), Number (Whole)

90
Q

What is the maximum no. of rows Tableau can utilize at one time?

A

What is the maximum no. of rows Tableau can utilize at one time?