Hi,
I receive a message that states 'At most one record can be returned by this subquery'. (Error 3354)
Main Topics
Browse All TopicsHi Experts,
I have a junction table with a field called [Intralink Publication Type]. The main table is linked to the junction table by [EventNum].
I would like to build a query that counts the total # of types for each eventnum (i.e. for event # 255 there are 2 manuals, 3 job aids, 0 FAQs for event #256 there are 0 manuals, 6 job aids, 1 FAQ, etc.)
Attached is a select statement with the associated error message.
Thanks for your help!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Try putting
If you need the results formatted nicer and not in separate columns, save this query, then build another query based on this one, and combine the columns as you like - e.g. put the following in the 'Field' row
EventTypes: "Event # " + EventNum + " has " + cntof + " " + pubType
This is still vertical though:
Event # 255 has 2 manuals
Event # 255 has 3 job aids
Event # 255 has 0 FAQs
If you need it horizontally like you listed above, or if I have totally missed the mark here let me know..
Galen
Business Accounts
Answer for Membership
by: LimbeckPosted on 2009-09-09 at 12:35:15ID: 25294750
hi, select the field TBL_1_Submission.EventNum in the first column then use this expression in the second:
nts.[Intra link Publication Type]) AS ManualCount FROM TBL_1_Submission INNER JOIN TBL_JunctionAttachments ON TBL_1_Submission.EventNum = TBL_JunctionAttachments.Ev entNum GROUP BY TBL_1_Submission.EventNum)
Expression1: (SELECT Count(TBL_JunctionAttachme