Webbserverprogrammering - SQL del 1 - sök data

Övning 1

Visa all information om alla anställda (employees).

9 rader

EmployeeIDLastNameFirstNameTitleTitleOfCourtesyBirthDateHireDateAddressCityRegionPostalCodeCountryHomePhoneExtensionPhotoNotesReportsToPhotoPathSalary
1DavolioNancySales RepresentativeMs.1948-12-08 00:00:001992-05-01 00:00:00507 - 20th Ave. E.Apt. 2ASeattleWA98122USA(206) 555-98575467imgimg2http://accweb/emmployees/davolio.bmp2954.55
2FullerAndrewVice President, SalesDr.1952-02-19 00:00:001992-08-14 00:00:00908 W. Capital WayTacomaWA98401USA(206) 555-94823457imgimghttp://accweb/emmployees/fuller.bmp2254.49
3LeverlingJanetSales RepresentativeMs.1963-08-30 00:00:001992-04-01 00:00:00722 Moss Bay Blvd.KirklandWA98033USA(206) 555-34123355imgimg2http://accweb/emmployees/leverling.bmp3119.15
4PeacockMargaretSales RepresentativeMrs.1937-09-19 00:00:001993-05-03 00:00:004110 Old Redmond Rd.RedmondWA98052USA(206) 555-81225176imgimg2http://accweb/emmployees/peacock.bmp1861.08
5BuchananStevenSales ManagerMr.1955-03-04 00:00:001993-10-17 00:00:0014 Garrett HillLondonSW1 8JRUK(71) 555-48483453imgimg2http://accweb/emmployees/buchanan.bmp1744.21
6SuyamaMichaelSales RepresentativeMr.1963-07-02 00:00:001993-10-17 00:00:00Coventry House Miner Rd.LondonEC2 7JRUK(71) 555-7773428imgimg5http://accweb/emmployees/davolio.bmp2004.07
7KingRobertSales RepresentativeMr.1960-05-29 00:00:001994-01-02 00:00:00Edgeham Hollow Winchester WayLondonRG1 9SPUK(71) 555-5598465imgimg5http://accweb/emmployees/davolio.bmp1991.55
8CallahanLauraInside Sales CoordinatorMs.1958-01-09 00:00:001994-03-05 00:00:004726 - 11th Ave. N.E.SeattleWA98105USA(206) 555-11892344imgimg2http://accweb/emmployees/davolio.bmp2100.5
9DodsworthAnneSales RepresentativeMs.1966-01-27 00:00:001994-11-15 00:00:007 Houndstooth Rd.LondonWG2 7LTUK(71) 555-4444452imgimg5http://accweb/emmployees/davolio.bmp2333.33

Övning 2

Visa för och efternamn (FirstName, Lastname) för alla anställda.

9 rader

FirstnameLastname
NancyDavolio
AndrewFuller
JanetLeverling
MargaretPeacock
StevenBuchanan
MichaelSuyama
RobertKing
LauraCallahan
AnneDodsworth

Övning 3

Visa företagsnamnet (companyName) för alla leverantörer (Suppliers)

29 rader

companyName
Aux joyeux ecclsiastiques
Bigfoot Breweries
Cooperativa de Quesos 'Las Cabras'
Escargots Nouveaux
Exotic Liquids
Formaggi Fortini s.r.l.
Forts d'rables
G'day, Mate
Gai pturage
Grandma Kelly's Homestead
Heli Swaren GmbH & Co. KG
Karkki Oy
Leka Trading
Lyngbysild
Ma Maison
Mayumi's
New England Seafood Cannery
New Orleans Cajun Delights
Nord-Ost-Fisch Handelsgesellschaft mbH
Norske Meierier
Pasta Buttini s.r.l.
Pavlova, Ltd.
PB Knckebrd AB
Plutzer Lebensmittelgromrkte AG
Refrescos Americanas LTDA
Specialty Biscuits, Ltd.
Svensk Sjfda AB
Tokyo Traders
Zaanse Snoepfabriek

Övning 4

Visa alla information om den anställde med employeeID = 1.

1 rader

EmployeeIDLastNameFirstNameTitleTitleOfCourtesyBirthDateHireDateAddressCityRegionPostalCodeCountryHomePhoneExtensionPhotoNotesReportsToPhotoPathSalary
1DavolioNancySales RepresentativeMs.1948-12-08 00:00:001992-05-01 00:00:00507 - 20th Ave. E.Apt. 2ASeattleWA98122USA(206) 555-98575467imgimg2http://accweb/emmployees/davolio.bmp2954.55

Övning 5

Vem är kontaktperson på leverantören Tokyo Traders? (Supplier)

1 rader

ContactName
Yoshi Nagase

Övning 6

Vilka produkter (products) har ett pris (UnitPrice) som är exakt 10?

3 rader

ProductIDProductNameSupplierIDCategoryIDQuantityPerUnitUnitPriceUnitsInStockUnitsOnOrderReorderLevelDiscontinued
3Aniseed Syrup1212 - 550 ml bottles10.00001370250
21Sir Rodney's Scones8324 pkgs. x 4 pieces10.000034050
74Longlife Tofu475 kg pkg.10.000042050

Övning 7

Vilka produkter är slut på lager (UnitsInStock)?

5 rader

ProductIDProductNameSupplierIDCategoryIDQuantityPerUnitUnitPriceUnitsInStockUnitsOnOrderReorderLevelDiscontinued
5Chef Anton's Gumbo Mix2236 boxes21.35000001
17Alice Mutton7620 - 1 kg tins39.00000001
29Thringer Rostbratwurst12650 bags x 30 sausgs.123.79000001
31Gorgonzola Telino14412 - 100 g pkgs12.5000070200
53Perth Pasties24648 pieces32.80000001

Övning 8

Vilka produkter har lika många i lager (UnitsInStock) som beställningspunkt (ReOrderLevel)?

4 rader

ProductIDProductNameSupplierIDCategoryIDQuantityPerUnitUnitPriceUnitsInStockUnitsOnOrderReorderLevelDiscontinued
5Chef Anton's Gumbo Mix2236 boxes21.35000001
17Alice Mutton7620 - 1 kg tins39.00000001
29Thringer Rostbratwurst12650 bags x 30 sausgs.123.79000001
53Perth Pasties24648 pieces32.80000001

Övning 9

Visa alla ordrar (orders) som har leverarats till Tyskland (Germany).

122 rader

