Question: SELECT b . UserName,SUM ( a . total ) FROM Transactions _ 3 NF a inner join Users _ 3 NF b on a .

SELECT b.UserName,SUM(a.total)
FROM Transactions_3NF a
inner join Users_3NF b
on a.UserID = b.UserID
where a.InvoiceDate like '2020%'
GROUP BY CartID
having count(*)=4
order by a.total desc
limit 1;

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!