<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://wiki.bzz.ch/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="https://wiki.bzz.ch/feed.php">
        <title>BZZ - Modulwiki - en:modul:m290:learningunits:lu04:loesungen</title>
        <description></description>
        <link>https://wiki.bzz.ch/</link>
        <image rdf:resource="https://wiki.bzz.ch/_media/wiki/logo.png" />
       <dc:date>2026-04-07T22:10:17+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.bzz.ch/en/modul/m290/learningunits/lu04/loesungen/l01?rev=1729161334&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.bzz.ch/en/modul/m290/learningunits/lu04/loesungen/l02?rev=1729161344&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.bzz.ch/en/modul/m290/learningunits/lu04/loesungen/l03?rev=1729161352&amp;do=diff"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="https://wiki.bzz.ch/_media/wiki/logo.png">
        <title>BZZ - Modulwiki</title>
        <link>https://wiki.bzz.ch/</link>
        <url>https://wiki.bzz.ch/_media/wiki/logo.png</url>
    </image>
    <item rdf:about="https://wiki.bzz.ch/en/modul/m290/learningunits/lu04/loesungen/l01?rev=1729161334&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-10-17T10:35:34+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>LU06.S01 - SQL-DQL: Select from one table</title>
        <link>https://wiki.bzz.ch/en/modul/m290/learningunits/lu04/loesungen/l01?rev=1729161334&amp;do=diff</link>
        <description>LU06.S01 - SQL-DQL: Select from one table

Assignment a)

Create a address-list of the customers with the columns in this order: CustomerName, Address, PostalCode, Country, ordered by the the Country ascending.
Select CustomerName, Address, PostalCode, Country
from customers
order by country;</description>
    </item>
    <item rdf:about="https://wiki.bzz.ch/en/modul/m290/learningunits/lu04/loesungen/l02?rev=1729161344&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-10-17T10:35:44+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>LU06.S02 - SQL-DQL: Select from multiple tables</title>
        <link>https://wiki.bzz.ch/en/modul/m290/learningunits/lu04/loesungen/l02?rev=1729161344&amp;do=diff</link>
        <description>LU06.S02 - SQL-DQL: Select from multiple tables

Case studies / Assignments

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

[ERD eines Shops]

Assignments

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

Assignment A</description>
    </item>
    <item rdf:about="https://wiki.bzz.ch/en/modul/m290/learningunits/lu04/loesungen/l03?rev=1729161352&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-10-17T10:35:52+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>LU06.S03 - SQL-DQL: Selects with Aggregate Functions</title>
        <link>https://wiki.bzz.ch/en/modul/m290/learningunits/lu04/loesungen/l03?rev=1729161352&amp;do=diff</link>
        <description>LU06.S03 - SQL-DQL: Selects with Aggregate Functions

A: MIN

We want to know which of our products actually the cheapest is.
SELECT min(price)
FROM Products;

Result from DB:
2.5 

B: MAX

What is the highest price for the products of the supplier with id = 12?</description>
    </item>
</rdf:RDF>