OrderIDCustomerIDEmployeeIDOrderDateRequiredDateShippedDateShipViaFreightShipNameShipAddressShipCityShipRegionShipPostalCodeShipCountry
10249TOMSP61996-07-05 00:00:001996-08-16 00:00:001996-07-10 00:00:00111.6100Toms SpezialittenLuisenstr. 48Mnster44087Germany
10260OTTIK41996-07-19 00:00:001996-08-16 00:00:001996-07-29 00:00:00155.0900Ottilies KseladenMehrheimerstr. 369Kln50739Germany
10267FRANK41996-07-29 00:00:001996-08-26 00:00:001996-08-06 00:00:001208.5800FrankenversandBerliner Platz 43Mnchen80805Germany
10273QUICK31996-08-05 00:00:001996-09-02 00:00:001996-08-12 00:00:00376.0700QUICK-StopTaucherstrae 10Cunewalde1307Germany
10277MORGK21996-08-09 00:00:001996-09-06 00:00:001996-08-13 00:00:003125.7700Morgenstern GesundkostHeerstr. 22Leipzig4179Germany
10279LEHMS81996-08-13 00:00:001996-09-10 00:00:001996-08-16 00:00:00225.8300Lehmanns MarktstandMagazinweg 7Frankfurt a.M.60528Germany
10284LEHMS41996-08-19 00:00:001996-09-16 00:00:001996-08-27 00:00:00176.5600Lehmanns MarktstandMagazinweg 7Frankfurt a.M.60528Germany
10285QUICK11996-08-20 00:00:001996-09-17 00:00:001996-08-26 00:00:00276.8300QUICK-StopTaucherstrae 10Cunewalde1307Germany
10286QUICK81996-08-21 00:00:001996-09-18 00:00:001996-08-30 00:00:003229.2400QUICK-StopTaucherstrae 10Cunewalde1307Germany
10301WANDK81996-09-09 00:00:001996-10-07 00:00:001996-09-17 00:00:00245.0800Die Wandernde KuhAdenauerallee 900Stuttgart70563Germany
10312WANDK21996-09-23 00:00:001996-10-21 00:00:001996-10-03 00:00:00240.2600Die Wandernde KuhAdenauerallee 900Stuttgart70563Germany
10313QUICK21996-09-24 00:00:001996-10-22 00:00:001996-10-04 00:00:0021.9600QUICK-StopTaucherstrae 10Cunewalde1307Germany
10323KOENE41996-10-07 00:00:001996-11-04 00:00:001996-10-14 00:00:0014.8800Kniglich EssenMaubelstr. 90Brandenburg14776Germany
10325KOENE11996-10-09 00:00:001996-10-23 00:00:001996-10-14 00:00:00364.8600Kniglich EssenMaubelstr. 90Brandenburg14776Germany
10337FRANK41996-10-24 00:00:001996-11-21 00:00:001996-10-29 00:00:003108.2600FrankenversandBerliner Platz 43Mnchen80805Germany
10342FRANK41996-10-30 00:00:001996-11-13 00:00:001996-11-04 00:00:00254.8300FrankenversandBerliner Platz 43Mnchen80805Germany
10343LEHMS41996-10-31 00:00:001996-11-28 00:00:001996-11-06 00:00:001110.3700Lehmanns MarktstandMagazinweg 7Frankfurt a.M.60528Germany
10345QUICK21996-11-04 00:00:001996-12-02 00:00:001996-11-11 00:00:002249.0600QUICK-StopTaucherstrae 10Cunewalde1307Germany
10348WANDK41996-11-07 00:00:001996-12-05 00:00:001996-11-15 00:00:0020.7800Die Wandernde KuhAdenauerallee 900Stuttgart70563Germany
10356WANDK61996-11-18 00:00:001996-12-16 00:00:001996-11-27 00:00:00236.7100Die Wandernde KuhAdenauerallee 900Stuttgart70563Germany
10361QUICK11996-11-22 00:00:001996-12-20 00:00:001996-12-03 00:00:002183.1700QUICK-StopTaucherstrae 10Cunewalde1307Germany
10363DRACD41996-11-26 00:00:001996-12-24 00:00:001996-12-04 00:00:00330.5400Drachenblut DelikatessenWalserweg 21Aachen52066Germany
10391DRACD31996-12-23 00:00:001997-01-20 00:00:001996-12-31 00:00:0035.4500Drachenblut DelikatessenWalserweg 21Aachen52066Germany
10396FRANK11996-12-27 00:00:001997-01-10 00:00:001997-01-06 00:00:003135.3500FrankenversandBerliner Platz 43Mnchen80805Germany
10407OTTIK21997-01-07 00:00:001997-02-04 00:00:001997-01-30 00:00:00291.4800Ottilies KseladenMehrheimerstr. 369Kln50739Germany
10418QUICK41997-01-17 00:00:001997-02-14 00:00:001997-01-24 00:00:00117.5500QUICK-StopTaucherstrae 10Cunewalde1307Germany
10438TOMSP31997-02-06 00:00:001997-03-06 00:00:001997-02-14 00:00:0028.2400Toms SpezialittenLuisenstr. 48Mnster44087Germany
10446TOMSP61997-02-14 00:00:001997-03-14 00:00:001997-02-19 00:00:00114.6800Toms SpezialittenLuisenstr. 48Mnster44087Germany
10451QUICK41997-02-19 00:00:001997-03-05 00:00:001997-03-12 00:00:003189.0900QUICK-StopTaucherstrae 10Cunewalde1307Germany
10456KOENE81997-02-25 00:00:001997-04-08 00:00:001997-02-28 00:00:0028.1200Kniglich EssenMaubelstr. 90Brandenburg14776Germany
10457KOENE21997-02-25 00:00:001997-03-25 00:00:001997-03-03 00:00:00111.5700Kniglich EssenMaubelstr. 90Brandenburg14776Germany
10468KOENE31997-03-07 00:00:001997-04-04 00:00:001997-03-12 00:00:00344.1200Kniglich EssenMaubelstr. 90Brandenburg14776Germany
10488FRANK81997-03-27 00:00:001997-04-24 00:00:001997-04-02 00:00:0024.9300FrankenversandBerliner Platz 43Mnchen80805Germany
10497LEHMS71997-04-04 00:00:001997-05-02 00:00:001997-04-07 00:00:00136.2100Lehmanns MarktstandMagazinweg 7Frankfurt a.M.60528Germany
10501BLAUS91997-04-09 00:00:001997-05-07 00:00:001997-04-16 00:00:0038.8500Blauer See DelikatessenForsterstr. 57Mannheim68306Germany
10506KOENE91997-04-15 00:00:001997-05-13 00:00:001997-05-02 00:00:00221.1900Kniglich EssenMaubelstr. 90Brandenburg14776Germany
10508OTTIK11997-04-16 00:00:001997-05-14 00:00:001997-05-13 00:00:0024.9900Ottilies KseladenMehrheimerstr. 369Kln50739Germany
10509BLAUS41997-04-17 00:00:001997-05-15 00:00:001997-04-29 00:00:0010.1500Blauer See DelikatessenForsterstr. 57Mannheim68306Germany
10513WANDK71997-04-22 00:00:001997-06-03 00:00:001997-04-28 00:00:001105.6500Die Wandernde KuhAdenauerallee 900Stuttgart70563Germany
10515QUICK21997-04-23 00:00:001997-05-07 00:00:001997-05-23 00:00:001204.4700QUICK-StopTaucherstrae 10Cunewalde1307Germany
10522LEHMS41997-04-30 00:00:001997-05-28 00:00:001997-05-06 00:00:00145.3300Lehmanns MarktstandMagazinweg 7Frankfurt a.M.60528Germany
10527QUICK71997-05-05 00:00:001997-06-02 00:00:001997-05-07 00:00:00141.9000QUICK-StopTaucherstrae 10Cunewalde1307Germany
10534LEHMS81997-05-12 00:00:001997-06-09 00:00:001997-05-14 00:00:00227.9400Lehmanns MarktstandMagazinweg 7Frankfurt a.M.60528Germany
10536LEHMS31997-05-14 00:00:001997-06-11 00:00:001997-06-06 00:00:00258.8800Lehmanns MarktstandMagazinweg 7Frankfurt a.M.60528Germany
10540QUICK31997-05-19 00:00:001997-06-16 00:00:001997-06-13 00:00:0031007.6400QUICK-StopTaucherstrae 10Cunewalde1307Germany
10542KOENE11997-05-20 00:00:001997-06-17 00:00:001997-05-26 00:00:00310.9500Kniglich EssenMaubelstr. 90Brandenburg14776Germany
10548TOMSP31997-05-26 00:00:001997-06-23 00:00:001997-06-02 00:00:0021.4300Toms SpezialittenLuisenstr. 48Mnster44087Germany
10549QUICK51997-05-27 00:00:001997-06-10 00:00:001997-05-30 00:00:001171.2400QUICK-StopTaucherstrae 10Cunewalde1307Germany
10554OTTIK41997-05-30 00:00:001997-06-27 00:00:001997-06-05 00:00:003120.9700Ottilies KseladenMehrheimerstr. 369Kln50739Germany
10557LEHMS91997-06-03 00:00:001997-06-17 00:00:001997-06-06 00:00:00296.7200Lehmanns MarktstandMagazinweg 7Frankfurt a.M.60528Germany
10560FRANK81997-06-06 00:00:001997-07-04 00:00:001997-06-09 00:00:00136.6500FrankenversandBerliner Platz 43Mnchen80805Germany
10575MORGK51997-06-20 00:00:001997-07-04 00:00:001997-06-30 00:00:001127.3400Morgenstern GesundkostHeerstr. 22Leipzig4179Germany
10580OTTIK41997-06-26 00:00:001997-07-24 00:00:001997-07-01 00:00:00375.8900Ottilies KseladenMehrheimerstr. 369Kln50739Germany
10582BLAUS31997-06-27 00:00:001997-07-25 00:00:001997-07-14 00:00:00227.7100Blauer See DelikatessenForsterstr. 57Mannheim68306Germany
10588QUICK21997-07-03 00:00:001997-07-31 00:00:001997-07-10 00:00:003194.6700QUICK-StopTaucherstrae 10Cunewalde1307Germany
10592LEHMS31997-07-08 00:00:001997-08-05 00:00:001997-07-16 00:00:00132.1000Lehmanns MarktstandMagazinweg 7Frankfurt a.M.60528Germany
10593LEHMS71997-07-09 00:00:001997-08-06 00:00:001997-08-13 00:00:002174.2000Lehmanns MarktstandMagazinweg 7Frankfurt a.M.60528Germany
10608TOMSP41997-07-23 00:00:001997-08-20 00:00:001997-08-01 00:00:00227.7900Toms SpezialittenLuisenstr. 48Mnster44087Germany
10614BLAUS81997-07-29 00:00:001997-08-26 00:00:001997-08-01 00:00:0031.9300Blauer See DelikatessenForsterstr. 57Mannheim68306Germany
10623FRANK81997-08-07 00:00:001997-09-04 00:00:001997-08-12 00:00:00297.1800FrankenversandBerliner Platz 43Mnchen80805Germany
10630KOENE11997-08-13 00:00:001997-09-10 00:00:001997-08-19 00:00:00232.3500Kniglich EssenMaubelstr. 90Brandenburg14776Germany
10632WANDK81997-08-14 00:00:001997-09-11 00:00:001997-08-19 00:00:00141.3800Die Wandernde KuhAdenauerallee 900Stuttgart70563Germany
10640WANDK41997-08-21 00:00:001997-09-18 00:00:001997-08-28 00:00:00123.5500Die Wandernde KuhAdenauerallee 900Stuttgart70563Germany
10643ALFKI61997-08-25 00:00:001997-09-22 00:00:001997-09-02 00:00:00129.4600Alfreds FutterkisteObere Str. 57Berlin12209Germany
10651WANDK81997-09-01 00:00:001997-09-29 00:00:001997-09-11 00:00:00220.6000Die Wandernde KuhAdenauerallee 900Stuttgart70563Germany
10653FRANK11997-09-02 00:00:001997-09-30 00:00:001997-09-19 00:00:00193.2500FrankenversandBerliner Platz 43Mnchen80805Germany
10658QUICK41997-09-05 00:00:001997-10-03 00:00:001997-09-08 00:00:001364.1500QUICK-StopTaucherstrae 10Cunewalde1307Germany
10668WANDK11997-09-15 00:00:001997-10-13 00:00:001997-09-23 00:00:00247.2200Die Wandernde KuhAdenauerallee 900Stuttgart70563Germany
10670FRANK41997-09-16 00:00:001997-10-14 00:00:001997-09-18 00:00:001203.4800FrankenversandBerliner Platz 43Mnchen80805Germany
10675FRANK51997-09-19 00:00:001997-10-17 00:00:001997-09-23 00:00:00231.8500FrankenversandBerliner Platz 43Mnchen80805Germany
10684OTTIK31997-09-26 00:00:001997-10-24 00:00:001997-09-30 00:00:001145.6300Ottilies KseladenMehrheimerstr. 369Kln50739Germany
10691QUICK21997-10-03 00:00:001997-11-14 00:00:001997-10-22 00:00:002810.0500QUICK-StopTaucherstrae 10Cunewalde1307Germany
10692ALFKI41997-10-03 00:00:001997-10-31 00:00:001997-10-13 00:00:00261.0200Alfred-s FutterkisteObere Str. 57Berlin12209Germany
10694QUICK81997-10-06 00:00:001997-11-03 00:00:001997-10-09 00:00:003398.3600QUICK-StopTaucherstrae 10Cunewalde1307Germany
10699MORGK31997-10-09 00:00:001997-11-06 00:00:001997-10-13 00:00:0030.5800Morgenstern GesundkostHeerstr. 22Leipzig4179Germany
10702ALFKI41997-10-13 00:00:001997-11-24 00:00:001997-10-21 00:00:00123.9400Alfred-s FutterkisteObere Str. 57Berlin12209Germany
10717FRANK11997-10-24 00:00:001997-11-21 00:00:001997-10-29 00:00:00259.2500FrankenversandBerliner Platz 43Mnchen80805Germany
10718KOENE11997-10-27 00:00:001997-11-24 00:00:001997-10-29 00:00:003170.8800Kniglich EssenMaubelstr. 90Brandenburg14776Germany
10721QUICK51997-10-29 00:00:001997-11-26 00:00:001997-10-31 00:00:00348.9200QUICK-StopTaucherstrae 10Cunewalde1307Germany
10745QUICK91997-11-18 00:00:001997-12-16 00:00:001997-11-27 00:00:0013.5200QUICK-StopTaucherstrae 10Cunewalde1307Germany
10765QUICK31997-12-04 00:00:001998-01-01 00:00:001997-12-09 00:00:00342.7400QUICK-StopTaucherstrae 10Cunewalde1307Germany
10766OTTIK41997-12-05 00:00:001998-01-02 00:00:001997-12-09 00:00:001157.5500Ottilies KseladenMehrheimerstr. 369Kln50739Germany
10772LEHMS31997-12-10 00:00:001998-01-07 00:00:001997-12-19 00:00:00291.2800Lehmanns MarktstandMagazinweg 7Frankfurt a.M.60528Germany
10779MORGK31997-12-16 00:00:001998-01-13 00:00:001998-01-14 00:00:00258.1300Morgenstern GesundkostHeerstr. 22Leipzig4179Germany
10788QUICK11997-12-22 00:00:001998-01-19 00:00:001998-01-19 00:00:00242.7000QUICK-StopTaucherstrae 10Cunewalde1307Germany
10791FRANK61997-12-23 00:00:001998-01-20 00:00:001998-01-01 00:00:00216.8500FrankenversandBerliner Platz 43Mnchen80805Germany
10797DRACD71997-12-25 00:00:001998-01-22 00:00:001998-01-05 00:00:00233.3500Drachenblut DelikatessenWalserweg 21Aachen52066Germany
10799KOENE91997-12-26 00:00:001998-02-06 00:00:001998-01-05 00:00:00330.7600Kniglich EssenMaubelstr. 90Brandenburg14776Germany
10817KOENE31998-01-06 00:00:001998-01-20 00:00:001998-01-13 00:00:002306.0700Kniglich EssenMaubelstr. 90Brandenburg14776Germany
10825DRACD11998-01-09 00:00:001998-02-06 00:00:001998-01-14 00:00:00179.2500Drachenblut DelikatessenWalserweg 21Aachen52066Germany
10833OTTIK61998-01-15 00:00:001998-02-12 00:00:001998-01-23 00:00:00271.4900Ottilies KseladenMehrheimerstr. 369Kln50739Germany
10835ALFKI11998-01-15 00:00:001998-02-12 00:00:001998-01-21 00:00:00369.5300Alfred-s FutterkisteObere Str. 57Berlin12209Germany
10845QUICK81998-01-21 00:00:001998-02-04 00:00:001998-01-30 00:00:001212.9800QUICK-StopTaucherstrae 10Cunewalde1307Germany
10849KOENE91998-01-23 00:00:001998-02-20 00:00:001998-01-30 00:00:0020.5600Kniglich EssenMaubelstr. 90Brandenburg14776Germany
10853BLAUS91998-01-27 00:00:001998-02-24 00:00:001998-02-03 00:00:00253.8300Blauer See DelikatessenForsterstr. 57Mannheim68306Germany
10859FRANK11998-01-29 00:00:001998-02-26 00:00:001998-02-02 00:00:00276.1000FrankenversandBerliner Platz 43Mnchen80805Germany
10862LEHMS81998-01-30 00:00:001998-03-13 00:00:001998-02-02 00:00:00253.2300Lehmanns MarktstandMagazinweg 7Frankfurt a.M.60528Germany
10865QUICK21998-02-02 00:00:001998-02-16 00:00:001998-02-12 00:00:001348.1400QUICK-StopTaucherstrae 10Cunewalde1307Germany
10878QUICK41998-02-10 00:00:001998-03-10 00:00:001998-02-12 00:00:00146.6900QUICK-StopTaucherstrae 10Cunewalde1307Germany
10891LEHMS71998-02-17 00:00:001998-03-17 00:00:001998-02-19 00:00:00220.3700Lehmanns MarktstandMagazinweg 7Frankfurt a.M.60528Germany
10893KOENE91998-02-18 00:00:001998-03-18 00:00:001998-02-20 00:00:00277.7800Kniglich EssenMaubelstr. 90Brandenburg14776Germany
10929FRANK61998-03-05 00:00:001998-04-02 00:00:001998-03-12 00:00:00133.9300FrankenversandBerliner Platz 43Mnchen80805Germany
10934LEHMS31998-03-09 00:00:001998-04-06 00:00:001998-03-12 00:00:00332.0100Lehmanns MarktstandMagazinweg 7Frankfurt a.M.60528Germany
10938QUICK31998-03-10 00:00:001998-04-07 00:00:001998-03-16 00:00:00231.8900QUICK-StopTaucherstrae 10Cunewalde1307Germany
10945MORGK41998-03-12 00:00:001998-04-09 00:00:001998-03-18 00:00:00110.2200Morgenstern GesundkostHeerstr. 22Leipzig4179Germany
10952ALFKI11998-03-16 00:00:001998-04-27 00:00:001998-03-24 00:00:00140.4200Alfred-s FutterkisteObere Str. 57Berlin12209Germany
10956BLAUS61998-03-17 00:00:001998-04-28 00:00:001998-03-20 00:00:00244.6500Blauer See DelikatessenForsterstr. 57Mannheim68306Germany
10962QUICK81998-03-19 00:00:001998-04-16 00:00:001998-03-23 00:00:002275.7900QUICK-StopTaucherstrae 10Cunewalde1307Germany
10967TOMSP21998-03-23 00:00:001998-04-20 00:00:001998-04-02 00:00:00262.2200Toms SpezialittenLuisenstr. 48Mnster44087Germany
10991QUICK11998-04-01 00:00:001998-04-29 00:00:001998-04-07 00:00:00138.5100QUICK-StopTaucherstrae 10Cunewalde1307Germany
10996QUICK41998-04-02 00:00:001998-04-30 00:00:001998-04-10 00:00:0021.1200QUICK-StopTaucherstrae 10Cunewalde1307Germany
10999OTTIK61998-04-03 00:00:001998-05-01 00:00:001998-04-10 00:00:00296.3500Ottilies KseladenMehrheimerstr. 369Kln50739Germany
11011ALFKI31998-04-09 00:00:001998-05-07 00:00:001998-04-13 00:00:0011.2100Alfred-s FutterkisteObere Str. 57Berlin12209Germany
11012FRANK11998-04-09 00:00:001998-04-23 00:00:001998-04-17 00:00:003242.9500FrankenversandBerliner Platz 43Mnchen80805Germany
11020OTTIK21998-04-14 00:00:001998-05-12 00:00:001998-04-16 00:00:00243.3000Ottilies KseladenMehrheimerstr. 369Kln50739Germany
11021QUICK31998-04-14 00:00:001998-05-12 00:00:001998-04-21 00:00:001297.1800QUICK-StopTaucherstrae 10Cunewalde1307Germany
11028KOENE21998-04-16 00:00:001998-05-14 00:00:001998-04-22 00:00:00129.5900Kniglich EssenMaubelstr. 90Brandenburg14776Germany
11036DRACD81998-04-20 00:00:001998-05-18 00:00:001998-04-22 00:00:003149.4700Drachenblut DelikatessenWalserweg 21Aachen52066Germany
11046WANDK81998-04-23 00:00:001998-05-21 00:00:001998-04-24 00:00:00271.6400Die Wandernde KuhAdenauerallee 900Stuttgart70563Germany
11058BLAUS91998-04-29 00:00:001998-05-27 00:00:00331.1400Blauer See DelikatessenForsterstr. 57Mannheim68306Germany
11067DRACD11998-05-04 00:00:001998-05-18 00:00:001998-05-06 00:00:0027.9800Drachenblut DelikatessenWalserweg 21Aachen52066Germany
11070LEHMS21998-05-05 00:00:001998-06-02 00:00:001136.0000Lehmanns MarktstandMagazinweg 7Frankfurt a.M.60528Germany

Övning 10

Visa de städer där de anställda arbetar, varje stad skall bara visas en gång.

5 rader

City
Seattle
Tacoma
Kirkland
Redmond
London

Övning 11

Visa all information om de anställda i alfabetisk ordning

9 rader

EmployeeIDLastNameFirstNameTitleTitleOfCourtesyBirthDateHireDateAddressCityRegionPostalCodeCountryHomePhoneExtensionPhotoNotesReportsToPhotoPathSalary
5BuchananStevenSales ManagerMr.1955-03-04 00:00:001993-10-17 00:00:0014 Garrett HillLondonSW1 8JRUK(71) 555-48483453imgimg2http://accweb/emmployees/buchanan.bmp1744.21
8CallahanLauraInside Sales CoordinatorMs.1958-01-09 00:00:001994-03-05 00:00:004726 - 11th Ave. N.E.SeattleWA98105USA(206) 555-11892344imgimg2http://accweb/emmployees/davolio.bmp2100.5
1DavolioNancySales RepresentativeMs.1948-12-08 00:00:001992-05-01 00:00:00507 - 20th Ave. E.Apt. 2ASeattleWA98122USA(206) 555-98575467imgimg2http://accweb/emmployees/davolio.bmp2954.55
9DodsworthAnneSales RepresentativeMs.1966-01-27 00:00:001994-11-15 00:00:007 Houndstooth Rd.LondonWG2 7LTUK(71) 555-4444452imgimg5http://accweb/emmployees/davolio.bmp2333.33
2FullerAndrewVice President, SalesDr.1952-02-19 00:00:001992-08-14 00:00:00908 W. Capital WayTacomaWA98401USA(206) 555-94823457imgimghttp://accweb/emmployees/fuller.bmp2254.49
7KingRobertSales RepresentativeMr.1960-05-29 00:00:001994-01-02 00:00:00Edgeham Hollow Winchester WayLondonRG1 9SPUK(71) 555-5598465imgimg5http://accweb/emmployees/davolio.bmp1991.55
3LeverlingJanetSales RepresentativeMs.1963-08-30 00:00:001992-04-01 00:00:00722 Moss Bay Blvd.KirklandWA98033USA(206) 555-34123355imgimg2http://accweb/emmployees/leverling.bmp3119.15
4PeacockMargaretSales RepresentativeMrs.1937-09-19 00:00:001993-05-03 00:00:004110 Old Redmond Rd.RedmondWA98052USA(206) 555-81225176imgimg2http://accweb/emmployees/peacock.bmp1861.08
6SuyamaMichaelSales RepresentativeMr.1963-07-02 00:00:001993-10-17 00:00:00Coventry House Miner Rd.LondonEC2 7JRUK(71) 555-7773428imgimg5http://accweb/emmployees/davolio.bmp2004.07

