Skip to content

queries using the Select, Where, Inner Join operators

Notifications You must be signed in to change notification settings

AskarBisembaev/SQL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

SQL

Here are examples of queries database.

I used:

  1. SQL to create queries
  2. the Тorthwind database from which I took the data

Here is an example of one of the requests:

USE Northwind
GO

SELECT dbo.Products.ProductName AS [Product name], 
CAST(COUNT(dbo.[Order Details].OrderID) AS nvarchar) AS [Quantity of orders]
FROM dbo.Products INNER JOIN dbo.[Order Details]
ON dbo.Products.ProductID = dbo.[Order Details].ProductID
WHERE dbo.[Order Details].OrderID BETWEEN 10258 AND 10585
GROUP BY dbo.Products.ProductName, dbo.Products.ProductID
ORDER BY dbo.Products.ProductID```

About

queries using the Select, Where, Inner Join operators

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages