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

  • SEARCH
  • Home
  • 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 8076487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T15:16:14+00:00 2026-06-05T15:16:14+00:00

I have 5 rows of data coming into my database every 2 hours from

  • 0

I have 5 rows of data coming into my database every 2 hours from a GSM modem and I require only the last (latest) row of data as thats the only relevant one but need all of the data for a chart…

Is there a way of using something to only recall one row after every fourth.


Example.

1pm
23, 25, 20,99,21

3pm
34, 56, 55, 65, 30

only showing 21 and 30 in 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-05T15:16:15+00:00Added an answer on June 5, 2026 at 3:16 pm

    With CTE:

    WITH NumberedRows AS
    (
        SELECT Serial, DeviceLevel, ROW_NUMBER() OVER (ORDER BY DateReceived DESC) AS RowNumber
        FROM TBLReadings 
    ) 
    SELECT *
    FROM NumberedRows
    WHERE RowNumber % 5 = 0
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a data table with data rows, which is coming from Ultra grid.
I have 1000 rows of data but need to only display 100 rows at
I have data coming in from datastage that is being put in our SQL
i have some rows of data displayed in a table and on mouse over
Suppose I have 500 rows of data, each with a paragraph of text (like
I have approx 10M rows of data across 20 tables, which I process once
I have a data file which is comprised of rows of data, newline separated.
I have a query which returns two rows of data as count. I want
I have a table with many rows of data, and I want to show
I have a table with a few rows of data. I would like to

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.