

MY SQL
Presentation
•
Computers
•
11th - 12th Grade
•
Practice Problem
•
Hard
Saritha Vijayachandran
Used 14+ times
FREE Resource
11 Slides • 21 Questions
1
MY SQL

2
Database
Organized collection of data
3
Field
Set of characters that are used together to represent specific data elements/ data item. Individual data item within a record is known as a field
RECORD
Collection of fields is termed as record
RELATION
A collection of logically related records is called file/ table/ relation.
4
Database Management System (DBMS)
Software that allows users to define create, access and manage database(s) is termed as Database Eg., MS Access, MySQL, PostgreSQL, SQLite, Microsoft SQL Server, Oracle, SAP, dBASE, Foxpro etc.
5
Database Management System
Stores data in structured way
Query the database
Sort and manipulate the data in database
Validate the data entered and check for inconsistencies
Produce flexible reports, both on paper and screen
6
Advantages of DBMS
Control Data Redundancy
Data Consistency
Sharing of Data
Reduced Programming Effort
Database Enforces Standards
Improved Data Integrity
Privacy and Security
7
Relational Data Model
Data organized in two dimensional tables called relations
RELATIONAL DATABASE
A relational database is a collection of data and items organized as a set of tables from which data can be retrieved easily and efficiently.
8
Attributes
Columns in a database
TUPLE
Each row in a table is known as tuple
Cardinatlity of Relation
Number of records or tuples
Degree of Relation
Number of columns or attributes
Domain of Relation
Set of all possible values that an attribute may contain
9
Primary Key
An attribute or a group of attributes that can uniquely identify tuples within the relation.
CANDIDATE KEY
A candidate key is one that is capable of becoming the primary key
ALTERNATE KEY
Candidate key that is not a primary key
FOREIGN KEY
A non-key attribute whose value(s) are derived from the primary key of some other table is known as foreign key
10
Difference between SQL and MySQL
SQL is a standard language for accessing and manipulating databases. SQL commands are used to create, transform and retrieve information from RDBMS.
MySQL
is an open source and freely available RDBMS that uses SQL.
11
Types of commands
DDL (Data Definition Language) – Create, use, alter, drop
DML (Data Manipulation Language) – Select, insert, update, delete
DCL (Data Control Language)
TCL (Transaction Control Language)
12
Multiple Choice
DML expands to
Data Management Language
Data Manipulation Language
Data Manipulative Language
13
Multiple Choice
In Relational Database Model, a table is also referred to as a
tuple
attribute
relation
degree
14
Multiple Choice
The total number of tuples in a relation is referred to as
Cardinality of the relation
Degree of the relation
Cartesian product
None of the above
15
Multiple Choice
Set of values from which an attribute takes values from.
degree
cardinality
domain
table
16
Multiple Choice
Which of the following statements are invalid?
Statement 1 : A relation can have multiple candidate keys
Statement 2 : A relation can have multiple primary keys
Statement 3 : A relation can have multiple columns with Unique constraint
17
Multiple Choice
Degree of a relation refers to the total number of
rows
columns
tables
databases
18
Multiple Choice
Aditi wants to apply a constraint on a table “student” , where in she wants to restrict the marks entered as values between only 1 and 100. Which of the following constraints should she use?
Default
Check
Primary Key
Unique
19
Multiple Choice
Which of the following are DDL commands?
Create table , Insert into , Drop table
Alter table, Update , Drop table
Drop table, Alter table, Create table
None of the above
20
Multiple Choice
An attribute in a relation is a foreign key if the _______ key from one relation Is used as an attribute in that relation.
Candidate
Primary
Alternate
None of the above
21
Multiple Choice
A _________ integrity constraint requires that the values appearing in specified attributes of any tuple in the referencing relation also appear in specified attributes of at least one tuple in the referenced relation.
Referential
Referencing
Primary
None of the above
22
Multiple Choice
The primary key must be
Unique
Not null
Both Unique and Not nul
Either Unique or Not null
23
Multiple Choice
What is a candidate key in MySQL?
Used to identify a column
Alias for foreign key
Alias for primary key
Used to uniquely identify a row
24
Multiple Choice
A table can have
One primary key and more than one candidate key
One candidate key and one primary key
More than one primary, alternate keys
One candidate key only.
25
Multiple Choice
Relationship between Primary key (P), Alternate Keys(A), and Candidate keys(C) are:
P=A+C
C=P+A
A=P-C
A=P+C
26
Fill in the Blanks
Type answer...
27
Fill in the Blanks
Type answer...
28
Fill in the Blanks
Type answer...
29
Fill in the Blanks
Type answer...
30
Fill in the Blanks
Type answer...
31
Fill in the Blanks
Type answer...
32
Fill in the Blanks
Type answer...
MY SQL

Show answer
Auto Play
Slide 1 / 32
SLIDE
Similar Resources on Wayground
26 questions
Compression
Presentation
•
11th Grade
24 questions
Matrices Review
Presentation
•
11th - 12th Grade
24 questions
PYTHON - Built In Functions
Presentation
•
11th Grade
26 questions
Intro to the periodic table
Presentation
•
10th - 12th Grade
24 questions
Ser LESSON
Presentation
•
KG - University
24 questions
วิทยาการข้อมูล
Presentation
•
11th Grade
26 questions
Forms of Government
Presentation
•
11th - 12th Grade
26 questions
BTEC Unit 1: E3 Using and manipulating data
Presentation
•
KG - 11th Grade
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
10 questions
Fact Check Ice Breaker: Two truths and a lie
Quiz
•
5th - 12th Grade
10 questions
Video Games
Quiz
•
6th - 12th Grade
15 questions
Memorial Day Trivia
Quiz
•
KG - 12th Grade
12 questions
Name that Candy
Quiz
•
KG - 12th Grade
22 questions
Regular Preterite -AR-ER-IR-
Quiz
•
12th Grade
20 questions
Guess The App
Quiz
•
KG - Professional Dev...
30 questions
K/H Final Review Part 1
Quiz
•
9th - 12th Grade
40 questions
NCFE Earth and Environmental Science Released Test
Quiz
•
9th - 12th Grade