SQL Flashcards

1
Q

Name domain types in SQL.

A

char, varchar, int, smallint, numeric, real, double, float

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

Name integrity constraint in Create Table query.

A

not null and Primary Key

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

Give syntax of Alter table.

A

alter table r add A D

alter table r drop A

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

Name aggregate functions of SQL.

A
avg
min
max
sum
count
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Give syntax of view.

A

create view v as

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