Dies ist eine alte Version des Dokuments!


LU04.A02 - SQL-DQL: Select from multiple tables

  • Work type: individual
  • Timeframe: 20 Minutes
  • Means of aid:
  • Expected result: Semantically and syntactically correct SQL statements according to the requirements of the case studies.

The following ERD describes a order database for a a shop.

ERD eines Shops

You general assignment is to develop DQL commands that matches the requirements below:

  • a) We need a list with product details as following:
    • Supplier name
    • Supplier phone
    • ProductID
    • ProductName
    • Units
    • Price
    • Ordered by SupplierName descending
SELECT s.SupplierName, s.SupplierID, s.phone,  p.ProductID, p.ProductName, p.Unit, p.Price
FROM Suppliers s, Products p
WHERE p.SupplierID = s.SupplierID
ORDER BY s.SupplierName DESC; 

====== LU04.A01 - SQL-DQL: Select from one table ======
* b) Generate a list with ProductNames, Price and SupplierIDs within a price range of 20 and 45, sorted the Price and SupplierID, both ascending.
* c) Find all employees who graduated from a university. The relevant information is hidden in the table Employees, within the colums Notes.
English German
respectively beziehungsweise
assignment Auftrag

Volkan Demir

  • modul/m290/learningunits/lu04/aufgaben/a02.1725363282.txt.gz
  • Zuletzt geändert: 2024/09/03 13:34
  • von vdemir