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.
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 ratings0% 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.
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