Övning 12

Visa all information om de anställda, visa resultatet sorterat i åldersordning, äldst först

9 rader

EmployeeIDLastNameFirstNameTitleTitleOfCourtesyBirthDateHireDateAddressCityRegionPostalCodeCountryHomePhoneExtensionPhotoNotesReportsToPhotoPathSalary
4PeacockMargaretSales RepresentativeMrs.1937-09-19 00:00:001993-05-03 00:00:004110 Old Redmond Rd.RedmondWA98052USA(206) 555-81225176imgimg2http://accweb/emmployees/peacock.bmp1861.08
1DavolioNancySales RepresentativeMs.1948-12-08 00:00:001992-05-01 00:00:00507 - 20th Ave. E.Apt. 2ASeattleWA98122USA(206) 555-98575467imgimg2http://accweb/emmployees/davolio.bmp2954.55
2FullerAndrewVice President, SalesDr.1952-02-19 00:00:001992-08-14 00:00:00908 W. Capital WayTacomaWA98401USA(206) 555-94823457imgimghttp://accweb/emmployees/fuller.bmp2254.49
5BuchananStevenSales ManagerMr.1955-03-04 00:00:001993-10-17 00:00:0014 Garrett HillLondonSW1 8JRUK(71) 555-48483453imgimg2http://accweb/emmployees/buchanan.bmp1744.21
8CallahanLauraInside Sales CoordinatorMs.1958-01-09 00:00:001994-03-05 00:00:004726 - 11th Ave. N.E.SeattleWA98105USA(206) 555-11892344imgimg2http://accweb/emmployees/davolio.bmp2100.5
7KingRobertSales RepresentativeMr.1960-05-29 00:00:001994-01-02 00:00:00Edgeham Hollow Winchester WayLondonRG1 9SPUK(71) 555-5598465imgimg5http://accweb/emmployees/davolio.bmp1991.55
6SuyamaMichaelSales RepresentativeMr.1963-07-02 00:00:001993-10-17 00:00:00Coventry House Miner Rd.LondonEC2 7JRUK(71) 555-7773428imgimg5http://accweb/emmployees/davolio.bmp2004.07
3LeverlingJanetSales RepresentativeMs.1963-08-30 00:00:001992-04-01 00:00:00722 Moss Bay Blvd.KirklandWA98033USA(206) 555-34123355imgimg2http://accweb/emmployees/leverling.bmp3119.15
9DodsworthAnneSales RepresentativeMs.1966-01-27 00:00:001994-11-15 00:00:007 Houndstooth Rd.LondonWG2 7LTUK(71) 555-4444452imgimg5http://accweb/emmployees/davolio.bmp2333.33

