Viewing 15 posts - 12,586 through 12,600 (of 15,381 total)
If the value you are trying to replace is exactly the same right now you could just use a replace.
update @Table set FileFolder = REPLACE(FileFolder, 'D:\fsaATLAS\YourUniversityName\', 'E:\fsaATLAS\BostonUniversity\')
The version ColdCoffee posted...
March 30, 2012 at 1:53 pm
njdevils39 (3/30/2012)
Sean Lange (3/30/2012)
The query I provided should be a good starting point. Show me what you have tried.
One problem with your query is that its giving me:
Msg 208, Level...
March 30, 2012 at 10:47 am
The query I provided should be a good starting point. Show me what you have tried.
March 30, 2012 at 10:18 am
Well you have been handed 99% of this. Why don't give it a try to go the last 10 feet? Pretty sure you can the columns you want. It seems...
March 30, 2012 at 10:08 am
This will give me a result which looks like this, but the data in the last 3 columns is wrong:
What does that mean? How about if you post what you...
March 30, 2012 at 9:53 am
Like this?
select * from
(
SELECT
ROW_NUMBER() over(partition by e.EMP_ID order by x.r.value('@date_changed','DATETIME') desc) as RowNum,
e.EMP_ID,
e.EMP_NAME,
e.EMP_ORGANIZATION,
e.EMP_DEPARTMENT,
e.EMP_DT_TERMINATION,
...
March 30, 2012 at 9:39 am
Good points Matt!!! Tracking for me is pretty simple because it is all in house promotions. As a result we don't need to worry about collecting money from manufacturers.
March 30, 2012 at 9:12 am
You are grouping by string literals which will not work.
Try this.
select sh.SalesPersonID,YEAR(sh.OrderDate)as 'OrderYear', SUM(sd.OrderQty*sd.UnitPrice)as 'CostOfOrder'
from sales.SalesOrderHeader as sh
inner join Sales.SalesOrderDetail as sd
on sh.SalesOrderID = sd.SalesOrderID
group by sh.SalesPersonID
having sh.SalesPersonID is not...
March 30, 2012 at 8:50 am
OK we are finally getting somewhere...
I cleaned up your sample data so that other can actually use it. Your columns didn't quite match in the first set of queries and...
March 30, 2012 at 8:47 am
To allow for the multiple discounts/coupons you might need to have an OrderDetailCouponDiscount and OrderDetailCouponSKU tables or something along those lines so you know which coupon(s) were applied to the...
March 30, 2012 at 8:39 am
It will only update the changes to the foreign key value. If you want to track all changes to the table you are looking at a trigger, or possibly CDC.
March 30, 2012 at 8:31 am
I just did an online coupon project not long ago and what Eugene described is very similar to what I did.
The main difference for me was I created a...
March 30, 2012 at 8:29 am
dwain.c (3/29/2012)
I just wanted to clarify because it sounds like dwain.c might be a little confused at this point.
Actually after ColdCoffee's prior post, I was no longer confused. I...
March 29, 2012 at 8:09 pm
Of course your join also has nothing to actually join tableA and tableB. :w00t:
Here is an example of what is happening.
declare @variable varchar(20) = 'col1 desc'
create table #tableA
(
SomeValue varchar(10)
)
create table...
March 29, 2012 at 2:08 pm
Viewing 15 posts - 12,586 through 12,600 (of 15,381 total)