New Скачать свой аккаунт MyPortableWorkingModel2D 8.0.1.0.zipbfdcm из Моей Папки in Uppabox v02 14.05.08. • Просмотров: 15.69K • Скачано: 1.34K. 27 Jul Скачать свой аккаунт MyPortableWorkingModel2D 8.0.1.0.zipbfdcm из Моей Папки и просмотреть.Q:
how to fetch the record from database which is having duplicate values on a field
I have a table with some fields like
id name
1 abc
2 cba
3 abc
I want to fetch the records which has duplicate values on name field.
I have a user defined function in which I am checking the duplicate values by comparing the value.
If I am doing this, I am finding only one record because it was taking the last record in a while loop.
A:
Using SELECT statement:
SELECT * FROM
Table
GROUP BY name
HAVING COUNT(*) > 1;
Using SELECT DISTINCT statement:
SELECT DISTINCT * FROM
Table
GROUP BY name
HAVING COUNT(*) > 1;
Davies Street, London
Davies Street is a street in the City of Westminster, London, England. It forms part of the A322 and A322/A323/A324 streets, and is an important dual carriageway. It crosses St. Thomas's Square and the Strand. Davies Street is named after Thomas Davies (1846–1906), a Justice of the High Court, who lived in the street for many years. It is most famous for the famous street performers of Davies Street.
St. Thomas's Hospital is located on the west side of the street. It was the second operating theatre built for the Westminster General Hospital. The building now houses the Westminster Clinical School. be359ba680
Related links:
Kommentare