Sql Examen
Enviado por sukidayo • 10 de Marzo de 2013 • 577 Palabras (3 Páginas) • 298 Visitas
USE Northwind
GO
SELECT * FROM Customers
GO
select ContactName,PostalCode,Country from Customers--preguta1
select ContactName,PostalCode,Country from Customers--preguta2
where Country in ('Mexico','Francia','spain')--preguta2
select * from Products
select CategoryID,UnitPrice,UnitsInStock from Products--preguta3
select CategoryID,UnitPrice,UnitsInStock from Products--preguta4
where UnitsInStock between 20 and 50--4
select CategoryID,UnitPrice,UnitsInStock from Products--preguta5
where UnitsInStock<20--preguta5
select * from Products
where ProductName like 'M%'--preguta6
select * from Products
where ProductName like '%s%'--preguta7
select*from Employees
select EmployeeID,LastName,FirstName from Employees--preguta8
USE Northwind
GO
SELECT * FROM Customers
GO
select ContactName,PostalCode,Country from Customers--preguta1
select ContactName,PostalCode,Country from Customers--preguta2
where Country in ('Mexico','Francia','spain')--preguta2
select * from Products
select CategoryID,UnitPrice,UnitsInStock from Products--preguta3
select CategoryID,UnitPrice,UnitsInStock from Products--preguta4
where UnitsInStock between 20 and 50--4
select CategoryID,UnitPrice,UnitsInStock from Products--preguta5
where UnitsInStock<20--preguta5
select * from Products
where ProductName like 'M%'--preguta6
select * from Products
where ProductName like '%s%'--preguta7
select*from Employees
select EmployeeID,LastName,FirstName from Employees--preguta8
USE Northwind
GO
SELECT * FROM Customers
GO
select ContactName,PostalCode,Country from Customers--preguta1
select ContactName,PostalCode,Country from Customers--preguta2
where Country in ('Mexico','Francia','spain')--preguta2
select * from Products
select CategoryID,UnitPrice,UnitsInStock from Products--preguta3
select CategoryID,UnitPrice,UnitsInStock from Products--preguta4
where UnitsInStock between 20 and 50--4
select CategoryID,UnitPrice,UnitsInStock from Products--preguta5
where UnitsInStock<20--preguta5
select * from Products
where ProductName like 'M%'--preguta6
select * from Products
where ProductName like '%s%'--preguta7
select*from Employees
select EmployeeID,LastName,FirstName from Employees--preguta8
USE Northwind
GO
SELECT * FROM Customers
GO
select ContactName,PostalCode,Country from Customers--preguta1
select ContactName,PostalCode,Country from Customers--preguta2
where Country in ('Mexico','Francia','spain')--preguta2
select * from Products
select CategoryID,UnitPrice,UnitsInStock from Products--preguta3
select CategoryID,UnitPrice,UnitsInStock from Products--preguta4
where UnitsInStock between 20 and 50--4
select CategoryID,UnitPrice,UnitsInStock from Products--preguta5
where UnitsInStock<20--preguta5
select * from Products
where ProductName like 'M%'--preguta6
select * from Products
where ProductName like '%s%'--preguta7
select*from Employees
select EmployeeID,LastName,FirstName from Employees--preguta8
USE Northwind
GO
SELECT * FROM Customers
GO
select ContactName,PostalCode,Country from Customers--preguta1
select ContactName,PostalCode,Country from Customers--preguta2
where Country in ('Mexico','Francia','spain')--preguta2
select * from Products
select CategoryID,UnitPrice,UnitsInStock from Products--preguta3
select CategoryID,UnitPrice,UnitsInStock from Products--preguta4
where UnitsInStock between 20 and 50--4
select CategoryID,UnitPrice,UnitsInStock from Products--preguta5
where UnitsInStock<20--preguta5
select * from Products
where ProductName like 'M%'--preguta6
select * from Products
where ProductName like '%s%'--preguta7
select*from Employees
select EmployeeID,LastName,FirstName from Employees--preguta8
USE Northwind
GO
SELECT * FROM Customers
GO
select ContactName,PostalCode,Country from Customers--preguta1
select ContactName,PostalCode,Country from Customers--preguta2
where Country in ('Mexico','Francia','spain')--preguta2
select * from Products
select CategoryID,UnitPrice,UnitsInStock from Products--preguta3
select CategoryID,UnitPrice,UnitsInStock from Products--preguta4
where UnitsInStock between 20 and 50--4
select CategoryID,UnitPrice,UnitsInStock from Products--preguta5
where UnitsInStock<20--preguta5
select * from Products
where ProductName like 'M%'--preguta6
select * from Products
where ProductName like '%s%'--preguta7
select*from Employees
select EmployeeID,LastName,FirstName from Employees--preguta8
...