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 9090963
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T22:29:51+00:00 2026-06-16T22:29:51+00:00

I have a query like this: SELECT count(distinct ID) FROM TBLC WHERE date BETWEEN

  • 0

I have a query like this:

SELECT count(distinct ID) FROM TBLC WHERE date BETWEEN ? AND ?;

I am using Pentaho Spoon. I am using ‘Execute SQL Script’/ statement. The options I see are Execute for each row, execute as a single statement and variable substitution.

If I need to change my query or need other steps to implement, please response.

EDIT:

I am using a Pentaho Spoon to transfer data from Infobright database (table1, table2) to Infobright database (table3).

Query is similar to:

SELECT table1.column1, table2.column2
FROM table1 JOIN table2 ON table1.id=table2.id
WHERE table2.date BETWEEN '2012-12-01' AND '2012-12-30'

I want a way so that I do not have to manually specify the date range each time I run the transformation. I want to automate the date range.

Thanks in advance.

  • 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-16T22:29:53+00:00Added an answer on June 16, 2026 at 10:29 pm

    Based on what you’ve described, I believe you can accomplish what you want by using a generate rows step to inject rows into the stream containing the dates you want, then generate the needed queries for each date row in the stream to get all the rows you want from the source tables.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an SQL query that looks like this: SELECT DISTINCT UserId, PoliticianId FROM
I have this query: select distinct pdi.height, pdi.width, pj.jobnum , (select count(barcode) from productiondoorinformation
I have a select query like this select count(distinct id)*100/totalcount as freq, count (distinct
I have this SQL Server query SELECT count(distinct [IP]) as GlobalUniqueIPcount, --RangeUniqueIPcount (SELECT count(distinct
I have something like this: SELECT id, fruit, pip FROM plant WHERE COUNT(*) =
i have a query that goes like this: $get_feed_amount = mysql_query( SELECT COUNT(*) as
I have the following query: Select Count(Distinct Case When Play.Uuid Like ('i~%') Then Tap.Player_Id
I have this MySql query : SELECT forum_categories.title, forum_messages.author, forum_messages.date AS last_message FROM forum_categories
I have a MySQL query like this: SELECT * FROM backstage WHERE backstage_id IN
I have a query like : SELECT DISTINCT g.thumb, h.hotel_name, h.id, COUNT(c.id) as total_comments,

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.