You are on page 1of 2

/*EjecutelassentenciasSQLacontinuacin. Anoteelresultado.

Basededatos:AdventureWorks*/

SELECT*FROMHumanResources.Department SELECT*FROMHumanResources.Department WHEREName='Sales' SELECTContactID,LoginID,BirthDate,MaritalStatusFROM HumanResources.Employee WHEREGender='M' SELECTContactID,LoginID,BirthDate,MaritalStatusFROM HumanResources.Employee WHEREGender='M'ANDMaritalStatus='M' SELECTContactID,LoginID,BirthDate,MaritalStatusFROM HumanResources.Employee WHEREGender='M'ORMaritalStatus='M' Quediferenciaencuentraenlasdosultimassentencias? SELECT*FROMProduction.ProductCategory WHEREName='Bikes'andProductCategoryID=3 SELECT*FROMProduction.ProductCategory WHEREName='Bikes'orProductCategoryID=3 Quediferenciaencuentraenlasdosultimassentencias? OperadoresLgicos SELECT*FROMProduction.Product WHEREName='Blade'orProductID=3andColor='Black' SELECT*FROMProduction.Product WHEREName='Blade'andProductID=3andColor='Black' SELECT*FROMProduction.Product WHEREName='Blade'andProductID=3orColor='Black' SELECT*FROMProduction.Product WHERE(Name='Blade'andProductID=3)orColor='Black' SELECT*FROMProduction.Product WHERE(Name='Blade'andProductID=3orColor='Black') Operadoresdecomparacin SELECT*FROMProduction.Product WHEREProductIDbetween1and200 SELECT*FROMProduction.Product WHEREProductID>300

SELECT*FROMProduction.Product WHEREProductID<>300 SELECTDISTINCT(Color)FROMProduction.Product WHEREMakeFlag=0 SELECT*FROMProduction.Product WHERENamelike'Adjus%'orNamelike'%Nut%' SELECT*FROMProduction.Product WHERENamelike'Adjus%'andNamelike'%Nut%' SELECTNameFROMProduction.Product WHEREProductModelID='23' SELECTNameFROMProduction.ProductModel WHEREProductModelID='23' Consultaanidada SELECTA.ProductNumber, A.ProductModelID, B.CatalogDescription, B.ProductModelID FROMProduction.ProductA, Production.ProductModelB WHERE(A.ProductID=B.ProductModelID)

You might also like