

Prepara tus exámenes y mejora tus resultados gracias a la gran cantidad de recursos disponibles en Docsity
Gana puntos ayudando a otros estudiantes o consíguelos activando un Plan Premium
Esta página no es visible en la vista previa
¡No te pierdas las partes importantes!


select * from Customers order by ContactName
select * from Orders order by OrderDate desc
select * from OrderDetails order by Quantity asc
select * from Products where ProductName like 'p%' and UnitPrice between 10 and 120
select * from Customers where Country in('usa','francia','uk')
select * from Products where (Discontinued= 1 and UnitsInStock= 0 ) and CategoryID in( 1 , 3 , 4 , 7 )
select * from Orders where EmployeeID in( 2 , 5 , 7 ) AND YEAR(OrderDate)='1996'
select * from Customers where Fax is not null
select * from Customers where Country ='usa' and Fax is null
select * from Employees where ReportsTo is not null