Övning 13

Visa all information om kunderna (customer), sortera i första hand efter land och i andra hand efter stad

93 rader

CustomerIDCompanyNameContactNameContactTitleAddressCityRegionPostalCodeCountryPhoneFax
VALONITValon HotiIT
Val2 ITVal2IT
CACTUCactus Comidas para llevarPatricio SimpsonSales AgentCerrito 333Buenos Aires1010Argentina(1) 135-5555(1) 135-4892
OCEANOcano Atlntico Ltda.Yvonne MoncadaSales AgentIng. Gustavo Moncada 8585 Piso 20-ABuenos Aires1010Argentina(1) 135-5333(1) 135-5535
RANCHRancho grandeSergio GutirrezSales RepresentativeAv. del Libertador 900Buenos Aires1010Argentina(1) 123-5555(1) 123-5556
ERNSHErnst HandelRoland MendelSales ManagerKirchgasse 6Graz8010Austria7675-34257675-3426
PICCOPiccolo und mehrGeorg PippsSales ManagerGeislweg 14Salzburg5020Austria6562-97226562-9723
MAISDMaison DeweyCatherine DeweySales AgentRue Joseph-Bens 532BruxellesB-1180Belgium(02) 201 24 67(02) 201 24 68
SUPRDSuprmes dlicesPascale CartrainAccounting ManagerBoulevard Tirou, 255CharleroiB-6000Belgium(071) 23 67 22 20(071) 23 67 22 21
GOURLGourmet LanchonetesAndr FonsecaSales AssociateAv. Brasil, 442CampinasSP04876-786Brazil(11) 555-9482
WELLIWellington ImportadoraPaula ParenteSales ManagerRua do Mercado, 12ResendeSP08737-363Brazil(14) 555-8122
HANARHanari CarnesMario PontesAccounting ManagerRua do Pao, 67Rio de JaneiroRJ05454-876Brazil(21) 555-0091(21) 555-8765
QUEDEQue DelciaBernardo BatistaAccounting ManagerRua da Panificadora, 12Rio de JaneiroRJ02389-673Brazil(21) 555-4252(21) 555-4545
RICARRicardo AdocicadosJanete LimeiraAssistant Sales AgentAv. Copacabana, 267Rio de JaneiroRJ02389-890Brazil(21) 555-3412
COMMIComrcio MineiroPedro AfonsoSales AssociateAv. dos Lusadas, 23Sao PauloSP05432-043Brazil(11) 555-7647
FAMIAFamilia ArquibaldoAria CruzMarketing AssistantRua Ors, 92Sao PauloSP05442-030Brazil(11) 555-9857
QUEENQueen CozinhaLcia CarvalhoMarketing AssistantAlameda dos Canrios, 891Sao PauloSP05487-020Brazil(11) 555-1189
TRADHTradio HipermercadosAnabela DominguesSales RepresentativeAv. Ins de Castro, 414Sao PauloSP05634-030Brazil(11) 555-2167(11) 555-2168
MEREPMre PaillardeJean FresnireMarketing Assistant43 rue St. LaurentMontralQubecH1J 1C3Canada(514) 555-8054(514) 555-8055
BOTTMBottom-Dollar MarketsElizabeth LincolnAccounting Manager23 Tsawassen Blvd.TsawassenBCT2F 8M4Canada(604) 555-4729(604) 555-3745
LAUGBLaughing Bacchus Wine CellarsYoshi TannamuriMarketing Assistant1900 Oak St.VancouverBCV3F 2K1Canada(604) 555-3392(604) 555-7293
SIMOBSimons bistroJytte PetersenOwnerVinbltet 34Kobenhavn1734Denmark31 12 34 5631 13 35 57
VAFFEVaffeljernetPalle IbsenSales ManagerSmagsloget 45rhus8200Denmark86 21 32 4386 22 33 44
WILMKWilman KalaMatti KarttunenOwner/Marketing AssistantKeskuskatu 45Helsinki21240Finland90-224 885890-224 8858
WARTHWartian HerkkuPirkko KoskitaloAccounting ManagerTorikatu 38Oulu90110Finland981-443655981-443655
FOLIGFolies gourmandesMartine RancAssistant Sales Agent184, chausse de TournaiLille59000France20.16.10.1620.16.10.17
VICTEVictuailles en stockMary SaveleySales Agent2, rue du CommerceLyon69004France78.32.54.8678.32.54.87
BONAPBon app'Laurence LebihanOwner12, rue des BouchersMarseille13008France91.24.45.4091.24.45.41
DUMONDu monde entierJanine LabruneOwner67, rue des Cinquante OtagesNantes44000France40.67.88.8840.67.89.89
FRANRFrance restaurationCarine SchmittMarketing Manager54, rue RoyaleNantes44000France40.32.21.2140.32.21.20
PARISParis spcialitsMarie BertrandOwner265, boulevard CharonneParis75012France(1) 42.34.22.66(1) 42.34.22.77
SPECDSpcialits du mondeDominique PerrierMarketing Manager25, rue LauristonParis75016France(1) 47.55.60.10(1) 47.55.60.20
VINETVins et alcools ChevalierPaul HenriotAccounting Manager59 rue de l'AbbayeReims51100France26.47.15.1026.47.15.11
BLONPBlondesddsl pre et filsFrdrique CiteauxMarketing Manager24, place KlberStrasbourg67000France88.60.15.3188.60.15.32
LAMAILa maison d'AsieAnnette RouletSales Manager1 rue Alsace-LorraineToulouse31000France61.77.61.1061.77.61.11
LACORLa corne d'abondanceDaniel ToniniSales Representative67, avenue de l'EuropeVersailles78000France30.59.84.1030.59.85.11
DRACDDrachenblut DelikatessenSven OttliebOrder AdministratorWalserweg 21Aachen52066Germany0241-0391230241-059428
ALFKIAlfreds FutterkisteMaria AndersSales RepresentativeObere Str. 57Berlin12209Germany030-0074321030-0076545
KOENEKniglich EssenPhilip CramerSales AssociateMaubelstr. 90Brandenburg14776Germany0555-09876
QUICKQUICK-StopHorst KlossAccounting ManagerTaucherstrae 10Cunewalde01307Germany0372-035188
LEHMSLehmanns MarktstandRenate MessnerSales RepresentativeMagazinweg 7Frankfurt a.M.60528Germany069-0245984069-0245874
OTTIKOttilies KseladenHenriette PfalzheimOwnerMehrheimerstr. 369Kln50739Germany0221-06443270221-0765721
MORGKMorgenstern GesundkostAlexander FeuerMarketing AssistantHeerstr. 22Leipzig04179Germany0342-023176
BLAUSBlauer See DelikatessenHanna MoosSales RepresentativeForsterstr. 57Mannheim68306Germany0621-084600621-08924
FRANKFrankenversandPeter FrankenMarketing ManagerBerliner Platz 43Mnchen80805Germany089-0877310089-0877451
TOMSPToms SpezialittenKarin JosephsMarketing ManagerLuisenstr. 48Mnster44087Germany0251-0312590251-035695
WANDKDie Wandernde KuhRita MllerSales RepresentativeAdenauerallee 900Stuttgart70563Germany0711-0203610711-035428
HUNGOHungry Owl All-Night GrocersPatricia McKennaSales Associate8 Johnstown RoadCorkCo. CorkIreland2967 5422967 3333
MAGAAMagazzini Alimentari RiunitiGiovanni RovelliMarketing ManagerVia Ludovico il Moro 22Bergamo24100Italy035-640230035-640231
REGGCReggiani CaseificiMaurizio MoroniSales AssociateStrada Provinciale 124Reggio Emilia42100Italy0522-5567210522-556722
FRANSFranchi S.p.A.Paolo AccortiSales RepresentativeVia Monte Bianco 34Torino10100Italy011-4988260011-4988261
ANATRAna Trujillo Emparedados y heladosAna TrujilloOwnerAvda. de la Constitucin 2222Mxico D.F.05021Mexico(5) 555-4729(5) 555-3745
ANTONAntonio Moreno TaqueraAntonio MorenoOwnerMataderos 2312Mxico D.F.05023Mexico(5) 555-3932
CENTCCentro comercial MoctezumaFrancisco ChangMarketing ManagerSierras de Granada 9993Mxico D.F.05022Mexico(5) 555-3392(5) 555-7293
PERICPericles Comidas clsicasGuillermo FernndezSales RepresentativeCalle Dr. Jorge Cash 321Mxico D.F.05033Mexico(5) 552-3745(5) 545-3745
TORTUTortuga RestauranteMiguel Angel PaolinoOwnerAvda. Azteca 123Mxico D.F.05033Mexico(5) 555-2933
SANTGSant GourmetJonas BergulfsenOwnerErling Skakkes gate 78Stavern4110Norway07-98 92 3507-98 92 47
WOLZAWolski ZajazdZbyszek PiestrzeniewiczOwnerul. Filtrowa 68Warszawa01-012Poland(26) 642-7012(26) 642-7012
FURIBFuria Bacalhau e Frutos do MarLino RodriguezSales ManagerJardim das rosas n. 32Lisboa1675Portugal(1) 354-2534(1) 354-2535
PRINIPrincesa Isabel VinhosIsabel de CastroSales RepresentativeEstrada da sade n. 58Lisboa1756Portugal(1) 356-5634
GALEDGalera del gastrnomoEduardo SaavedraMarketing ManagerRambla de Catalua, 23Barcelona08022Spain(93) 203 4560(93) 203 4561
BOLIDBlido Comidas preparadasMartn SommerOwnerC/ Araquil, 67Madrid28023Spain(91) 555 22 82(91) 555 91 99
FISSAFISSA Fabrica Inter. Salchichas S.A.Diego RoelAccounting ManagerC/ Moralzarzal, 86Madrid28034Spain(91) 555 94 44(91) 555 55 93
ROMEYRomero y tomilloAlejandra CaminoAccounting ManagerGran Va, 1Madrid28001Spain(91) 745 6200(91) 745 6210
GODOSGodos Cocina TpicaJos Pedro FreyreSales ManagerC/ Romero, 33Sevilla41101Spain(95) 555 82 82
FOLKOFolk och f HBMaria LarssonOwnerkergatan 24BrckeS-844 67Sweden0695-34 67 21
BERGSBerglunds snabbkpChristina BerglundOrder AdministratorBerguvsvgen 8LuleS-958 22Sweden0921-12 34 650921-12 34 67
CHOPSChop-suey ChineseYang WangOwnerHauptstr. 29Bern3012Switzerland0452-076545
RICSURichter SupermarktMichael HolzSales ManagerGrenzacherweg 237Genve1203Switzerland0897-034214
ISLATIsland TradingHelen BennettMarketing ManagerGarden House Crowther WayCowesIsle of WightPO31 7PJUK(198) 555-8888
AROUTAround the HornThomas HardySales Representative120 Hanover Sq.LondonWA1 1DPUK(171) 555-7788(171) 555-6750
BSBEVB's BeveragesVictoria AshworthSales RepresentativeFauntleroy CircusLondonEC2 5NTUK(171) 555-1212
CONSHConsolidated HoldingsElizabeth BrownSales RepresentativeBerkeley Gardens 12 BreweryLondonWX1 6LTUK(171) 555-2282(171) 555-9199
EASTCEastern ConnectionAnn DevonSales Agent35 King GeorgeLondonWX3 6FWUK(171) 555-0297(171) 555-3373
NORTSNorth/SouthSimon CrowtherSales AssociateSouth House 300 QueensbridgeLondonSW7 1RZUK(171) 555-7733(171) 555-2530
SEVESSeven Seas ImportsHari KumarSales Manager90 Wadhurst Rd.LondonOX15 4NBUK(171) 555-1717(171) 555-5646
RATTCRattlesnake Canyon GroceryPaula WilsonAssistant Sales Representative2817 Milton Dr.AlbuquerqueNM87110USA(505) 555-5939(505) 555-3620
OLDWOOld World DelicatessenRene PhillipsSales Representative2743 Bering St.AnchorageAK99508USA(907) 555-7584(907) 555-2880
SAVEASave-a-lot MarketsJose PavarottiSales Representative187 Suffolk Ln.BoiseID83720USA(208) 555-8097
THECRThe Cracker BoxLiu WongMarketing Assistant55 Grizzly Peak Rd.ButteMT59801USA(406) 555-5834(406) 555-8083
HUNGCHungry Coyote Import StoreYoshi LatimerSales RepresentativeCity Center Plaza 516 Main St.ElginOR97827USA(503) 555-6874(503) 555-2376
GREALGreat Lakes Food MarketHoward SnyderMarketing Manager2732 Baker Blvd.EugeneOR97403USA(503) 555-7555
TRAIHTrail's Head Gourmet ProvisionersHelvetius NagySales Associate722 DaVinci Blvd.KirklandWA98034USA(206) 555-8257(206) 555-2174
SPLIRSplit Rail Beer & AleArt BraunschweigerSales ManagerP.O. Box 555LanderWY82520USA(307) 555-4680(307) 555-6525
LONEPLonesome Pine RestaurantFran WilsonSales Manager89 Chiaroscuro Rd.PortlandOR97219USA(503) 555-9573(503) 555-9646
THEBIThe Big CheeseLiz NixonMarketing Manager89 Jefferson Way Suite 2PortlandOR97201USA(503) 555-3612
LETSSLet's Stop N ShopJaime YorresOwner87 Polk St. Suite 5San FranciscoCA94117USA(415) 555-5938
WHITCWhite Clover MarketsKarl JablonskiOwner305 - 14th Ave. S. Suite 3BSeattleWA98128USA(206) 555-4112(206) 555-4115
LAZYKLazy K Kountry StoreJohn SteelMarketing Manager12 Orchestra TerraceWalla WallaWA99362USA(509) 555-7969(509) 555-6221
LILASLILA-SupermercadoCarlos GonzlezAccounting ManagerCarrera 52 con Ave. Bolvar #65-98 Llano LargoBarquisimetoLara3508Venezuela(9) 331-6954(9) 331-7256
GROSRGROSELLA-RestauranteManuel PereiraOwner5 Ave. Los Palos GrandesCaracasDF1081Venezuela(2) 283-2951(2) 283-3397
LINODLINO-DelicatesesFelipe IzquierdoOwnerAve. 5 de Mayo PorlamarI. de MargaritaNueva Esparta4980Venezuela(8) 34-56-12(8) 34-93-93
HILAAHILARION-AbastosCarlos HernndezSales RepresentativeCarrera 22 con Ave. Carlos Soublette #8-35San CristbalTchira5022Venezuela(5) 555-1340(5) 555-1948

