Use Select As As As From As As As On On: 'Pidion in Sekel' ' Pidion As $' 'Quarter'
Use Select As As As From As As As On On: 'Pidion in Sekel' ' Pidion As $' 'Quarter'
use Northwind
on od.OrderID=o.OrderID
on o.CustomerID=c.CustomerID
1348
7
use Northwind
use Northwind
inner join
(select c.CompanyName, c.Country
from Customers as c
inner join orders as o
inner join [Order Details] as od
inner join Products as p
inner join Suppliers as s
on s.SupplierID=p.SupplierID
on p.ProductID=od.ProductID
on od.OrderID=o.OrderID
on o.CustomerID=c.CustomerID
where c.Country in ('Brazil' , 'UK' ) and datepart(quarter,o.OrderDate) in
(2,4)
and (p.UnitsInStock between 5 and 35) and s.Country like '%[DCA]') as q2
on q2.CompanyName>q1.CompanyName