More Interview Questions Flashcards

1
Q

What is .Q.dpft?

A

Save table function in the Q namespace.

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

What is Q.hdpf?

A

Save tables function in the Q namespace.

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

What does exec mean?

A

returns selected rows and columns from a table.

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

What is each right?

A

applies a list of paramaters on the right to a single parameter on the left

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

What is each left?

A

applies a list of paramaters on the left to a single parameter on the right

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

What is each right?

A

applies a list of parameters on the right to a single parameter on the left

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

What are splayed tables why do we use them?

A

When a table is too large to fit into memory, we can break it into pieces and save each column individually under a directory with the table name.

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

What are segmented tables why do we use them?

A

Extension of partitioned databases. The root directory has a sym file and a par.txt file. Data partitions are stored in separate locations.

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

How can you modify on disk data.

A

using amend ~

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

What is .z.w

A

handle dictionary.

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

What is .z.p?

A

loca/UTC timespan.

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

.Q.par?

A

locate partition

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

What is par.txt?

A

defines the top-level partitioning of the database into directories. Each row of par.txt is a directory path. Each such directory is itself partitioned in the usual way, typically by date.

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

0h?

A

mixed list

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

How to delete from namespace?

A

delete from `.ns

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

What is a window join?

A

type of as of join.

17
Q

select syntax.

A

select <return> by <grouping> from <table> where <filter></filter></grouping></return>

18
Q

select 4 columns from a table

A

select date, sym, open, size from daily

19
Q

How do you select columns and rename them in one line.

A

select dt: date, stock:sym, open, sz: size from daily

20
Q

How to create a column from a function on an ald column?

A

select avg: 0.5*high+low from table

21
Q

How to find the sum of a column from a list

A

select sum column from table

22
Q

How would you find the wavg price of google stock

A

SELECT vwap:size wavg price
FROM trade
WHERE sym=`GOOG

23
Q

How to find indexes of all Apple stocks

A

where table[sym] = AAPL

24
Q

how to find the max size of each sym

A

select max size by sym from table