Övning 14

Vilka produkter är inte beställda (UnitsOnOrder=0) men har unitsInStock mindre än ReorderLevel.

1 rader

ProductIDProductNameSupplierIDCategoryIDQuantityPerUnitUnitPriceUnitsInStockUnitsOnOrderReorderLevelDiscontinued
30Nord-Ost Matjeshering13810 - 200 g glasses25.8900100150

Övning 15

Vilka av de anställda har tilltalet Mr. (TitleOfCourtesy) och jobbar i UK?

3 rader

EmployeeIDLastNameFirstNameTitleTitleOfCourtesyBirthDateHireDateAddressCityRegionPostalCodeCountryHomePhoneExtensionPhotoNotesReportsToPhotoPathSalary
5BuchananStevenSales ManagerMr.1955-03-04 00:00:001993-10-17 00:00:0014 Garrett HillLondonSW1 8JRUK(71) 555-48483453imgimg2http://accweb/emmployees/buchanan.bmp1744.21
6SuyamaMichaelSales RepresentativeMr.1963-07-02 00:00:001993-10-17 00:00:00Coventry House Miner Rd.LondonEC2 7JRUK(71) 555-7773428imgimg5http://accweb/emmployees/davolio.bmp2004.07
7KingRobertSales RepresentativeMr.1960-05-29 00:00:001994-01-02 00:00:00Edgeham Hollow Winchester WayLondonRG1 9SPUK(71) 555-5598465imgimg5http://accweb/emmployees/davolio.bmp1991.55

Övning 16

Vilka av de anställda har tilltalet Mr. (TitleOfCourtesy) och jobbar i UK eller har tilltalet Ms. Och jobbar i USA

6 rader

