Viewing 15 posts - 10,381 through 10,395 (of 15,374 total)
vikingDBA (10/11/2012)
October 12, 2012 at 9:13 am
mamzy.rahman (10/12/2012)
i havent need help please not sure how to go about it never used sql in my life
But what have you tried? I have to agree this looks a...
October 12, 2012 at 8:29 am
This has to be one of the strangest processes I have ever seen. You have a table to record the rowcount from every table. Why? It will always be out...
October 12, 2012 at 8:24 am
Can you post what you want for desired output? Just create a temp table and hard code inserts into it. I can't understand your explanation very well and the data...
October 12, 2012 at 7:55 am
The Dixie Flatline (10/11/2012)
If I understand you, you want to have a default value to be returned whenever no value is specified.Select order_nbr, field1, field2, field3
from table
where order_nbr = isnull(@Ord_nbr,'xxxxxx')
That...
October 11, 2012 at 9:23 pm
I am guessing that you didn't read through the article I suggested and understand this code. You can't reference the cte by multiple statements after it is declared. You need...
October 11, 2012 at 9:21 pm
Cheryl McLaughlin-385812 (10/11/2012)
October 11, 2012 at 3:38 pm
where order_nbr = isnull(@Ord_nbr, 'xxxx') maybe????
October 11, 2012 at 3:18 pm
This is a running total problem. Jeff has a great article about it here. http://www.sqlservercentral.com/articles/T-SQL/68467/%5B/url%5D
If you can't figure out how to put that all together post back here. In order...
October 11, 2012 at 3:14 pm
Thanks for ddl and data. Makes this a lot easier.
Your data structures don't allow for anything like a join because there is nothing to tie a status to a phase....
October 11, 2012 at 3:00 pm
a4apple (10/11/2012)
Sean Lange (10/11/2012)
Please help me with the sql code.
All of them are Varchars (Status and Phase even though they look like Integers).
Please don't ask me to change my Datamodel.....
October 11, 2012 at 2:29 pm
Please help me with the sql code.
All of them are Varchars (Status and Phase even though they look like Integers).
Please don't ask me to change my Datamodel.. Thanks everyone in...
October 11, 2012 at 2:14 pm
sainatth.wagh (10/11/2012)
Can somebody sent me syntax for the mdx query for with a drillthrough option, and to find data for the specific month.
Let me know if somebody would provide any...
October 11, 2012 at 1:05 pm
A recursive cte can do what you want here. Something like this.
create table #Parts
(
Part varchar(10),
ExtPart varchar(10)
)
insert #Parts
select 'ABC', '123' union all
select 'DEF', '001' union all
select 'XYZ', '456' union all
select '123',...
October 11, 2012 at 12:26 pm
Adding a scalar function to the where is not going to make anything faster, in fact it will most likely make it slower.
Do you have an index on this...
October 11, 2012 at 12:13 pm
Viewing 15 posts - 10,381 through 10,395 (of 15,374 total)