Viewing 15 posts - 3,871 through 3,885 (of 10,144 total)
avdhut.k (12/20/2013)
Thanks cris!!!!Its working as per my requirement.
You're welcome - but do think about Jeff's point. In case you're wondering, there is a solution for an...
December 23, 2013 at 1:53 am
;WITH SequencedData AS (
SELECT *, rn = ROW_NUMBER() OVER(PARTITION BY state, region, level ORDER BY (SELECT NULL)) FROM #temp_f)
SELECT
state,
region,
username_1 = MAX(CASE WHEN level = 1 THEN username ELSE...
December 20, 2013 at 7:37 am
snomad (12/20/2013)
...Any clues gratefully accepted.
🙂
A sample data set for folks here to run queries against would be gratefully accepted too! If you're not sure how to do this, click on...
December 20, 2013 at 6:48 am
Can you set up the ddl for your base table please, as Sean suggested? This allows folks to work on your problem straight away. You do the easy bits, we...
December 20, 2013 at 5:05 am
;WITH MyAddresses (HouseNo) AS ( -- meagre sample data set
SELECT '2/4' UNION ALL
SELECT '2-4' UNION ALL
SELECT '3-1-92/4 hyd' UNION ALL
SELECT '3-1-99/7' UNION ALL
SELECT '3-1-900' UNION ALL
SELECT '3-4-' UNION ALL
SELECT...
December 20, 2013 at 4:22 am
shashianireddy (12/20/2013)
if house no like...
SELECT '3-4-53 . HYDERABAD' UNION ALL
SELECT '3-400-199/1.ASVV' UNION ALL
SELECT '3-49-vizag' UNION ALL
SELECT '3-53-22,nagar' UNION ALL
SELECT '4-5-1300.old colony' UNION ALL
SELECT '4-500-120' UNION ALL
SELECT '3-4-' UNION...
December 20, 2013 at 3:42 am
Hi Mark, this looks like a straightforward CROSSTAB query. Have a quick read of this article [/url]which will show you how to set up a few rows of sample data....
December 20, 2013 at 3:03 am
shashianireddy (12/20/2013)
Thanks for replay ......ur quarie is working ....... thank u sir
Not so fast! It won't work for all cases. I recommend you use the "stare and compare" method rigorously...
December 20, 2013 at 2:26 am
uzwa ul haque (12/19/2013)
December 19, 2013 at 6:39 am
Best for the business or best for the user?
December 19, 2013 at 2:08 am
bharat sethi (12/18/2013)
Please assist that "Order By" clause is necessary in this query and is there any wrong outcome if we do not use this Order by clause? Please share...
December 19, 2013 at 1:45 am
Here's an alternative query form which reduces the row count from the permanent table:
UPDATE t1 SET
test = RTRIM(x.xyz_test)
FROM #tmp_sp_abc t1
CROSS APPLY (
SELECT TOP 1 xyz_test
FROM t_h_bg_pc_it...
December 18, 2013 at 7:25 am
bharat sethi (12/18/2013)
First of all can't separate the OR. and tried this but, getting diff. in output of 5417 rows (may be due to some rows have values in both...
December 18, 2013 at 7:02 am
twin.devil (12/16/2013)
ChrisM@home (12/15/2013)
select quarie between houseno ..........
select only up to first '-' only
display order by like 1,2,3,4,5...............plz write quarie
December 18, 2013 at 2:06 am
mister.magoo (12/17/2013)
I have written an article (my first) on how to get help with SSRS reports.
It was inspired by Jeff's classic "Forum Etiquette: How to post data/code...
December 18, 2013 at 1:59 am
Viewing 15 posts - 3,871 through 3,885 (of 10,144 total)