Skip to content
Loading
  • Debarshi Chakraborty
    +1
    Sorry, didn't understand ! Please share a picture of the result you are getting and highlight in that picture, what is the problem..
    +1
  • Ruchi Sharavat
    +1
    Where do you have time column in database to add filter for time 6AM to 20 PM and what values (i mean format like HH:mm) you store in that column?
    +1
  • +1
    Hi Ruchi
     
    Well i am using this logic on this query, have a look there is called "DateTime Passed"
    1. SELECT TOP 1000 [Station Description]   
    2.       ,[DateTime Passed]    
    3.       ,[PNR]  
    4.       ,[Detect_Or_Misread]   
    5.        ,[KNR]    
    6.         
    7.   FROM [Tracking_Server_DB].[dbo].[TS_Station], [Tracking_Server_DB].[dbo].[Checkpoint Movement], [Tracking_Server_DB].[dbo].[Reader_Info]     
    8.   where [Tracking_Server_DB].[dbo].[TS_Station].[Transaction Code]  = [Tracking_Server_DB].[dbo].[Checkpoint Movement].[Transaction Code]  
    9.      
    10.   and [Tracking_Server_DB].[dbo].[TS_Station].[Transaction Code]  = [Tracking_Server_DB].[dbo].[Reader_Info].[Transaction_Code]  
    11.     
    12.    and ( [Tracking_Server_DB].[dbo].[TS_Station].[Station Description] = 'M100'  
    13.    or [Tracking_Server_DB].[dbo].[TS_Station].[Station Description] = 'M700')  
    14.        
    15. order by  [PNR] ,[DateTime Passed]  
    +1