Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

SQL 1.) report all columns for the donors who are form oslo 2.) Display the dono

ID: 3796289 • Letter: S

Question

SQL

1.) report all columns for the donors who are form oslo

2.) Display the donors last name and state where donors state is MN

3. report the donos first name, lat name, donor number and their city ( in this order) who are from london

4.) Write yours ownquery and the sql statement to display the report

5.) report what are the different states that the donors represent

6. report different state from the donors list ( user the other operrator)

7. Find different first names of donors

DONORNO DINAME 101 Abrams 102 Aldinger 103 Beckman. 104 Berdahl 105 Borneman 106 Brock 107 Buyert. 108 Cetinsoy 109 Chisholm 118 Herskowitz 119 Jefts 110 Crowder 111 Dishman 112 Duke 113 Evans 114 Frawley 115 Guo 116 Hammann 117 Hays Name DONORNO DLNAME DENAME PHONE DSTATE DCITY SID SNAME F MGT 987 POIRER F FIN 763 PARKER 218 RICHARDS M ACC 359 PELNICK F FIN M MGT 862 FAGIN 748 MEGLIN M MGT 506 LEE M FIN 581 GAMBRELI, F MGT 126 ANDERSON M ACC 444 LINSTERBOK M CIS 445 MINSTERBOK F CIS 446 NINSTERBOK F CIS 447 OINSTERBOK M CIS Name SID SEX GPA. Donor Table DPHONE DS DCITY DENAME 9018 GA London Louis 1521 GA Paris Dmitry 8247 WA Sao Paulo Gulsen. 8149 WI Sydney Samuel 1888 MD Bombay Joanna 2142 AL London. Scott 9355 AK New York Aylin 6346 AZ Rome Girwan 4482 MA Oslo John 6872 MT London Thomas 8103 ME Oslo Robert 6513 NC Stockholm Anthony 3903 NC Helsinki. Michelle 4939 FIL Tokyo Peter 4336 GA Singapore Ann 4785 MN Perth Todd 6247 MN Moscow John 5369 ND Kabaul. John 1352 SD Lima. Null? N NUMBER (38) CHAR (15) CHAR (15) NUMBER (4) CHAR (2) CHAR (15) Student Table GPA. Null? NOT NULL CHAR (3) NOT NULL CHAR (10) CHAR (1) CHAR (3) NUMBER (4,2)

Explanation / Answer

Your some queries are not clear. The queries 4, and 6 are not clear. Please be clear what does it mean by own query to display report.

Anyways, the answer for the other questions is:

Donor(DonorNo, DLName, DFName, DPhone, DS, DCity);
Student(SID, SName, S, Maj, GPA);

1.) report all columns for the donors who are form oslo
SELECT * FROM Donor WHERE Dcity = "Oslo";

2.) Display the donors last name and state where donors state is MN
SELECT DLName, DS FROM Donor WHERE DS = "MN";

3. report the donos first name, lat name, donor number and their city ( in this order) who are from london
SELECT DFName, DLName, DonorNo, DCity FROM Donor WHERE DCity = "London";

4.) Write yours own query and the sql statement to display the report

5.) report what are the different states that the donors represent
SELECT DISTINCT DS FROM Donor;

6. report different state from the donors list ( user the other operrator)

7. Find different first names of donors
SELECT DFName FROM Donor;