Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8072923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T14:10:38+00:00 2026-06-05T14:10:38+00:00

I have this query WITH NumberedRows AS ( SELECT Serial, DateReceived, DeviceLevel, ROW_NUMBER() OVER

  • 0

I have this query

WITH NumberedRows AS
(
    SELECT  Serial, 
            DateReceived, 
            DeviceLevel, 
            ROW_NUMBER() OVER (ORDER BY DateReceived) AS RowNumber
    FROM TBLReadings 
) 
SELECT *
FROM NumberedRows
WHERE RowNumber % 5 = 1 and Serial like '+447584996153'

I need to search between date – the last 7 days. I know the search..

WHERE DateReceived BETWEEN 'blahblah' and 'blahblah'

But what is the function? I have tried different formats to call the date specifically.

The current data retrieves the date in dd/mm/yyyy 00:00:00 format.

I do not know how to use the functions for date in the search correctly (I’m guessing this is why I cannot get any data when I search between dates as I just shows col name and no data)

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T14:10:40+00:00Added an answer on June 5, 2026 at 2:10 pm

    Try Using DATEADD function to get data of last seven days:

    WHERE DateReceived > DATEADD(day,-7, getutcdate())
    

    or

    WHERE DateReceived > DATEADD(day,-7, GETDATE())
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this query: SELECT * FROM bookmarks WHERE id=? ORDER BY title ASC,
I have this query: mysql_select_db('scanner'); $query = SELECT * FROM scanner.proxy ORDER BY RAND()
I have this query: $result = mysql_query(SELECT id,pic0,bio,url FROM .$table. WHERE id LIKE '%custom%'
I have this query: SELECT * FROM table WHERE key LIKE '1,2,3,%' OR key
I have this query... SELECT Distinct([TargetAttributeID]) FROM (SELECT distinct att1.intAttributeID as [TargetAttributeID] FROM AST_tblAttributes
I have this query: SELECT * From checkfinale where AssociateID = 51 AND `CompletedDate`
I have this query: public function checkUser($phone) { $sql = SELECT name FROM users
I have this query: UPDATE student_info set grade = (SELECT tempTable.grade FROM tempTable WHERE
i have this query SELECT CASE WHEN EXISTS (SELECT PARM_VALUE FROM BO_PARM WHERE (ENTE_CD
I have this query: 1) select C.One ,C.Two ,C.Three ,C.Four from mytable C where

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.