

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
25 questions
Nuclear Chemistry Review
Presentation
•
12th Grade
23 questions
PERMAINAN BOLA KECIL (TENIS MEJA)
Presentation
•
11th Grade
26 questions
Work/Power/Energy
Presentation
•
11th Grade
24 questions
Aggregate Demand and Supply
Presentation
•
12th Grade
27 questions
Data Science
Presentation
•
11th Grade
27 questions
APES Math Review
Presentation
•
11th - 12th Grade
24 questions
Computer Networks
Presentation
•
11th Grade
21 questions
Chromebook Tips Lesson
Presentation
•
12th Grade
Popular Resources on Wayground
20 questions
"What is the question asking??" Grades 3-5
Quiz
•
1st - 5th Grade
20 questions
“What is the question asking??” Grades 6-8
Quiz
•
6th - 8th Grade
10 questions
Fire Safety Quiz
Quiz
•
12th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
34 questions
STAAR Review 6th - 8th grade Reading Part 1
Quiz
•
6th - 8th Grade
20 questions
“What is the question asking??” English I-II
Quiz
•
9th - 12th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
47 questions
8th Grade Reading STAAR Ultimate Review!
Quiz
•
8th Grade
Discover more resources for Computers
10 questions
Fire Safety Quiz
Quiz
•
12th Grade
20 questions
“What is the question asking??” English I-II
Quiz
•
9th - 12th Grade
10 questions
Fire Prevention
Quiz
•
9th - 12th Grade
41 questions
US History STAAR Review
Quiz
•
11th Grade
20 questions
Grammar
Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)
Quiz
•
9th - 12th Grade
20 questions
verbos reflexivos en español
Quiz
•
9th - 12th Grade
20 questions
US History EOC STAAR 2022 Review Set 1
Quiz
•
11th Grade