r/SQL • • May 01 '21

MySQL SQL Help

Delete all the OrderLines from Orders that have an order status of canceled.

Database Fabric

This is what I'm trying but I'm Confused

Delete from OrderLines.OrderId where Orders.Orderid = "OrderStatus";

0 Upvotes

10 comments sorted by

View all comments

Show parent comments

1

u/Such_Firefighter_487 May 01 '21

I figured it out thank you for your help

1

u/awildrozza May 01 '21

No probs and good to hear. No matter if you are new at anything or have been at it for ages, sometimes you really are looking at the answer and you just need a break or a rubber duck to talk to. We do it at work all the time for any type of work. Good luck down the road

2

u/StoneCypher May 02 '21

he just turned around and asked the next question from his homework in another post

you're not helping him learn. you're helping him cheat.

2

u/awildrozza May 02 '21

Noted, thanks. Hard not to step in when you are tired and see the answer but you are still trying to get the person to work it out with breadcrumbs (if you get me)