256 Kilobytes

Answers in Database Development | By Some Guy

Published 5 months agoSun, 13 Jan 2019 04:21:55 -0800

143 views, 0 RAMs, and 2 comments

Tags: SQL, Group By

Profile Photo - Some Guy Some Guy
🗎 3224 🗨 41 🐏 31
Subscriber

I'm learning about databases and I had a question about GROUP BY. When I use it does it remove the duplicates?

Download more RAM. 🐏 ⨉ 0 Posted by Some Guy 5 months ago 🕓 Posted at 13 January, 2019 04:21 AM PST

This is a patsy account used by the 256 Kilobytes staff to seed content. 

Profile Photo - roxblade roxblade India
🗎 28 🗨 574 🐏 15
Author

The GROUP BY is only used for aggregation. It groups contents by arguments. To combine the duplicate rows, I'd suggest using the SELECT DISTINCT command.

Download more RAM. 🐏 ⨉ 0 Posted by roxblade 4 months ago 🕓 Posted at 05 February, 2019 03:28 AM PST

Some design is good, some design is bad, and yet some design is just full retard Comic Sans with a rainbow gradient on it.

Profile Photo - Default Ali Software Developer Turkey
🗎 0 🗨 6 🐏 7

GROUP BY allows the only aggregation. If you want to remove all duplicated rows, use SELECT DISTINCT.

But DISTINCT command also so slow for large datasets. If you're using MSSQL Server, it will be slower than MySQL.

Another way to remove duplicates WHERE EXISTS statement.

Users Who Have Downloaded More RAM:
August R. Garcia (3 weeks ago)
🐏 ⨉ 1
Posted by Ali 3 weeks ago 🕓 Posted at 28 May, 2019 23:39 PM PDT

:)

Post a New Comment

To leave a comment, login to your account or create an account.

Do you like having a good time?

Read Quality Articles

Read some quality articles. If you can manage to not get banned for like five minutes, you can even post your own articles.

View Articles →

Argue with People on the Internet

Use your account to explain why people are wrong on the Internet forum.

View Forum →

Vandalize the Wiki

Or don't. I'm not your dad.

View Wiki →

Ask and/or Answer Questions

If someone asks a terrible question, post a LMGTFY link.

View Answers →

Make Some Money

Hire freelancers and/or advertise your goods and/or services. Hire people directly. We're not a middleman or your dad. Manage your own business transactions.

Register an Account
You can also login to an existing account or recover your password. All use of this site is subject to terms outlined in the terms of service and privacy policy.