SQL Models Flashcards

1
Q

SQL Skills

A

Acquire skills in SQL to be effective in modelling.( Not an alternative).

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

Where we can achive SQL

A
  1. Filter
  2. Input parameter
  3. Functions
  4. Procedures.
  5. Analytical priveleges.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

DML

A

Insert , Update, delete , read

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

SQL- Declarative language

A

You tell what to do , not how to do

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

Global Temporary vs local temp

A

Global Temp - table available globally but data is visible to current session.
Local temp - Table and data available to local session only.

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

Temporal properties

A

Not supported in row based tables.

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

System versioned table and application versioned table.

A

Time travel.

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

System versioned table and application versioned table.

A

Time travel.

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

Consumption of Hierarchy in SQL

A
  1. DIM view +STAR join combination.
  2. Special parameter “Enable hierarchy”that allow the hierarchy.
  3. Semantics-> SQL access , enable the hierarchy.
  4. LEVEL and parent child , both are allowed.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Input mapping for Table function

A
  1. Data Source Column
  2. Input parameter.
  3. Constant
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Procedures

A

R ,
SQL
L

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

Procedures

A

One or more Inputs

One or more output

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

Function

A

Only SQL

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

Derive value for input parameter

A

Procedure and Scalar function.

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

Full outer

A

Restriction : In star join only 1 DIM can be supported.

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

Temporal Join

A
  1. Only Supported in Star node of Cube with Star Join.
  2. Join Type - Inner.
  3. Allowed
    a) Timestamp
    b) Date
    c) Integer.
17
Q

DIM - Shared columns

A

Can not rename the Shared col however we can create alias.

18
Q

Multi Join

A

Multi Store Order

  1. Outside in.
  2. Inside out.
19
Q

Non Equi Join

A
  1. Left Outer
  2. Right outer
  3. Full Outer
  4. Inner
    Can be used on above CV with Operator condition.
    Operator can be different on different join fields.
20
Q

Aggregation Functions

A
  1. Sum
  2. Min
  3. Max
  4. Ave
  5. STD DEV
  6. Variance

It should not be used in Stacked scenerio.

21
Q

Aggregation

A

Calculated Col is always calculated after aggregation