EmployeeIDLastNameFirstNameTitleTitleOfCourtesyBirthDateHireDateAddressCityRegionPostalCodeCountryHomePhoneExtensionPhotoNotesReportsToPhotoPathSalary
1DavolioNancySales RepresentativeMs.1948-12-08 00:00:001992-05-01 00:00:00507 - 20th Ave. E.Apt. 2ASeattleWA98122USA(206) 555-98575467imgimg2http://accweb/emmployees/davolio.bmp2954.55
3LeverlingJanetSales RepresentativeMs.1963-08-30 00:00:001992-04-01 00:00:00722 Moss Bay Blvd.KirklandWA98033USA(206) 555-34123355imgimg2http://accweb/emmployees/leverling.bmp3119.15
5BuchananStevenSales ManagerMr.1955-03-04 00:00:001993-10-17 00:00:0014 Garrett HillLondonSW1 8JRUK(71) 555-48483453imgimg2http://accweb/emmployees/buchanan.bmp1744.21
6SuyamaMichaelSales RepresentativeMr.1963-07-02 00:00:001993-10-17 00:00:00Coventry House Miner Rd.LondonEC2 7JRUK(71) 555-7773428imgimg5http://accweb/emmployees/davolio.bmp2004.07
7KingRobertSales RepresentativeMr.1960-05-29 00:00:001994-01-02 00:00:00Edgeham Hollow Winchester WayLondonRG1 9SPUK(71) 555-5598465imgimg5http://accweb/emmployees/davolio.bmp1991.55
8CallahanLauraInside Sales CoordinatorMs.1958-01-09 00:00:001994-03-05 00:00:004726 - 11th Ave. N.E.SeattleWA98105USA(206) 555-11892344imgimg2http://accweb/emmployees/davolio.bmp2100.5

Övning 17

Vilka av de anställda som jobbar i UK har tilltalet Dr. eller Mr.

3 rader

EmployeeIDLastNameFirstNameTitleTitleOfCourtesyBirthDateHireDateAddressCityRegionPostalCodeCountryHomePhoneExtensionPhotoNotesReportsToPhotoPathSalary
5BuchananStevenSales ManagerMr.1955-03-04 00:00:001993-10-17 00:00:0014 Garrett HillLondonSW1 8JRUK(71) 555-48483453imgimg2http://accweb/emmployees/buchanan.bmp1744.21
6SuyamaMichaelSales RepresentativeMr.1963-07-02 00:00:001993-10-17 00:00:00Coventry House Miner Rd.LondonEC2 7JRUK(71) 555-7773428imgimg5http://accweb/emmployees/davolio.bmp2004.07
7KingRobertSales RepresentativeMr.1960-05-29 00:00:001994-01-02 00:00:00Edgeham Hollow Winchester WayLondonRG1 9SPUK(71) 555-5598465imgimg5http://accweb/emmployees/davolio.bmp1991.55

Övning 18

Vilka av de anställda (employees) är manager?

1 rader

EmployeeIDLastNameFirstNameTitleTitleOfCourtesyBirthDateHireDateAddressCityRegionPostalCodeCountryHomePhoneExtensionPhotoNotesReportsToPhotoPathSalary
5BuchananStevenSales ManagerMr.1955-03-04 00:00:001993-10-17 00:00:0014 Garrett HillLondonSW1 8JRUK(71) 555-48483453imgimg2http://accweb/emmployees/buchanan.bmp1744.21

Övning 19

Visa alla anställda vars efternamn slutar med ett “o”.

1 rader

EmployeeIDLastNameFirstNameTitleTitleOfCourtesyBirthDateHireDateAddressCityRegionPostalCodeCountryHomePhoneExtensionPhotoNotesReportsToPhotoPathSalary
1DavolioNancySales RepresentativeMs.1948-12-08 00:00:001992-05-01 00:00:00507 - 20th Ave. E.Apt. 2ASeattleWA98122USA(206) 555-98575467imgimg2http://accweb/emmployees/davolio.bmp2954.55

Övning 20

Vem av de anställda är manager eller arbetar med sales?

9 rader

EmployeeIDLastNameFirstNameTitleTitleOfCourtesyBirthDateHireDateAddressCityRegionPostalCodeCountryHomePhoneExtensionPhotoNotesReportsToPhotoPathSalary
1DavolioNancySales RepresentativeMs.1948-12-08 00:00:001992-05-01 00:00:00507 - 20th Ave. E.Apt. 2ASeattleWA98122USA(206) 555-98575467imgimg2http://accweb/emmployees/davolio.bmp2954.55
2FullerAndrewVice President, SalesDr.1952-02-19 00:00:001992-08-14 00:00:00908 W. Capital WayTacomaWA98401USA(206) 555-94823457imgimghttp://accweb/emmployees/fuller.bmp2254.49
3LeverlingJanetSales RepresentativeMs.1963-08-30 00:00:001992-04-01 00:00:00722 Moss Bay Blvd.KirklandWA98033USA(206) 555-34123355imgimg2http://accweb/emmployees/leverling.bmp3119.15
4PeacockMargaretSales RepresentativeMrs.1937-09-19 00:00:001993-05-03 00:00:004110 Old Redmond Rd.RedmondWA98052USA(206) 555-81225176imgimg2http://accweb/emmployees/peacock.bmp1861.08
5BuchananStevenSales ManagerMr.1955-03-04 00:00:001993-10-17 00:00:0014 Garrett HillLondonSW1 8JRUK(71) 555-48483453imgimg2http://accweb/emmployees/buchanan.bmp1744.21
6SuyamaMichaelSales RepresentativeMr.1963-07-02 00:00:001993-10-17 00:00:00Coventry House Miner Rd.LondonEC2 7JRUK(71) 555-7773428imgimg5http://accweb/emmployees/davolio.bmp2004.07
7KingRobertSales RepresentativeMr.1960-05-29 00:00:001994-01-02 00:00:00Edgeham Hollow Winchester WayLondonRG1 9SPUK(71) 555-5598465imgimg5http://accweb/emmployees/davolio.bmp1991.55
8CallahanLauraInside Sales CoordinatorMs.1958-01-09 00:00:001994-03-05 00:00:004726 - 11th Ave. N.E.SeattleWA98105USA(206) 555-11892344imgimg2http://accweb/emmployees/davolio.bmp2100.5
9DodsworthAnneSales RepresentativeMs.1966-01-27 00:00:001994-11-15 00:00:007 Houndstooth Rd.LondonWG2 7LTUK(71) 555-4444452imgimg5http://accweb/emmployees/davolio.bmp2333.33

Övning 21

Visa alla produkter så att namnet och lagervärdet visas (UnitsInStock*UnitPrice)

77 rader

productnameLagervärde
Chai702.0000
Chang323.0000
Aniseed Syrup130.0000
Chef Anton's Cajun Seasoning1166.0000
Chef Anton's Gumbo Mix0.0000
Grandma's Boysenberry Spread3000.0000
Uncle Bob's Organic Dried Pears450.0000
Northwoods Cranberry Sauce240.0000
Mishi Kobe Niku2813.0000
Ikura961.0000
Queso Cabrales462.0000
Queso Manchego La Pastora3268.0000
Konbu144.0000
Tofu813.7500
Genen Shouyu604.5000
Pavlova506.0500
Alice Mutton0.0000
Carnarvon Tigers2625.0000
Teatime Chocolate Biscuits230.0000
Sir Rodney's Marmalade3240.0000
Sir Rodney's Scones30.0000
Gustaf's Knckebrd2184.0000
Tunnbrd549.0000
Guaran Fantstica90.0000
NuNuCa Nu-Nougat-Creme1064.0000
Gumbr Gummibrchen468.4500
Schoggi Schokolade2151.1000
Rssle Sauerkraut1185.6000
Thringer Rostbratwurst0.0000
Nord-Ost Matjeshering258.9000
Gorgonzola Telino0.0000
Mascarpone Fabioli288.0000
Geitost280.0000
Sasquatch Ale1554.0000
Steeleye Stout360.0000
Inlagd Sill2128.0000
Gravad lax286.0000
Cte de Blaye4479.5000
Chartreuse verte1242.0000
Boston Crab Meat2263.2000
Jack's New England Clam Chowder820.2500
Singaporean Hokkien Fried Mee364.0000
Ipoh Coffee782.0000
Gula Malacca525.1500
Rogede sild47.5000
Spegesild1140.0000
Zaanse koeken342.0000
Chocolade191.2500
Maxilaku200.0000
Valkoinen suklaa1056.2500
Manjimup Dried Apples1060.0000
Filo Mix266.0000
Perth Pasties0.0000
Tourtire156.4500
Pt chinois2760.0000
Gnocchi di nonna Alice798.0000
Ravioli Angelo702.0000
Escargots de Bourgogne821.5000
Raclette Courdavault4345.0000
Camembert Pierrot646.0000
Sirop d'rable3220.5000
Tarte au sucre838.1000
Vegie-spread1053.6000
Wimmers gute Semmelkndel731.5000
Louisiana Fiery Hot Pepper Sauce1599.8000
Louisiana Hot Spiced Okra68.0000
Laughing Lumberjack Lager728.0000
Scottish Longbreads75.0000
Gudbrandsdalsost936.0000
Outback Lager225.0000
Flotemysost559.0000
Mozzarella di Giovanni487.2000
Rd Kaviar1515.0000
Longlife Tofu40.0000
Rhnbru Klosterbier968.7500
Lakkalikri1026.0000
Original Frankfurter grne Soe416.0000

