SQL Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What SQL datatypes could be used for a fractional number?

A

FLOAT

REAL

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

What SQL datatypes can be used for dates and time

A

DATE
TIME
DATETIME

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

What is one way of defining a customer ID (int) value?

A

CustomerID INT PRIMARY KEY

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

What are the main clauses of a select query?

A

SELECT
FROM
WHERE

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

What symbol denotes all fields in a table?

A

*

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

What clause orders items?

A

ORDER BY

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

Write a query to select all fields from a sales table where value is more than £500

A

SELECT * FROM SALES WHERE Value > 500;

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

What is the format to add values into a SQL table

A

INSERT INTO VALUES ;

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

What are the main clauses of an update query?

A

UPDATE
SET
WHERE

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