abandon the idea of i18n
This commit is contained in:
parent
66a9eff515
commit
81e34910fa
|
@ -74,7 +74,7 @@ post:
|
||||||
# See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
|
# See: <http://strftime.net/>, <https://day.js.org/docs/en/display/format>
|
||||||
df:
|
df:
|
||||||
post:
|
post:
|
||||||
strftime: "%d.%m.%Y"
|
strftime: "%Y.%m.%d"
|
||||||
dayjs: "DD.MM.YYYY"
|
dayjs: "DD.MM.YYYY"
|
||||||
|
|
||||||
# categories page
|
# categories page
|
||||||
|
|
|
@ -0,0 +1,42 @@
|
||||||
|
---
|
||||||
|
title: sql müll
|
||||||
|
author: cscherr
|
||||||
|
date: 2024-04-10 00:34:00 +0800
|
||||||
|
categories: [Blogging, Tutorial]
|
||||||
|
tags: [favicon]
|
||||||
|
lang: en
|
||||||
|
---
|
||||||
|
|
||||||
|
blablabla
|
||||||
|
|
||||||
|
```sql
|
||||||
|
-- Task: Ich habe noch 3 Eier im Kühlschrank deren Haltbarkeit demnächst
|
||||||
|
ablaufen. Welche Kuchen kann ich backen,
|
||||||
|
-- die maximal 3 Eier und 400g Mehl verbrauchen?
|
||||||
|
-- Task (1.2)
|
||||||
|
SELECT g.*
|
||||||
|
FROM GEBACK g
|
||||||
|
JOIN (
|
||||||
|
SELECT G_ID
|
||||||
|
FROM Z_G zg
|
||||||
|
LEFT JOIN ZUTAT z ON zg.Z_ID = z.Z_ID
|
||||||
|
WHERE (z.NAME = 'Mehl' AND zg.MASSE <= 400)
|
||||||
|
OR (z.NAME = 'Ei' AND zg.MASSE <= 300)
|
||||||
|
GROUP BY G_ID
|
||||||
|
HAVING COUNT(DISTINCT CASE WHEN z.NAME IN ('Mehl', 'Ei') THEN z.Z_ID END) < 2
|
||||||
|
) fltr ON g.G_ID = fltr.G_ID;
|
||||||
|
```
|
||||||
|
|
||||||
|
```sql
|
||||||
|
SELECT * FROM GEBACK g
|
||||||
|
WHERE g.G_ID IN (
|
||||||
|
SELECT G_ID FROM (
|
||||||
|
SELECT G_ID, SUM(CASE WHEN NAME = 'Mehl' THEN MASSE ELSE 0 END) AS sum_mehl,
|
||||||
|
COUNT(DISTINCT CASE WHEN NAME IN ('Ei','Mehl') THEN Z_ID END) AS count_ingredients
|
||||||
|
FROM Z_G
|
||||||
|
WHERE NAME IN ('Mehl', 'Ei')
|
||||||
|
GROUP BY G_ID
|
||||||
|
HAVING sum_mehl <= 400 AND count_ingredients <= 2
|
||||||
|
) x
|
||||||
|
);
|
||||||
|
```
|
|
@ -1,7 +1,7 @@
|
||||||
---
|
---
|
||||||
# the default layout is 'page'
|
# the default layout is 'page'
|
||||||
icon: fas fa-info-circle
|
icon: fas fa-info-circle
|
||||||
order: 4
|
order: 100
|
||||||
---
|
---
|
||||||
|
|
||||||
> Add Markdown syntax content to file `_tabs/about.md`{: .filepath } and it will show up on this page.
|
> Add Markdown syntax content to file `_tabs/about.md`{: .filepath } and it will show up on this page.
|
||||||
|
|
|
@ -0,0 +1,9 @@
|
||||||
|
---
|
||||||
|
# the default layout is 'page'
|
||||||
|
icon: fas fa-info-circle
|
||||||
|
order: 4
|
||||||
|
---
|
||||||
|
|
||||||
|
TODO
|
||||||
|
|
||||||
|
[aa](./a)
|
Loading…
Reference in New Issue