Question

Whats wrong with this SQL code? SELECT DISTINCT Loser Team FROM Wins_S001 ORDER LoserTeam ASC

Whats wrong with this SQL code?

SELECT DISTINCT Loser Team FROM Wins_S001

ORDER LoserTeam ASC

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Assuming the table name and keys used in the SQL query is correct.

1st Statement -: SELECT DISTINCT Loser Team FROM Wins_S001

This is a correct statement, Basically SELECT DISTINCT is used to select the distinct values of a column from a table.

2nd Statement -: ORDER LoserTeam ASC

So the correct Keyword to sort the values is ORDER BY, ASC is used to ordering in the ascending order and DESC is used to order in descending order. So the correct query would be,

ORDER BY LoserTeam ASC;

Add a comment
Know the answer?
Add Answer to:
Whats wrong with this SQL code? SELECT DISTINCT Loser Team FROM Wins_S001 ORDER LoserTeam ASC
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT