MySQL Forums
Forum List  »  Newbie

Re: Stored Procedures
Posted by: Michael Smith
Date: May 11, 2023 07:17AM

I got the answer from ChatGPT. Its not code like I have seen before, but it works.

DELETE FROM Invoices02
WHERE Invnbr IN (
SELECT Invnbr FROM (
SELECT Invnbr FROM Invoices02
WHERE Check01 = 1
GROUP BY Invnbr
) AS subquery
);

Mike

Options: ReplyQuote


Subject
Written By
Posted
April 27, 2023 08:35AM
April 28, 2023 03:10AM
April 28, 2023 07:19AM
Re: Stored Procedures
May 11, 2023 07:17AM


Sorry, only registered users may post in this forum.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.