SQL Syntax
SELECT DISTINCT Country FROM Customers;
SELECT * FROM Customers
WHERE Country='Mexico';
SELECT * FROM Customers
WHERE Country = 'Germany'
AND City = 'Berlin'
AND PostalCode > 12000;
JOINS
SELECT ProductID, ProductName, CategoryName
FROM Products
INNER JOIN Categories ON Products.CategoryID = Categories.CategoryID;
SELECT column_name(s)
FROM table1
LEFT JOIN table2
ON table1.column_name = table2.column_name;
SELECT SupplierName
FROM Suppliers
WHERE EXISTS (SELECT ProductName FROM Products WHERE Products.SupplierID =
Suppliers.supplierID AND Price < 20);
SELECT column_name(s)
FROM table1
LEFT JOIN table2
ON table1.column_name = table2.column_name
WHERE table2.column_name is NULL
SELECT *
FROM Customers
WHERE Country = 'Germany' OR Country = 'Spain';
SELECT * FROM Customers
WHERE NOT Country = 'Spain';
SELECT * FROM Products
WHERE Price BETWEEN 10 AND 20;
SELECT column_name(s)
FROM table1
RIGHT JOIN table2
ON table1.column_name = table2.column_name;
SELECT Customers.CustomerName, Orders.OrderID
FROM Customers
FULL OUTER JOIN Orders ON Customers.CustomerID=Orders.CustomerID
ORDER BY Customers.CustomerName;
Business Analysis
Business Analysis is the practice of enabling change in an organizational context, by defining needs a
recommending solutions that deliver value to stakeholders.
Business analysis is the business process of assessing an organization’s structure, processes, technolo
and capabilities to identify and define solutions to roadblocks that impede the achievement of
organizational goals. It enables adaptation in an ever-changing business and regulatory environment
allow the organization to grow in the manner defined by management.