Search
 
SCRIPT & CODE EXAMPLE
 

SQL

sql table alias join

SELECT NAME AS "Employee Name" FROM PEOPLE;

SELECT p.NAME AS "Employee Name", s.SALARY AS "Employee Salary"
FROM PEOPLE p
JOIN SALARIES s ON p.ID = s.ID;
Comment

SQL JOIN and Aliases

SELECT C.customer_id, C.first_name, O.amount
FROM Customers AS C
JOIN Orders AS O
ON C.customer_id = O.customer;
Comment

PREVIOUS NEXT
Code Example
Sql :: not operator in sql 
Sql :: if sql 
Sql :: dump sql file to database postgres 
Sql :: SQL Server Splitting a string column into multiple rows, while repeating ID column 
Sql :: mysql date time string format for marshmellow field schema 
Sql :: Caused by: java.lang.RuntimeException: Unable to obtain credentials to communicate with the Cloud SQL API 
Sql :: last 2 mins sql server 
Sql :: sum row in sql 
Sql :: mdl ddl acl 
Sql :: intersect sql 
Sql :: group by sql not ordering issues 
Sql :: mysql join same table multiple times group by 
Sql :: cara menampilkan user di mysql terminal 
Sql :: oracle for loop on list 
Sql :: limit and offset in stored procedure mssql 
Sql :: SQL SUM() Function 
Sql :: offset in postgresql example 
Sql :: how to verify sequence result in oracle SQL 
Sql :: DIFFERENCE BETWEEN 2 COLN IN SQL 
Sql :: sql not exists 
Sql :: db count rows 
Sql :: select all columns except one sql 
Sql :: sql searching via key word 
Sql :: what is postgresql 
Sql :: sql order by 
Sql :: mariadb check constraint example? 
Sql :: apex for oracle 11g 
Sql :: how to reset autoincrement in sqlite java 
Sql :: sql update subtract value 
Sql :: mysql workbench primary key 
ADD CONTENT
Topic
Content
Source link
Name
6+2 =