Viewing 15 posts - 1 through 15 (of 15 total)
So of those products in those stores, how would i see my sales broken down by store by product if its not coming from the cube...write group by SQL statements?...
September 9, 2011 at 2:56 pm
LightVader (4/21/2011)
April 21, 2011 at 7:18 am
thanks bb...someone else had posted this which works quite well
; with
combined_table
as
(
selectCustNum, Event_Date, plan_code, type,
rowno = dense_rank() over (partition by CustNum, Event_Date order by plan_code)
from
(
select CustNum, Event_Date, plan_code = Before_plan,...
June 25, 2010 at 1:44 pm
Sorry guys!
Here goes:
create table #table2
(
CustomerNum int,
...
June 7, 2010 at 8:19 am
berry, no your assumption is wrong
table1 doesnt have 3 fixed offer names..it can have N offers..
my source table is table1
my dest table is table2
its complicated because i only start with...
June 3, 2010 at 2:05 pm
Thanks Paul but if you look at what i am trying to do here, Pivoting is the easy part. How to relate the records is what i am having difficulty...
June 3, 2010 at 1:03 pm
I agree with a lot of users here that Powershell and SMO are much much better choices.
Mike.Renwick..i will look into your Powershell code...its a great start.
Jon Mcghee...is it possible...
May 6, 2010 at 7:35 am
Hi All,
Thanks for the replies however the 2 solutions above do not work. The Row_Number solution was giving me incorrect output and the second solution just by looking at it...
May 3, 2010 at 1:05 pm
oh that was easy 🙂
April 20, 2010 at 2:05 pm
Thanks for the tip!
Btw...the code is formatted...i am still new around here...i guess i need to learn how to enclose code so its formatted in here 🙂
SELECT col1 FROM tbl1
--test
April 20, 2010 at 2:05 pm
Its nothing complicated, simply a previous developer left code which i am converting to a stored proc. it has 2 parts and not all fields can be present during the...
April 19, 2010 at 6:59 pm
Jeff...this is pretty close...however this keeps the lowest row ID of any duplicates found and deletes the higher row IDs..i need it the other way around..
i tried row ID desc...
April 12, 2010 at 10:43 am
Hmmm Jeff..thanks for the input...
i am surprised by the results with your code...i am wondering why...because it works perfectly with the same data i posted above
April 10, 2010 at 7:52 pm
sorry for the late reply guys
berry...this worked perfect..i cant believe how simple this is...
if anyone is interested, here's the sample script
create table sample_7day (call_id int identity(1,1), UserID int, Post_date datetime)
insert...
April 10, 2010 at 11:06 am
just looking at your error, its picking up a space which will NOT convert to an int type.
April 8, 2010 at 6:16 pm
Viewing 15 posts - 1 through 15 (of 15 total)