Viewing 15 posts - 1,336 through 1,350 (of 1,438 total)
adam (5/19/2008)
I don't know too much about variables.
set @zip = (select zipcode from DEMOG) does not work because there is more than one result.
How would I go about updating...
May 19, 2008 at 9:19 am
You can use the STUFF command
declare @zip varchar(10)
set @zip= '477131230'
select @zip,stuff(@zip,6,0,'-')
May 19, 2008 at 9:07 am
See if this helps - the convoluted xquery below gets the name of the previous element
Note that if you are using SQL Server 2005, you may find it easier to...
May 19, 2008 at 8:50 am
Carl Federl (5/13/2008)
May 13, 2008 at 11:58 pm
Something like this?
select s.Person,
s.Club,
a.Address,
s.ClubFromDate,s.ClubToDate,
...
May 13, 2008 at 10:21 am
Try this
order by case when some_column_name='some particular value' then 0 else 1 end, some_column_name
May 8, 2008 at 8:14 am
Jeff Marcus (5/7/2008)
May 7, 2008 at 9:04 am
select object_name(@@procid)
April 10, 2008 at 11:00 pm
Try this
with cte as (
select GroupColumnA,
GroupColumnB,
GroupColumnC,
DetailColumnA,
...
April 10, 2008 at 7:57 am
A couple of other possibilities
select c.contact_ref,
...
April 2, 2008 at 8:22 am
Are you running SQL Server 2005?
April 1, 2008 at 8:35 am
Try your query as this instead
select sum(case when new_buildingstatusname = 'abated' then 1 else 0 end) as abated,
sum(case when new_buildingstatusname = 'compliance'...
April 1, 2008 at 8:29 am
SELECT p.ProductID,
p.ProductDescription,
STUFF((SELECT ','+c.Colour AS "data()"
FROM Colour c
...
April 1, 2008 at 6:07 am
Something like this instead?
Diff = coalesce(abs(ea.lev1-b.firstline),ea.lev1,b.firstline,0)
March 31, 2008 at 11:47 am
Try this
SELECT s1.Filename,
s1.range_start,
MIN(t1.range_End) AS range_End
FROM MyTable s1
INNER JOIN MyTable t1 ON s1.Filename=t1.Filename
...
March 27, 2008 at 12:31 pm
Viewing 15 posts - 1,336 through 1,350 (of 1,438 total)