Advertisement

07.02.2008 at 10:17PM PDT, ID: 23535888
[x]
Attachment Details

TOP Keyword Issue

Asked by NigelRocks in Microsoft Access Database, SQL Query Syntax

Tags: Access SQL

Hello,

The query attached in the snippet returns four records even though I'm explicitly telling it to return only 2.  What's going on?Start Free Trial
1:
SELECT TOP 2  HowTo.HowTo_ID,Topics.Topic_Name,HowTo.TASK_DESCRIPTION FROM ((((HowTo INNER JOIN Topics_To_HowTo ON Topics_To_HowTo.HowTo_ID = HowTo.HowTo_ID) INNER JOIN Topics ON Topics_To_HowTo.Topic_ID =Topics.Topic_ID) INNER JOIN Subjects_To_Topics ON Subjects_To_Topics.Topic_ID=Topics.Topic_ID)  INNER JOIN Disciplines_To_Subjects ON Disciplines_To_Subjects.Subject_ID=Subjects_To_Topics.Subject_ID)  WHERE Disciplines_To_Subjects.Discipline_ID=2 AND Subjects_To_Topics.Subject_ID=7 AND Topics_To_HowTo.Topic_ID=193 ORDER BY Topics.Topic_Name ASC
[+][-]07.02.2008 at 10:27PM PDT, ID: 21922859

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 10:28PM PDT, ID: 21922861

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.02.2008 at 10:30PM PDT, ID: 21922872

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 06:21AM PDT, ID: 21925136

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.03.2008 at 09:05AM PDT, ID: 21926787

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.04.2008 at 02:12AM PDT, ID: 21931859

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 11:32AM PDT, ID: 21966790

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 11:39AM PDT, ID: 21966874

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 11:52AM PDT, ID: 21966983

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 12:03PM PDT, ID: 21967119

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 12:22PM PDT, ID: 21967303

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.09.2008 at 02:00PM PDT, ID: 21968327

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]07.09.2008 at 02:16PM PDT, ID: 21968477

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Microsoft Access Database, SQL Query Syntax
Tags: Access SQL
Sign Up Now!
Solution Provided By: DatabaseMX
Participating Experts: 3
Solution Grade: A
 
 
[+][-]07.09.2008 at 07:41PM PDT, ID: 21970117

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628