Övning 22

Visa alla kunder med namnet och kundid i samma fält så att namnet visas först och sedan kundid inom parentes, fältet skall kallas Kund

93 rader

Kund
Alfreds Futterkiste (ALFKI)
Ana Trujillo Emparedados y helados (ANATR)
Antonio Moreno Taquera (ANTON)
Around the Horn (AROUT)
B's Beverages (BSBEV)
Berglunds snabbkp (BERGS)
Blauer See Delikatessen (BLAUS)
Blido Comidas preparadas (BOLID)
Blondesddsl pre et fils (BLONP)
Bon app' (BONAP)
Bottom-Dollar Markets (BOTTM)
Cactus Comidas para llevar (CACTU)
Centro comercial Moctezuma (CENTC)
Chop-suey Chinese (CHOPS)
Comrcio Mineiro (COMMI)
Consolidated Holdings (CONSH)
Die Wandernde Kuh (WANDK)
Drachenblut Delikatessen (DRACD)
Du monde entier (DUMON)
Eastern Connection (EASTC)
Ernst Handel (ERNSH)
Familia Arquibaldo (FAMIA)
FISSA Fabrica Inter. Salchichas S.A. (FISSA)
Folies gourmandes (FOLIG)
Folk och f HB (FOLKO)
France restauration (FRANR)
Franchi S.p.A. (FRANS)
Frankenversand (FRANK)
Furia Bacalhau e Frutos do Mar (FURIB)
Galera del gastrnomo (GALED)
Godos Cocina Tpica (GODOS)
Gourmet Lanchonetes (GOURL)
Great Lakes Food Market (GREAL)
GROSELLA-Restaurante (GROSR)
Hanari Carnes (HANAR)
HILARION-Abastos (HILAA)
Hungry Coyote Import Store (HUNGC)
Hungry Owl All-Night Grocers (HUNGO)
Island Trading (ISLAT)
IT (Val2 )
IT (VALON)
Kniglich Essen (KOENE)
La corne d'abondance (LACOR)
La maison d'Asie (LAMAI)
Laughing Bacchus Wine Cellars (LAUGB)
Lazy K Kountry Store (LAZYK)
Lehmanns Marktstand (LEHMS)
Let's Stop N Shop (LETSS)
LILA-Supermercado (LILAS)
LINO-Delicateses (LINOD)
Lonesome Pine Restaurant (LONEP)
Magazzini Alimentari Riuniti (MAGAA)
Maison Dewey (MAISD)
Morgenstern Gesundkost (MORGK)
Mre Paillarde (MEREP)
North/South (NORTS)
Ocano Atlntico Ltda. (OCEAN)
Old World Delicatessen (OLDWO)
Ottilies Kseladen (OTTIK)
Paris spcialits (PARIS)
Pericles Comidas clsicas (PERIC)
Piccolo und mehr (PICCO)
Princesa Isabel Vinhos (PRINI)
Que Delcia (QUEDE)
Queen Cozinha (QUEEN)
QUICK-Stop (QUICK)
Rancho grande (RANCH)
Rattlesnake Canyon Grocery (RATTC)
Reggiani Caseifici (REGGC)
Ricardo Adocicados (RICAR)
Richter Supermarkt (RICSU)
Romero y tomillo (ROMEY)
Sant Gourmet (SANTG)
Save-a-lot Markets (SAVEA)
Seven Seas Imports (SEVES)
Simons bistro (SIMOB)
Spcialits du monde (SPECD)
Split Rail Beer & Ale (SPLIR)
Suprmes dlices (SUPRD)
The Big Cheese (THEBI)
The Cracker Box (THECR)
Toms Spezialitten (TOMSP)
Tortuga Restaurante (TORTU)
Tradio Hipermercados (TRADH)
Trail's Head Gourmet Provisioners (TRAIH)
Vaffeljernet (VAFFE)
Victuailles en stock (VICTE)
Vins et alcools Chevalier (VINET)
Wartian Herkku (WARTH)
Wellington Importadora (WELLI)
White Clover Markets (WHITC)
Wilman Kala (WILMK)
Wolski Zajazd (WOLZA)

Övning 23

Hur många kunder finns det totalt

1 rader

Count(*)
93

Övning 24

Hur många kunder finns det i de olika länderna

22 rader

countryCount(*)
2
Argentina3
Austria2
Belgium2
Brazil9
Canada3
Denmark2
Finland2
France11
Germany11
Ireland1
Italy3
Mexico5
Norway1
Poland1
Portugal2
Spain5
Sweden2
Switzerland2
UK7
USA13
Venezuela4

Övning 25

Använd inner join för att visa alla producter och deras CategoryName.

77 rader

ProductnameCategoryName
ChaiBeverages
ChangBeverages
Guaran FantsticaBeverages
Sasquatch AleBeverages
Steeleye StoutBeverages
Cte de BlayeBeverages
Chartreuse verteBeverages
Ipoh CoffeeBeverages
Laughing Lumberjack LagerBeverages
Outback LagerBeverages
Rhnbru KlosterbierBeverages
LakkalikriBeverages
Aniseed SyrupCondiments
Chef Anton's Cajun SeasoningCondiments
Chef Anton's Gumbo MixCondiments
Grandma's Boysenberry SpreadCondiments
Northwoods Cranberry SauceCondiments
Genen ShouyuCondiments
Gula MalaccaCondiments
Sirop d'rableCondiments
Vegie-spreadCondiments
Louisiana Fiery Hot Pepper SauceCondiments
Louisiana Hot Spiced OkraCondiments
Original Frankfurter grne SoeCondiments
PavlovaConfections
Teatime Chocolate BiscuitsConfections
Sir Rodney's MarmaladeConfections
Sir Rodney's SconesConfections
NuNuCa Nu-Nougat-CremeConfections
Gumbr GummibrchenConfections
Schoggi SchokoladeConfections
Zaanse koekenConfections
ChocoladeConfections
MaxilakuConfections
Valkoinen suklaaConfections
Tarte au sucreConfections
Scottish LongbreadsConfections
Queso CabralesDairy Products
Queso Manchego La PastoraDairy Products
Gorgonzola TelinoDairy Products
Mascarpone FabioliDairy Products
GeitostDairy Products
Raclette CourdavaultDairy Products
Camembert PierrotDairy Products
GudbrandsdalsostDairy Products
FlotemysostDairy Products
Mozzarella di GiovanniDairy Products
Gustaf's KnckebrdGrains/Cereals
TunnbrdGrains/Cereals
Singaporean Hokkien Fried MeeGrains/Cereals
Filo MixGrains/Cereals
Gnocchi di nonna AliceGrains/Cereals
Ravioli AngeloGrains/Cereals
Wimmers gute SemmelkndelGrains/Cereals
Mishi Kobe NikuMeat/Poultry
Alice MuttonMeat/Poultry
Thringer RostbratwurstMeat/Poultry
Perth PastiesMeat/Poultry
TourtireMeat/Poultry
Pt chinoisMeat/Poultry
Uncle Bob's Organic Dried PearsProduce
TofuProduce
Rssle SauerkrautProduce
Manjimup Dried ApplesProduce
Longlife TofuProduce
IkuraSeafood
KonbuSeafood
Carnarvon TigersSeafood
Nord-Ost MatjesheringSeafood
Inlagd SillSeafood
Gravad laxSeafood
Boston Crab MeatSeafood
Jack's New England Clam ChowderSeafood
Rogede sildSeafood
SpegesildSeafood
Escargots de BourgogneSeafood
Rd KaviarSeafood

Övning 26

Vilka produkter levereras av “New England Seafood Cannery”?

2 rader

productnameCompanyName
Boston Crab MeatNew England Seafood Cannery
Jack's New England Clam ChowderNew England Seafood Cannery

Övning 27

Vilka levererar lax?

1 rader

Companyname
Svensk Sjfda AB