ICT - Databases

0.0(0)
studied byStudied by 0 people
0.0(0)
full-widthCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/13

encourage image

There's no tags or description

Looks like no tags are added yet.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

14 Terms

1
New cards

CREATE DATABASE puppets;

What is the MySQL command to create a database?

2
New cards

USE DATABASE puppets;

What is the MySQL command to switch to the database you would like to use?

3
New cards

VARCHAR

Stands for variable character; a data type that is used to store strings of letters, numbers, and symbols

4
New cards

DESCRIBE muppets;

What do you do to check the structure of the table created in MySQL?

5
New cards

CREATE muppets;

What do you do to create a table in MySQL?

6
New cards

AUTO-INCREMENT

Allows a unique number to be generated automatically when a new record is inserted into a table.

7
New cards

INSERT INTO sesame_street

How do you populate the second table with information?

8
New cards

SELECT muppet_performers FROM muppets;

How do you display information from the first table based only on one field?

9
New cards

SELECT muppet_performers from muppets LIMIT 2;

How do you display information from the first table based only on one field, while limiting the number of rows?

10
New cards

UPDATE muppets; SET title = ‘Jim Henson’ WHERE character = ‘Kermit’;

How do you change information in one cell while using another cell as an identifier?

11
New cards

SELECT * FROM muppets JOIN sesame_street USING (muppet_performers)

How do you display all information from the two tables, joining them through a common key?

12
New cards

DELETE from muppets WHERE muppet_performers = ‘Jim Henson’;

How do you delete information in one cell using information from another identifying cell (like getting rid of a whole row)?

13
New cards

DROP TABLE muppets;

How do you remove one table from the database?

14
New cards

MySQL Database

A system that lets you store, organize, retrieve, and manipulate data efficiently using a structured format.