last day (15 days later) » 

06:01
1
A: query to retrieve correct properties in the range

Pankaj KPlease try this query:- SELECT * FROM properties WHERE (raw_min between 2200000 AND 2700000) OR (raw_max between between 2200000 AND 2700000) OR (raw_min <= 2200000 && raw_max >= 2700000) Please check I have updated the query.

Thanks! It appears to be correct but don't know why its returning null for me!
I forgot to mention condition 6, most of my properties falls in that range
I have updated the query. Plz check.
@now-r-never. Did this work for u?
you see any wrong with the below query, its returning null... SELECT * FROM properties WHERE ((raw_min between '2222222.22222' and '2716049.38272') or (raw_max between '2222222.22222' and '2716049.38272') or (raw_max <= '2222222.22222' and raw_max >= '2716049.38272')) AND LOCATION LIKE '%madras%'
What is the datatype of raw_min & raw_max? Plz remove the single quotes & then run the sql.
@PankajK hi
false or false or true = false for my 6th condition
06:22
Hi. Ok can u plz go by step wise
Only execute the mention query. SELECT * FROM properties WHERE ((raw_min between '2222222.22222' and '2716049.38272') or (raw_max between '2222222.22222' and '2716049.38272') or (raw_max <= '2222222.22222' and raw_max >= '2716049.38272'))
Till this did u get ur expected output?
u r correct
but let me check db again
for location
Ya.. :)
but in my website i see a property Old Madras Road 19.32Lac - 73.54Lac
which is not fetched by this query
06:28
Can u plz run your sql query only for location.
SELECT * FROM properties WHERE LOCATION LIKE '%madras%'
that property has come
total 10properties in madras
Ok
Can u plz paste ur query
SELECT *
FROM properties
WHERE LOCATION LIKE '%madras%'
LIMIT 0 , 30
Not this. Whole query with all conditions...
SELECT * FROM properties WHERE ((raw_min between '2222222.22222' and '2716049.38272') or (raw_max between '2222222.22222' and '2716049.38272') or (raw_max <= '2222222.22222' and raw_max >= '2716049.38272')) AND LOCATION LIKE '%madras%'
06:49
Plz give me sometime. I will back soon.
sure!
but if i execute this its returning 7 results
SELECT *
FROM properties
WHERE (
(
raw_min
BETWEEN '2222222.22222'
AND '9716049.38272'
)
OR (
raw_max
BETWEEN '2222222.22222'
AND '9716049.38272'
)
OR (
raw_max <= '2222222.22222'
AND raw_max >= '2716049.38272'
)
)
AND LOCATION LIKE '%madras%'
LIMIT 0 , 30
19L to 75L is not in SELECT * FROM properties WHERE ((raw_max <= '2222222.22222') and (raw_max >= '2716049.38272')) AND LOCATION LIKE '%madras%'
dont know how and why
07:36
Thanks for ur patience...
Did u noticed that plz replaced raw_max to raw_min
SELECT * FROM properties WHERE ((raw_min <= '2222222.22222') and (raw_max >= '2716049.38272')) AND LOCATION LIKE '%madras%'
Now u get ur result...
Did u get ur expected result?
i got
need to check with client, am not patient enough :P
once it is accepted, i'll accept ur answer
Yeah... Thanks bro...
whr do u work?
07:50
In Nashik, Maharashtra
banagalore
Work as developer?
Which langauage?
good to meet u, see u
telugu
07:51
Same to u...
:)
but understand hindi, tamil, kannada
Which technology?
and also bad english
php
Same here...
ur email?
we have vacancy for html designer & graphic designer
accept my chat req in gmail
hangouts
yeah...
In the evening when I reach home I will accept ur request.
How many years of experience do u have in development
4yrs nearly
Good...:)
2 years
07:56
Did u show this to ur client?
now a days am not talking directly to client
just dropped mail to account manager
Okk.
08:11
Nice to meet u

  last day (15 days later) »