Questions tagged [between]

The SQL BETWEEN Operator selects values within a range. The values can be numbers, text, or dates. Is possible to select values outside a range using NOT BETWEEN. The BETWEEN operator can produce different result in different databases: In some databases excludes the test values, in some others include them and in some cases includes the first test value and excludes the last one.

1363 questions
-3
votes
3 answers

Regular expression for getting number between two words

I am trying to extract a number/word 84900 from the below string ,the keywords are HEIGHT & CM. String s ="I am with weight 600 KG AND HEIGHT 84900 CM"; Also : If I want to extract multiple words from a string what cane be done.Say for eg2 :ITEM…
V.R.Manivannan
  • 21
  • 2
  • 10
-3
votes
1 answer

vb.net months between two dates

I want to display all the dates between two dates with year. Eg: FromDate = 2012-01-01 ToDate=2013-05-01 Output should be : January 2012 February 2012 March 2012 April 2012 ... May 2013 Thanks for any valuable inputs.
MAF
  • 27
  • 9
-4
votes
3 answers

How to use the between operator in SQL Server?

In my SQL Server query, I have this to < GETDATE() or GETDATE() < from Is it possible to simplify this with a BETWEEN operator?
omega
  • 40,311
  • 81
  • 251
  • 474
-4
votes
2 answers

In between doesn't work with multiple AND's - MYSQL

SELECT price from items Where categoryId = 11724 AND price BETWEEN 10 AND 20 Result:  price 17.9918.9520.017.9918.95 Above query works fine but adding another clause doesn't show desired results SELECT price from items Where categoryId = 11724 …
RanaHaroon
  • 445
  • 6
  • 20
-4
votes
1 answer

Date based get that monthly report in php

Given Date is 2015-08-10 but i need to get the August month report.Do not use(BETWEEN 2015-08-01 and 2015-08-31).Please advise me. date qty 2015-08-10 10 2015-08-20 2 2015-08-21 12 2015-09-01 5
sarath jay
  • 21
  • 2
  • 7
-4
votes
3 answers

how to show months and years from two date in PHP

I have $date1 = '2014-09-01' and $date2 = '2015-02-01'. Can I get months and years from $date1 to $date2 like this: 2014-sep 2014-oct 2014-nov 2014-dec 2015-jan 2015-feb
Arif Hidayat
  • 67
  • 1
  • 9
-4
votes
1 answer

I need to control the vertical Spacing between DIVs?

This is my CSS, and yes it is in a table, which I assume is a big no no… You can see the examples at: http://jsfiddle.net/pb7808do/2/ } div#titlediv { left: 0px; background: #FFF; font - size: 52px; font - family:'Open Sans', sans -…
PhilP
  • 35
  • 6
-4
votes
1 answer

C# Choosing class by using a Checkbox state

public class Europe { uint Value1 = 0x12345; } public class UnitedStates { uint Value1 = 0x54321; } private uint Region(object Value) { if (EuropeCB.Checked) { return Europe.Value; } …
-5
votes
1 answer

Cassandra SELECT BETWEEN two dates

How can i convert below SQL query to CQL query? SELECT * FROM csv_report WHERE sensor_id=170268 AND create_day BETWEEN 20150401 AND 20150403; also i trying different BETWEEN query: SELECT * FROM csv_report WHERE sensor_id=170268 AND create_day >=…
M.javid
  • 6,387
  • 3
  • 41
  • 56
-5
votes
3 answers

Java: I can add as period to another period?

This program tells me which time a start date and an end, now I ask you whether you want to enter another period when you s (yes) adds the starting period, but this want to join with above, for example, I add the following: 16/08/1993 - 09/09/2014…
danielbmz
  • 31
  • 1
  • 1
  • 8
-5
votes
2 answers

php query between operator

$eredmeny = mysql_query("SELECT t_nev, sum(t_ertek) FROM `termek_mozgas` WHERE datum BETWEEN NOW() - INTERVAL 30 DAY AND NOW() AND muv_1 = 'Beszerzés' OR muv_1 = 'Göngyöleg vissza' OR muv_1 = 'Gyártásból bejövő' group…
-6
votes
2 answers

MYSQL get data BETWEEN AND condition OR condition

I am trying to fetch data as json between two id's which have userid either Get['id'] or user who follow Get['id'] from other Table. My URL is - http://localhost/aditya/m/login?id=1&&start=6 if(isset($_GET['start'])) { $query2 = "SELECT * FROM post…
Aditya Raj
  • 168
  • 3
  • 9
-6
votes
2 answers

Count how many numbers is between a range in a List with C#

I'm beginner C# programmer and I find myself a problem in a Windows Form Application that I'm working on Microsoft Visual C# 2010 Express. I have a button that opens a file dialog to select a specific Excel workbook and then retrieve the values of…
user3664117
  • 49
  • 2
  • 11
1 2 3
90
91