DML

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
full-widthPodcast
1
Card Sorting

1/27

flashcard set

Earn XP

Last updated 7:21 AM on 9/21/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

28 Terms

1
New cards

What is Data Manipulation Commands?

are used to manipulate the data stored in database tables

2
New cards

INSERT

Insert row(s) into a table.

3
New cards

SELECT

Selects attributes from rows in one or more tables

4
New cards

WHERE

Restricts the selection of rows based on a conditional expressions

5
New cards

GROUP BY

Groups the selected rows based on one or more attributes

6
New cards

HAVING

Restricts the selection of grouped rows based on a condition

7
New cards

ORDER BY

Orders the selected rows based on one or more attributes

8
New cards

UPDATE

Modifies an attribute’s values in one or more table’s rows

9
New cards

DELETE

Deletes one or more rows from a table.

10
New cards

Comparison Operators
=,<,>,<=,>=,<>,!=

Used in conditional expressions

11
New cards

Logical Operators

AND/OR/NOT

Used in conditional expressions

12
New cards

Special Operators
BETWEEN

Checks whether an attribute value is within a range.

13
New cards

Special Operators
LIKE

Checks whether an attribute values matches a given string pattern

14
New cards

Special Operators
IN

Checks whether an attribute value matches any value within a value list

15
New cards

Special Operators
EXISTS

Checks whether a subquery returns any rows

16
New cards

Aggregate Functions
COUNT

Returns the number of rows with non-null values for a given column

17
New cards

Aggregate Functions
MIN

Returns the minimum attribute value found in a given column

18
New cards


Aggregate Functions
MAX

Returns the maximum attribute value found in a given column

19
New cards

Aggregate Functions
SUM

Returns the sum of all values for a given column

20
New cards

Aggregate Functions
AVG

Returns the average of all values for a given column

21
New cards

INSERT Command

Command used to enter data into a table
EX. INSERT INTO customer (cus_code,cus_lname,cus_fname,cus_mname,cu s_areacode,cus_phone) VALUES ('CUS8','Santos','Anna','C','8601','342-0078');

22
New cards

tablename

represents the table or relation

23
New cards

value

represents the value to be inserted

24
New cards

DELETE Command

Command used to delete table rows
EX. DELETE FROM tablename [WHERE conditionlist];

25
New cards

conditionlist

used in a where clause
-this is optional in a delete command

26
New cards

Select command

Used to list the contents of a table
EX. SELECT p_code,p_description,p_price,p_quantity,p_type ,v_code FROM product;

27
New cards

Selecting Rows with Conditional Restrictions

-Select table contents by placing restrictions on the rows to be included in output
-Done using WHERE clause in SELECT statement

EX. SELECT *FROM product WHERE v_code='21228';

28
New cards