Unterschiede

Hier werden die Unterschiede zwischen zwei Versionen angezeigt.

Link zu dieser Vergleichsansicht

Nächste Überarbeitung
Vorhergehende Überarbeitung
modul:m290:learningunits:lu04:aufgaben:a02 [2024/09/03 12:47] – angelegt vdemirmodul:m290:learningunits:lu04:aufgaben:a02 [2024/10/17 12:35] (aktuell) vdemir
Zeile 1: Zeile 1:
-====== LU04.A02 - SQL : DQL - Select from several tables======+====== LU06.A02 - SQL-DQL: Select from multiple tables======
  
 ===== Requirements  ===== ===== Requirements  =====
   * Work type: individual   * Work type: individual
-  * Timeframe: 20 Minutes+  * Timeframe: 30 Minutes
   * Means of aid:    * Means of aid: 
       * only teaching materials, no websearch, no use of ai.       * only teaching materials, no websearch, no use of ai.
Zeile 10: Zeile 10:
  
 ===== Case studies / Assignments ===== ===== Case studies / Assignments =====
-Go to the W3-Schools SQL Editore and develop DQL-SELECT commands to the following requirements+The following ERD describes a order database for a a shop.  
 + 
 +{{:modul:m290:learningunits:lu04:aufgaben:erd_selects.png?900|ERD eines Shops}}
  
 ===== Assignments ===== ===== Assignments =====
 +The general assignment is to develop DQL commands that matches the requirements below:
  
-  * a) Create a adress-list of the customers with the columns in this orderCustomerName, Adress, PostalCode, Country, ordered by the the Country ascending. +==== Assignment A ==== 
-  * b) Generate a list with ProductNames, Price and SupplierIDs within a price range of 20 and 45, sorted the Price and SupplierID, both ascending. +We need a list with product details as following: 
-  * c) Find all employees who graduated from a university. The relevant information is hidden in the table Employees, within the colums Notes.+  * Name of the supplier 
 +  * Supplier phone  
 +  * Product ID 
 +  * Name of the product 
 +  * Units 
 +  * Price 
 +The list must be be sorted by the suppliername in descending order.
  
-===== Solution ===== 
-[[modul:m290:learningunits:lu04:loesungen:l01|Lösung]] 
  
 +==== Assignment B ====
 +Extend the the result of the Select statement from assignment a), so that it must contain only produtcs of the supplier "Leka Trading"
  
 +==== Assignment C ====  
 +We would like to know what products the customer "Hanari Carnes" has ordered in the past. Sort the list by the quantity. detail we require the following data: 
 +  * CustomerID
 +  * CustomerName
 +  * OrderID
 +  * OrderDate
 +  * Quantity
 +  * ProductName
 +  * CategoryName 
 +
 +===== Solution =====
 +[[modul:m290:learningunits:lu04:loesungen:l02|Lösung]]
 +  
 ===== Vocabulary ===== ===== Vocabulary =====
 ^ English ^ German ^  ^ English ^ German ^ 
-respectively beziehungsweise| +... ...|
-| assignment | Auftrag |+
  
  
 ---- ----
 [[https://creativecommons.org/licenses/by-nc-sa/4.0/|{{https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png}}]] Volkan Demir [[https://creativecommons.org/licenses/by-nc-sa/4.0/|{{https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png}}]] Volkan Demir
  • modul/m290/learningunits/lu04/aufgaben/a02.1725360453.txt.gz
  • Zuletzt geändert: 2024/09/03 12:47
  • von vdemir