- #36
mathmari
Gold Member
MHB
- 5,049
- 7
mathmari said:2 : We have written this with the expression $\pi_{\text{NAME}}(\text{KUNDE} \ltimes \text{AUFTRAG})$ which can be written in relational calculus with the expression $\{y \mid \exists x_1, x_2, x_3\left (\text{KUNDE} \ltimes \text{AUFTRAG}(x_1, x_2, x_3)\land y_1=x_1\land y_2=x_3\right \}$, right? Now we have to write also the left join in relational calculus, or not? :unsure:
Do we write $\text{KUNDE} \ltimes \text{AUFTRAG}(x_1, x_2, x_3)$ in relational calculus as $$\{y_1,y_2,y_3 \mid \exists x_1,x_2,x_3 \left [\text{KUNDE}(y_1,y_2, y_3) \land \left (\text{AUFTRAG}(x_1, x_2, x_3)\land \left (y_1=x_1\lor y_2=x_2\lor y_3=x_3\right )\right )\right ]\}$$ or how can we write that there must be a common column in the two tables? :unsure: