
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
10 questions
Flight of Icarus
Presentation
•
7th - 8th Grade
11 questions
Constructed Response Practice
Presentation
•
6th - 8th Grade
11 questions
Maps for Science
Presentation
•
6th - 8th Grade
6 questions
Analyzing "Calling Dreams"-Theme
Presentation
•
6th - 8th Grade
9 questions
Learn HTML
Presentation
•
6th - 7th Grade
9 questions
Feudalism in Europe
Presentation
•
7th Grade
9 questions
How to send a great email
Presentation
•
5th - 7th Grade
7 questions
QUIZ PRESENTATION ENGLISH
Presentation
•
KG
Popular Resources on Wayground
24 questions
PBIS-HGMS Day 10
Quiz
•
6th - 8th Grade
10 questions
HCS SCI 03 Summer School Review 3
Quiz
•
3rd Grade
11 questions
Home Scope
Quiz
•
7th - 8th Grade
15 questions
HCS SCI 05 Summer School Assessment 3 Review
Quiz
•
5th Grade
35 questions
Lufkin Road Middle School Student Handbook & Policies Assessment
Quiz
•
7th Grade
18 questions
Geo 11.3 Area of Circles and Sectors
Quiz
•
9th - 11th Grade