Forum Discussion

suprio_sarker's avatar
suprio_sarker
Copper Contributor
May 06, 2020

MS Access SQL query

 

Hello,

I am not getting result from the below query.

can u please help to short out the problem of it. 

 

 

SELECT [NPS ATM].[Trnxn Mode], [NPS ATM].[Trnxn Type], [NPS ATM].[Card Number], [NPS ATM].RRN, [NPS ATM].STAN, [NPS ATM].[App Code], [NPS ATM].Amount, [NPS ATM].[Terminal ID], [NPS ATM].JOIN
FROM [NPS ATM]

INNER JOIN [NPS ATM REV] ON [NPS ATM].[JOIN] = [NPS ATM REV].[JOIN]
WHERE ((([NPS ATM REV].JOIN) Is Null));

 

 

Br,

Suprio

 

5 Replies

  • suprio_sarker Your queries are parameterized so they return only subsets of the total number of records in the linked Excel spreadsheet. 

    The query called "NPS ATM Without Matching NPS ATM REV" seems to be the one from which your posted SQL is taken. It has as a parameter "Join Is Null".

     

    It turns out that there are NO records that match that parameter. In other words ALL fields called [Join] in both tables do have matching records. That means this SQL returns no records because [Join] is never Null. 

    • suprio_sarker's avatar
      suprio_sarker
      Copper Contributor
      George Hepworth ,
      That means if we use CONCATENATE to join to different data and use this value in query that does not give result.
      • George Hepworth's avatar
        George Hepworth
        Iron Contributor

        suprio_sarker I don't know what you mean by "CONCATENATE". I see nothing in this SQL to indicate you are concatenating something. Please explain further. (I realize English may not be your primary language, so it can be harder to get the point across.) 

Resources