LATEX Overview
\documentclass{article}
\title{Hello World}
\author{Peter Story}
\date{\today}
\begin{document}
\maketitle
\section{Introduction}
$$ E = mc^2 $$
\end{document}
List the names of all the managers who have been managing a department for more than a year.
πFname, Minit, Lname(σMgr_start_date < 1/1/23(EMPLOYEE⋈Ssn=Mgr_ssnDEPARTMENT))
\pi_\text{Fname, Minit, Lname} (
\sigma_\text{Mgr_start_date < 1/1/23} ( \\
\text{EMPLOYEE} \bowtie_\text{Ssn=Mgr_ssn} \text{DEPARTMENT}))
List the names of all the managers who have been managing a department for more than a year.
{e.Fname,e.Minit,e.Lname | EMPLOYEE(e) AND (∃d)(DEPARTMENT(d) AND e.Ssn=d.Mgr_ssn AND d.Mgr_start_date<1/1/23)}
{e.Fname,e.Minit,e.Lname | EMPLOYEE(e) AND (∃d)(DEPARTMENT(d) AND e.Ssn=d.Mgr_ssn AND d.Mgr_start_date<1/1/23)}
\left\{ e.\text{Fname}, e.\text{Minit}, e.\text{Lname } \big| \\
\text{ EMPLOYEE}(e) \text{ AND } \\
(\exists d)\big(
\text{DEPARTMENT}(d) \text{ AND } \\
e.\text{Ssn} = d.\text{Mgr_ssn} \text{ AND } \\
d.\text{Mgr_start_date} < 1/1/23
\big)\right\}