Viewing 15 posts - 76 through 90 (of 148 total)
Hi Jeffrey,
Actually, this is quite complex (in my mind anyway), because of the multiple records per customer needing to be on alternate lines. I'm assuming that you have data that...
October 28, 2010 at 5:24 am
Come to think of it, why use dynamic SQL at all? You can simply pass the variables to a standard select query with the use of a "like" predicate, without...
October 25, 2010 at 7:37 am
Hi Marcelo,
You might want to look up "Full Text Index" in BOL. That should be perfect for what you're trying to do.
Overview:
http://msdn.microsoft.com/en-us/library/ms142571.aspx
Searching multiple values:
http://msdn.microsoft.com/en-us/library/ms142583.aspx#Using_Boolean_Operators
Regards, Iain
October 22, 2010 at 3:22 am
Beat me to it John, lol 🙂
October 21, 2010 at 8:03 am
You might want to read this btw, it's very useful...
October 21, 2010 at 8:02 am
exec (@d) - note the brackets
October 21, 2010 at 7:50 am
Hi Bill,
One thing you might like to try is to pre-calculate the two correlated subqueries that you're using to generate criteria and hold the values in variables.
Also, a...
October 20, 2010 at 7:54 am
Actually, having re-read your original post, you're looking for the biggest percentage drop, not absolute value drop. To get that, use the following:
;with cte as (
select gpa.tradedatetime as start_tradedatetime
, gpb.tradedatetime...
October 20, 2010 at 4:39 am
Hi keymoo,
The query posted gives all drops over the period. You should read each result as:
Between the tradedatetime in column 6 and the tradedatetime in column 2, the value of...
October 20, 2010 at 4:24 am
Bill_CCAC (10/19/2010)
it's not as big as it may appear. it's the ten unions that make it look complicated.
lol 😀
October 19, 2010 at 10:58 am
:w00t:
Hi Bill,
Your problem here is that you're running the same queries over and over and over and over again to get your output. Given the complexity of the query and...
October 19, 2010 at 10:56 am
Had a quick look on msdn, Microsoft suggest not touching the tables at all:
Do not modify the metadata of management data warehouse tables unless you are adding a new collector...
October 19, 2010 at 10:33 am
I don't think so. Because SQL can't know the content of the two fields in your computed column until it computes them, the expression will always be non-deterministic, persisted or...
October 19, 2010 at 9:58 am
Hi,
This is probably due to your use of a computed column. From BOL:
The KEY INDEX must be a unique, single-key, non-nullable column
Your computed column is non-deterministic (even though it's persisted),...
October 19, 2010 at 9:19 am
Viewing 15 posts - 76 through 90 (of 148 total)