SQL & Relational Data Bases Flashcards

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

SQL definition

A

structured query language is used to communicate with a database. SQL is used to manipulate databases and retrieve records

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

SELECT query

A

used to retrieve records from a data table

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

UPDATE query

A

used to manipulate records that already exist in a data table and change the values

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

INSERT query

A

used to add additional records into a data table

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

DELETE query

A

Used to remove records from a data table

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

Show how to: retrieve all records from TBLPRODDUTS data table

A

SEECT *
FROM tblProducts;

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

Show how to: retrieve the item,price and description fields from tblproducts when using the searchterm of ‘‘toy’’

A

SELECT item , price , descrition
FROM tblproducts
WHERE searchterm = ‘‘toy’’;

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

Show how to: change the password for employeeID 8 in the TBLEMPLOYEES data table

A

UPDATE tblemployees
SET password = ‘‘H%3nuAF$2’’
WHERE employeeID = 8;

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

Show how to: add a new record into the tblFriends table for firstname Rachel and surname Green

A

INSERT INTO(firstname,surname)
VALUES(‘‘Rachel’’ , ‘‘Green’’)

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

Show how to: remove all the student records in tblstudents but only when students are older than 31/08/2005

A

DEETE FROM tblstudents
WHEER DOB <31/08/2005

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