
4-SQL Logica Booleana
Presentation
•
Computers
•
6th - 8th Grade
•
Practice Problem
•
Hard
JOEL Colon
FREE Resource
8 Slides • 8 Questions
1
El operador AND muestra la búsqueda cuando todos los criterios son CIERTOS
SELECT * FROM Customers
WHERE Country='Germany' AND City='Berlin';
Esta consulta mostrará todas las columnas
Pero solo donde los records coincidan en la columna COUNTRY con Germany y columna CITY con Berlin
2
Observa que Berlin y Germany coinciden mutuamente en el mismo record porque usamos el operador AND
SELECT * FROM Customers
WHERE Country='Germany' AND City='Berlin';
3
Analiza la diferencia de estas 2 clausulas:
SELECT * FROM Customers
WHERE Country='Germany' AND City='Berlin';
SELECT * FROM Customers
WHERE City IN ('Paris','London');
AND - Filtra 2 columnas diferentes
IN - Filtra la misma columna con 2 criterios IN = INCLUYE
4
El operador OR muestra la búsqueda cuando alguno de los criterios son CIERTOS
SELECT * FROM Customers
WHERE Country='Germany' OR City='München';
Esta consulta mostrará todas las columnas
Pero solo donde los records coincidan en la columna COUNTRY con Germany y columna CITY con München
5
Observa que München y Germany coinciden mutuamente en el mismo record porque usamos el operador OR
SELECT * FROM Customers
WHERE Country='Germany' AND City='München';
6
El operador NOT muestra la búsqueda cuando EXCLUYE alguno de los criterios
SELECT * FROM Customers
WHERE NOT Country='Germany';
Esta consulta mostrará todas las columnas
Pero solo donde los records EXCLUYAN en la columna COUNTRY a Germany
7
Observa que la consulta no incluye a Germany en la columna Country
SELECT * FROM Customers
WHERE NOT Country='Germany';
8
Puedes mezclar (anidar) los operadores dentro del comando
SELECT * FROM Customers
WHERE Country='Germany' AND (City='Berlin' OR City='München');
9
Multiple Choice
Operador que obliga a que todas las condiciones sean CIERTAS.
AND
OR
NOT
=
10
Multiple Choice
Operador que considera que ALGUNA de las condiciones sea Cierta aunque haya otra que sea Falsa. O sea, que te da la opción.
OR
AND
NOT
!=
11
Multiple Choice
Operador que te permite mostrar 2 criterios en LA MISMA columna.
IN
AND
LIKE
BETWEEN
12
Multiple Choice
Operador que te permite mostrar 2 criterios en DIFERENTES columnas.
AND
IN
LIKE
BETWEEN
13
Multiple Choice
Operador que EXCLUYE algún dato de la columna:
NOT
>
WHERE
IN
14
Fill in the Blanks
15
Fill in the Blanks
16
Fill in the Blanks
El operador AND muestra la búsqueda cuando todos los criterios son CIERTOS
SELECT * FROM Customers
WHERE Country='Germany' AND City='Berlin';
Esta consulta mostrará todas las columnas
Pero solo donde los records coincidan en la columna COUNTRY con Germany y columna CITY con Berlin
Show answer
Auto Play
Slide 1 / 16
SLIDE
Similar Resources on Wayground
10 questions
Washington precedents
Presentation
•
7th Grade
14 questions
US Today 4: Citizen Rights and Responsibilities of Citizens
Presentation
•
6th - 8th Grade
13 questions
Understanding Sampling
Presentation
•
7th Grade
11 questions
Ancient Rome Geography and Mapping
Presentation
•
6th - 8th Grade
14 questions
Economic Systems
Presentation
•
7th Grade
8 questions
3/2 African American Spirituals: Hidden Messages
Presentation
•
6th - 8th Grade
11 questions
Teenager 5 Session 24: Pronunciation & Speaking
Presentation
•
KG
14 questions
Making Inferences
Presentation
•
6th - 8th 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