Viewing 15 posts - 76 through 90 (of 121 total)
S_Kumar_S (6/19/2012)
Here is my table and sample data:
create table tab1(id int,oldId int, InsertedOn datetime)
insert into tab1 values (99,NULL,getdate()-7)
insert into tab1 values (17,14,getdate()-9)
insert into tab1 values (14,12,getdate()-14)
insert into tab1 values (12,null,getdate()-15)
Now...
June 19, 2012 at 6:36 am
snigdhandream (6/19/2012)
June 19, 2012 at 6:30 am
I would think making use of the DATEPART function with week to get the range of dates for each week would be trivial. You would need to know or...
June 19, 2012 at 6:21 am
mattech06 (6/8/2012)
is there a general sql query section in these forums?? Wouldn't say I'm a newbie but wouldn't say I'm that great at sql either...anyhoo 🙂
I have this query
SELECT dbSchCnt...
June 8, 2012 at 12:46 pm
LOL.. MySQL and replication. /Shudder.
June 8, 2012 at 12:28 pm
michael vessey (6/8/2012)
If this was a geography forum, you would be the flat earth kid:w00t:
Since you don't know anything about RDBMS, then get a copy of the simplest...
June 8, 2012 at 11:52 am
Oracle does not have a TOP clause, but they finagle it with a rownumber method. Attunity is the best way to go.
June 4, 2012 at 6:15 am
It would be best to have one table with name and email, foreign keyed to another table that had the values as rows for each name and email. This...
May 31, 2012 at 1:13 pm
David.Poole (5/31/2012)
The problem with...
May 31, 2012 at 9:19 am
I use the hint liberally in a data warehouse environment used for reporting. Using it bypasses most of the locking checks and most importantly doesnt escalate locks even from...
May 31, 2012 at 9:09 am
Besides the WTF'ery about the ORDER BY... the lack of indices is more troublesome.
A clustered index should really be considered mandatory, and then supporting indexes as necessary by the needs...
May 23, 2012 at 12:32 pm
richardmgreen1 (5/23/2012)
set transaction isolation level read uncommitted
as the first line of your query. I've noticed it helps to...
May 23, 2012 at 12:21 pm
Examining the query plans shows the same result. That was the big hint when I tested this out a few years ago.
When in doubt, check the plan!
May 21, 2012 at 7:33 am
GilaMonster (5/15/2012)
No, there will be no effect from having procedures in DB1 vs DB2 on the same server.
Yup, on same server, no issue.
May 15, 2012 at 12:55 pm
There is a LOT of confusion about primary keys and clustered indexes.
Primary keys are the minimum number of columns to identify a unique row. If you are...
May 15, 2012 at 7:35 am
Viewing 15 posts - 76 through 90 (of 121 total)