0% found this document useful (0 votes)
3 views

SQL Syntax

The document provides SQL syntax examples for various operations including SELECT statements, JOINs, and WHERE clauses to manipulate and retrieve data from databases. Additionally, it outlines the concept of Business Analysis, which focuses on identifying organizational needs and recommending solutions to enhance value and overcome obstacles. This practice is essential for adapting to changes in business and regulatory environments to achieve organizational goals.

Uploaded by

Divya S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

SQL Syntax

The document provides SQL syntax examples for various operations including SELECT statements, JOINs, and WHERE clauses to manipulate and retrieve data from databases. Additionally, it outlines the concept of Business Analysis, which focuses on identifying organizational needs and recommending solutions to enhance value and overcome obstacles. This practice is essential for adapting to changes in business and regulatory environments to achieve organizational goals.

Uploaded by

Divya S
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 3

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.

You might also like