I'm having a question about this SQL query:
SELECT class
FROM Ships
WHERE name IN (SELECT ship
FROM Outcomes
WHERE result = ’sunk’);
Can I write in the subquery SELECT * From Outcomes
or do I always need to select
a row
?
And what query has the best performance then?