2.2 Programming Fundamentals Flashcards
1
Q
Whats casting
A
Changing the data type of a variable
2
Q
What is SQL
A
Used to search database tables for specific data.
3
Q
Whats the overall purpose of SQL?
A
SCRUD:
to
Search,
Create,
Read,
Update,
Delete data.
4
Q
What does the SQL statement SELECT do
A
For searching and reading
SELECT (field names) from (table name)
5
Q
What does the SQL command WHERE do
A
For filtering so that only some records are returned
SELECT * FROM results WHERE name=”Bob”
6
Q
Whats a procedure
A
Set of instructions stored under one name (a sub program)
7
Q
Whats a function
A
A sub program like a procedure but it always returns a value