Avatar of Frank Freese
Frank FreeseFlag for United States of America

asked on 

Wanting to Group data in SQL

Folks,
From my table tblPasswords I am wanting to show the fields labeled, Applications, Comments, RoboSaved, Password where RoboSaved is Yes and only those passwords that are duplicated. The code below gives me this error:
"Your query does not include the specific expression 'Application' as part of an aggregate function"
SELECT tblPasswords.Application, tblPasswords.Comments, tblPasswords.RoboSaved, tblPasswords.Password, tblPasswords.Password
FROM tblPasswords
WHERE (((tblPasswords.RoboSaved)=Yes))
GROUP BY tblPasswords.Password
ORDER BY tblPasswords.Application;

Open in new window

In other words some Applications can use the same password.
Microsoft Access

Avatar of undefined
Last Comment
Frank Freese
Avatar of Eric Sherman
Eric Sherman
Flag of United States of America image

Can you provide a sample db or a sample of your current data and what you want to see returned from the query??

Thanks,

ET
SOLUTION
Avatar of Eric Sherman
Eric Sherman
Flag of United States of America image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
SOLUTION
Avatar of Hamed Nasr
Hamed Nasr
Flag of Oman image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

how you define if passwords that are duplicated ?

just to remember that different IDs could have same password as well ?
Avatar of Frank Freese
Frank Freese
Flag of United States of America image

ASKER

Ryan,
Indeed, different Applications can have the same password. Therefore I am interested in seeing only those Application when RoboSave = Yes and any passwords that are also duplicated.

ET,
I am aware of Find Duplicates and was going to explore that later.
SOLUTION
Avatar of Ryan Chong
Ryan Chong
Flag of Singapore image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
ASKER CERTIFIED SOLUTION
Avatar of Gustav Brock
Gustav Brock
Flag of Denmark image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
Avatar of Hamed Nasr
Hamed Nasr
Flag of Oman image

May you comment on my previous comment. http:#a41388985
 Duplicate on companies that was my assumption.
Avatar of Frank Freese
Frank Freese
Flag of United States of America image

ASKER

I appreciated everyone's input. Hnsar, you suggested did not work but I believe points can be award for effort. Thanking you all kindly
Microsoft Access
Microsoft Access

Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.

226K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo