Home News Contact Us Forum About Us Demos Products F.A.Q.
Shopping Cart
You currently have 0 items in your cart.


Recent Events
  • 23/11/2024 Black Friday 2024

    BIG SALE, 30% discount for all our extensions. Use BF24 coupon code. Hurry up the discount is valid till 3 December.

  • 31/12/2023 New Year SALE

    We are glad to announce New Year SALE. 25% discount for all our extensions. Use NY24 coupon code. Hurry up the discount is valid till 7 January.


2Checkout.com, Inc. is an authorized retailer of goods and services provided by ARI Soft. 2CheckOut




Follow us on twitter



Welcome, Guest
Please Login or Register.    Lost Password?

1 column variable, 2nd column range of variables
(1 viewing) (1) Guest
Go to bottomPage: 12
TOPIC: 1 column variable, 2nd column range of variables
#49288
Re:1 column variable, 2nd column range of variables 10 Years, 6 Months ago Karma: 0
We are running a report to pull a day range from our database. The problem we are having at the beginning of the month isthat when I put the day range the report pulls all the dates with those numbers in them, where we just want theday. So if we pull days from 2-5 we get all the days with a 2,3,4,5 in them (including 21, 31 etc.) is there any way to not get days except for the single day range?

This is the query we are using:
SELECT
cb_francsicansister AS _, firstname AS Name,
cb_fdmonth AS Month, cb_fdday AS Day
FROM
joom_comprofiler
WHERE
cb_fdmonth = {$REQUEST:start|empty:''}
AND
({$REQUEST:start2|empty:''} = '' OR cb_fdday >= {$REQUEST:start2|empty:''})
AND
({$REQUEST:End2|empty:''} = '' OR cb_fdday <= {$REQUEST:End2|empty:''})
ORDER BY
cb_fdday ASC
The administrator has disabled public write access.
 
#49289
Re:1 column variable, 2nd column range of variables 10 Years, 6 Months ago Karma: 760
Hello,

What type of "cb_fdday" column? Is it integer?

Regards,
ARI Soft
The administrator has disabled public write access.
 
#49290
Re:1 column variable, 2nd column range of variables 10 Years, 6 Months ago Karma: 0
Looks like type:text
The administrator has disabled public write access.
 
#49291
Re:1 column variable, 2nd column range of variables 10 Years, 6 Months ago Karma: 760
Cast it to an integer type.

Regards,
ARI Soft
The administrator has disabled public write access.
 
#49307
Re:1 column variable, 2nd column range of variables 10 Years, 6 Months ago Karma: 0
Thanks! Appreciate the fast help! That fixed it!
The administrator has disabled public write access.
 
Go to topPage: 12