
11-SQL Aliases
Presentation
•
Computers
•
6th - 8th Grade
•
Practice Problem
•
Hard
JOEL Colon
FREE Resource
6 Slides • 4 Questions
1
Un ALIAS es un apodo o nombre temporero dado a una tabla o columna. Usamos el keyword AS para especificar el apodo
SELECT column_name AS Apodo
FROM table_name;
SELECT column_name
FROM table_name AS Apodo;
2
Vamos a darles apodos:
SELECT CustomerID AS ID, CustomerName AS Customer
FROM Customers;
3
Apodos compuestos por espacios deben ir encapsulados con brackets o doble comilla:
SELECT CustomerName AS Customer, ContactName AS [Contact Person]
FROM Customers;
4
SELECT CustomerName,
Address + ', ' + PostalCode + ' ' + City + ', ' + Country AS Address
FROM Customers;
Esta consulta logró FUSIONAR 4 columnas dentro de una celda.
Observa el uso del simbolo SUMA para concatenar las columnas en una sola.
5
SELECT Orders.OrderID, Orders.OrderDate, Customers.CustomerName
FROM Customers, Orders
En esta consulta FUSIONAMOS 2 tablas referenciando tabla.columna
6
SELECT Orders.OrderID, Orders.OrderDate, Customers.CustomerName
FROM Customers, Orders
Podemos hacer lo mismo usando ALIASES... o sea, APODOS... veamos:
SELECT o.OrderID, o.OrderDate, c.CustomerName
FROM Customers AS c, Orders AS o
C = Customers
O = Orders
7
Fill in the Blanks
8
Fill in the Blanks
9
Fill in the Blanks
10
Fill in the Blanks
Un ALIAS es un apodo o nombre temporero dado a una tabla o columna. Usamos el keyword AS para especificar el apodo
SELECT column_name AS Apodo
FROM table_name;
SELECT column_name
FROM table_name AS Apodo;
Show answer
Auto Play
Slide 1 / 10
SLIDE
Similar Resources on Wayground
8 questions
Introduction to Computer Systems
Presentation
•
6th - 8th Grade
10 questions
Proper Nouns Review
Presentation
•
6th - 8th Grade
9 questions
Parts of Speech!
Presentation
•
6th - 8th Grade
9 questions
Loops and Nested Loops
Presentation
•
6th - 8th Grade
9 questions
CSD Unit 3 - Lesson 24 Functions Part 1
Presentation
•
6th - 8th Grade
10 questions
Keyboard Shortcuts
Presentation
•
7th - 8th Grade
8 questions
Internal Hardware
Presentation
•
6th - 8th Grade
7 questions
Tiana
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