Viewing 15 posts - 211 through 225 (of 1,228 total)
cgreathouse (3/15/2014)
March 16, 2014 at 9:38 am
If you change your identity column to BIGINT, you won't have to deal with duplicate ID's. The point of an identity column is to uniquely identify each row, with the...
March 7, 2014 at 2:41 am
GilaMonster (3/4/2014)
ChrisM@home (3/4/2014)
1. How often do you change a clustered index on a production db?
I do fairly often, but then that's what I do mostly (database tuning on various badly...
March 4, 2014 at 12:59 pm
Jeff Moden (3/4/2014)
ChrisM@home (3/4/2014)
Jeff Moden (3/2/2014)
March 4, 2014 at 12:49 pm
Jeff Moden (3/2/2014)
March 4, 2014 at 11:11 am
GilaMonster (3/4/2014)
ChrisM@Work (2/28/2014)
March 4, 2014 at 11:08 am
eligiable (3/2/2014)
1st alteration will allow to store the Counter values in CounterDesc as an INT or BigINT depends on the records (I got 1 Million and increasing), so...
March 2, 2014 at 2:41 pm
-- always check an update as the equivalent SELECT before running it.
-- you may wish to replace the ORDER BY to, say, TerminalNo
SELECT
MerchantNo,
TerminalNo,
CounterNo = ROW_NUMBER() OVER(PARTITION BY MerchantNo ORDER...
March 2, 2014 at 6:19 am
Very easily:
SELECT
wea = ISNULL(s.wea,c.wea),
date_time_rt_group_status = MAX(s.date_time),
date_time_rt_group_coverage = MAX(c.date_time)
FROM rt_group_status s
FULL OUTER JOIN rt_group_coverage c
ON c.wea = s.wea
GROUP BY ISNULL(s.wea,c.wea)
March 2, 2014 at 3:08 am
Larry Niven "The Magic Goes Away" has plenty of scope for humour.
Stephen R. Donaldson "The Chronicles of Thomas Covenant" bewitched a whole generation of kids including me and deals with...
March 1, 2014 at 11:11 am
jasona.work (2/28/2014)
below86 (2/28/2014)
Wonder Woman!! Linda Carter is still hot.
:w00t::cool:
Another book I wouldn't mind seeing made into a movie would be Fallen Angels by Niven / Pournelle / Barnes (I...
March 1, 2014 at 11:02 am
Byron.H (2/28/2014)
March 1, 2014 at 10:58 am
markradley (2/28/2014)
I recently discovered that has been a project of Morgan Freeman's for the last decade,...
March 1, 2014 at 10:53 am
Impossible to "give a query" as Lynn states. You will need to post table definitions with sample data scripts to get a query.
Try full outer joining the two tables on...
March 1, 2014 at 10:49 am
SELECT
wea = ISNULL(s.wea,c.wea),
date_time = MAX(ISNULL(s.date_time, c.date_time)),
TableSource = MAX(CASE WHEN s.wea IS NULL THEN 'rt_group_coverage' ELSE 'rt_group_status' END)
FROM rt_group_status s
FULL OUTER JOIN rt_group_coverage c
ON c.wea = s.wea
GROUP BY...
March 1, 2014 at 10:37 am
Viewing 15 posts - 211 through 225 (of 1,228 total)