Skip to content

Tag: oracle

Finding Duplicate Rows in a Table

I am trying to find out how many duplicate records I have in a table. I can use count, but I’m not sure how best to eliminate records where the count is only 1. I can try to order by the count, but I am still not eliminating those with a count of one. Answer you can use having clause

SQL statement about average

My question is -> Retrieve the segment ID and length of each segment that is longer than the average length of all segments. Name the column indicating the length of segments “Length”. Relations: What I got so far is: And I got this error message: Error: Your query has syntax errors. Descriptio…