<?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:lu07: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-07T20:17:04+00:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="https://wiki.bzz.ch/en/modul/m290/learningunits/lu07/loesungen/l01?rev=1729161892&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.bzz.ch/en/modul/m290/learningunits/lu07/loesungen/l02?rev=1729161884&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.bzz.ch/en/modul/m290/learningunits/lu07/loesungen/l03?rev=1729161876&amp;do=diff"/>
                <rdf:li rdf:resource="https://wiki.bzz.ch/en/modul/m290/learningunits/lu07/loesungen/l04?rev=1729161868&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/lu07/loesungen/l01?rev=1729161892&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-10-17T10:44:52+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>LU08.S01 - Preparatory work</title>
        <link>https://wiki.bzz.ch/en/modul/m290/learningunits/lu07/loesungen/l01?rev=1729161892&amp;do=diff</link>
        <description>LU08.S01 - Preparatory work

A: Creating the data schema

First of all we need a database schema (database workspace). Execute the following two lines on your MySQL installation.
CREATE DATABASE hr_database;
SHOW DATABASES;
USE hr_database;

After executing the three SQL commands above, the feedback from your database would look like in the image below:</description>
    </item>
    <item rdf:about="https://wiki.bzz.ch/en/modul/m290/learningunits/lu07/loesungen/l02?rev=1729161884&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-10-17T10:44:44+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>LU08.S02 - INSERT INTO</title>
        <link>https://wiki.bzz.ch/en/modul/m290/learningunits/lu07/loesungen/l02?rev=1729161884&amp;do=diff</link>
        <description>LU08.S02 - INSERT INTO

A: Separate INSERT statements

Below you will find ten lines with employee data that you should insert into the ‘employees’ table, but with 10 separate INSERT commands.
INSERT INTO EMPLOYEES (employee_id, name, surname, birthdate, sex, pronomen, employment_date, salary, department)
VALUES (1, &#039;John&#039;, &#039;Doe&#039;, &#039;1985-03-25&#039;, &#039;M&#039;, &#039;He/Him&#039;, &#039;2015-01-15&#039;, 55000.00, &#039;Finance&#039;);
INSERT INTO EMPLOYEES (employee_id, name, surname, birthdate, sex, pronomen, employment_date, salary, …</description>
    </item>
    <item rdf:about="https://wiki.bzz.ch/en/modul/m290/learningunits/lu07/loesungen/l03?rev=1729161876&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-10-17T10:44:36+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>LU08.S03 - UPDATE</title>
        <link>https://wiki.bzz.ch/en/modul/m290/learningunits/lu07/loesungen/l03?rev=1729161876&amp;do=diff</link>
        <description>LU08.S03 - UPDATE

A: Basic Update

The employee ‘Laura Clark’ got divorced and therefore took her maiden name. Update her data record in the table.
Update employees
SET surname = &#039;Suter&#039;
WHERE employee_ID = 8;



B: Update with OR

As a company policy the attribute &#039;sex&#039; is not required anymore and is to be emptied. Formulate the corresponding SQL statement that deletes all content from that column.</description>
    </item>
    <item rdf:about="https://wiki.bzz.ch/en/modul/m290/learningunits/lu07/loesungen/l04?rev=1729161868&amp;do=diff">
        <dc:format>text/html</dc:format>
        <dc:date>2024-10-17T10:44:28+00:00</dc:date>
        <dc:creator>Anonymous (anonymous@undisclosed.example.com)</dc:creator>
        <title>LU08.S04 - DELETE</title>
        <link>https://wiki.bzz.ch/en/modul/m290/learningunits/lu07/loesungen/l04?rev=1729161868&amp;do=diff</link>
        <description>LU08.S04 - DELETE

A: Delete of one row

Sarah Johnson has left the company and is therefore to be deleted from the table. Formulate the according DML DELETE statement.
DELETE FROM employees
WHERE name = &#039;Sarah&#039;
AND surname = &#039;Johnson&#039;;
Alternatively, the commands is likewise possible with using the employee_id.</description>
    </item>
</rdf:RDF>
