Viewing 15 posts - 1,276 through 1,290 (of 1,923 total)
Try this:
--update table
--set ecode = NULL
select * from table
where
patindex('%[^0-9]%', @Str) > 0
or
...
August 7, 2010 at 6:49 am
Try this:
;with cte as
(
select row_number() over ( partition by site_key, p_key order by SiteVR_key desc ) RN ,*
from #t1
)
select * from cte where rn =...
August 5, 2010 at 1:48 pm
Andrew , are u trying to find if your SQL Server Version is 2005 or 2008 ? or rather which version of SQL Server?
August 5, 2010 at 1:30 pm
Jaime , how many databases do u have in your system??
August 5, 2010 at 11:01 am
WILLIAM MITCHELL (8/4/2010)
August 4, 2010 at 7:33 am
WayneS (8/3/2010)
ColdCoffee (8/3/2010)
WayneS (8/3/2010)
ColdCoffee (8/2/2010)
Also i remember a...
August 3, 2010 at 9:31 pm
WayneS (8/3/2010)
ColdCoffee (8/2/2010)
Also i remember a thread where...
August 3, 2010 at 8:27 pm
WayneS (8/2/2010)
ColdCoffee (8/2/2010)
Be careful not all weeks of all locales start on Monday..
So, you just need to get @@datefirst, and adjust accordingly. Something like:
declare @DateFirst int
set @DateFirst = @@datefirst
SET DATEFIRST...
August 2, 2010 at 10:31 pm
jvanderberg (8/2/2010)
dateadd(wk, datediff(wk, 0, @ThisDate), 0)This will convert a date into the first Monday of the week that contains it. Group on this date.
Check out Lynn Pettis' wonderful one-stop-shop...
August 2, 2010 at 8:43 pm
Wayne, awesome job in that explanation , mate! Thanks.. Hope the OP now and the other poster got what the code exactly does.
Also i remember a thread where RBarryYoung takes...
August 2, 2010 at 8:35 pm
Going through you request, i found that Table Partitioning might do the trick for you.. Me, in my sytem, implemented this Partition for Archive data; which is maintaining only the...
August 2, 2010 at 7:04 am
You cant do that ways... You will have to insert the matching values into a temp table and then join them both.. I have another code as well to accomplish...
August 2, 2010 at 2:45 am
Will this help you, sire?
WITH CTE AS
(
SELECT Cust.ID ,Cust.CustomerName , Cust.OrderDate , Items.ProductName , Items.Quantity
FROM TestCustomerOrders Cust
JOIN TestCustomerOrderItems Items
ON Cust.ID = Items.TestCustomerOrdersID
)
SELECT p1.id ,CustomerName...
July 30, 2010 at 8:13 am
Are there any flaws on the data provided, sir? whats the relation between [TestCustomerOrderItems] and [TestCustomerOrders] ??
Is [TestCustomerOrders].[ID] = [TestCustomerOrderItems] .[TestCustomerOrdersID] ??
July 30, 2010 at 8:07 am
Arun Jebakumar (7/30/2010)
well, I would take it as there is no other way possible :hehe:
Cool man :cool:, i wondered if u would take that lightly! Well, nicee... 😉
July 30, 2010 at 7:52 am
Viewing 15 posts - 1,276 through 1,290 (of 1,923 total)