0% found this document useful (0 votes)
10 views1 page

CSIasm (3 17 2022)

The document contains 10 SQL statements that perform various data selection and manipulation operations on database tables like Employees, Products, Suppliers, Customers and Orders. The statements include things like inserts, selects with filters and joins between multiple tables.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views1 page

CSIasm (3 17 2022)

The document contains 10 SQL statements that perform various data selection and manipulation operations on database tables like Employees, Products, Suppliers, Customers and Orders. The statements include things like inserts, selects with filters and joins between multiple tables.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

1.

INSERT INTO [Employees]


VALUES (11, "Newem", "Brand", "2022-03-17","EmpID11.pic", "New Employee")
2.
SELECT ProductName
FROM [Products]
3.
SELECT SupplierName, Address
FROM [Suppliers]
4.
SELECT FirstName, LastName
FROM [Employees]
5.
SELECT ContactName
FROM [Customers]
WHERE City = "Berlin"
6.
SELECT *
FROM [Customers]
WHERE City = "Berlin" or City = "London"
7.
SELECT ProductName, SupplierName
FROM [Suppliers], [Products]
where Suppliers.SupplierID=Products.SupplierID
8.
SELECT ProductName, CategoryName, SupplierName
FROM [Suppliers], [Categories], [Products]
where Suppliers.SupplierID=Products.SupplierID and Categories.CategoryID = Products.CategoryID
9.
SELECT OrderID
from OrderDetails
group by OrderID
having count(OrderID) >= 3
10.
select Employees.EmployeeID, Employees.LastName, Employees.FirstName, Employees.BirthDate,
Employees.Photo, Employees. Notes
from Employees, Orders
where Employees.EmployeeID= Orders.EmployeeID
group by Employees.EmployeeID
having count(Employees.EmployeeID) >= 5

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy