Viewing 15 posts - 241 through 255 (of 476 total)
Koen Verbeeck (10/24/2013)
I spotted at least 3 correct answers 😀
:-D, my usual method is look at the wall;-)
October 24, 2013 at 1:23 pm
wolfkillj (10/24/2013)
Greg Edwards-268690 (10/24/2013)
Brandie Tarvin (10/24/2013)
Speaking of maps and geospatial data, which is a better type of data to use? Raster or Vector?
Reading this I would say vector.
Good listing of...
October 24, 2013 at 1:16 pm
Greg Edwards-268690 (10/23/2013)
wolfkillj (10/23/2013)
Greg Edwards-268690 (10/23/2013)
Koen Verbeeck (10/23/2013)
wolfkillj (10/23/2013)
October 24, 2013 at 12:49 am
Luis Cazares (10/22/2013)
October 22, 2013 at 3:36 pm
Hi
I put quotes around your dates, otherwise the dates are messed up.
I also noticed an issue with the query I provided and have updated it so that it now only...
October 22, 2013 at 1:52 pm
Hi
I'm not sure if this is the logic you want, but this might help you get started. Unfortunately your insert statements need the dates fixed and I was unable...
October 22, 2013 at 12:39 pm
Jeff Moden (10/20/2013)
mickyT (10/20/2013)
The 'no reverse' is an interesting requirement.
I believe what we have here is homework about how to use WHILE loops and the instructor probably never heard of...
October 20, 2013 at 5:55 pm
The 'no reverse' is an interesting requirement. Here's my attempt at it
with stringList as (
SELECT ROW_NUMBER() OVER (ORDER BY (SELECT NULL)) ID, String,
REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(String,' ',''),'.',''),',',''),'''',''),'-','') Compact --More replaces are likely
FROM...
October 20, 2013 at 2:11 pm
Bill Talada (10/18/2013)
October 18, 2013 at 2:14 pm
Hi
This should do the trick for you
with cte as (
select PhoneNum, PhoneType, PhoneLocation, FileDate
,ROW_NUMBER() OVER (PARTITION BY PhoneNum ORDER BY PhoneType, PhoneLocation, FileDate) -
ROW_NUMBER() OVER (PARTITION BY PhoneNum...
October 17, 2013 at 12:54 pm
Since you inputs are char(20) the fastest (but least flexible) option would be something like
select id, somevalue, positions =
stuff(
case substring(SomeValue,1,1) when 'X' then ',1' else '' end +
case substring(SomeValue,2,1) when...
October 15, 2013 at 2:29 pm
Hi
This should do what you want. There is likely to be other better ways though
with sampledata as (
SELECT *
FROM (VALUES
(1,' X')
,(2,'...
October 15, 2013 at 1:26 pm
No problem ... glad to help
October 10, 2013 at 3:15 pm
On the FULL OUTER join query, a CASE statement would do it.
SELECT fs.FirstItem, ss.SecondItem,
CASE WHEN fs.FirstItem = ss.SecondItem THEN 1
WHEN fs.FirstItem...
October 10, 2013 at 2:52 pm
Hi
Here's another option
select case when u = 1 then dateadd(dd,1,unitDate) else unitDate end unitDate, unitID,
case when u = 1 then 'Unit no longer available' else 'Newly available unit' end
from (
select...
October 10, 2013 at 12:51 pm
Viewing 15 posts - 241 through 255 (of 476 total)