Given are relational algebraic expressions. Perform given tasks for each.
· Write SQL statement for given queries.
· Convert Cartesian Product into Joins and vice versa.(convert only given queries in relational algebraic form)
i- (((sTSAL>=50000(Tutor))⟕TIDAssign)⋈C.cid=A.cid(sName=’DBS’ (Course))
ii- sTS.REGNO=R.REGNO^R.CCODE=C.CCODE (((sCGPA>3.0(STUDENT)) x (REG)) x (sCATEGORY='MATHS'(COURSE)))
SELECT Customers.CustomerName, Orders.OrderID
FROM Customers
LEFT JOIN Orders ON Customers.CustomerID = Orders.CustomerID
ORDER BY Customers.CustomerName;
Comments
Leave a comment