Viewing 15 posts - 2,626 through 2,640 (of 11,677 total)
ashalatha.cse76 (6/17/2014)
in where class ur comparing the ids in the table but where ur getting the association id
In the
SELECT values
FROM somewhere
part.
You actually have to fill in something yourself.
The code...
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
June 17, 2014 at 1:47 am
One way you could tackle this is to concatenate all the columnB values into one string per colA:
a 1,3,5
b 1,2
c 1,3,5
d 2
Then you take a DISTINCT over colB and split...
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
June 17, 2014 at 1:36 am
ashalatha.cse76 (6/17/2014)
what is mycatId which u have i didnt get that
It's just a placeholder I made up.
You have to substitute it with your own values/columns/variables...
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
June 17, 2014 at 1:32 am
The following expression works:
=iif(Fields!ColumnB.Value = "" Or IsNothing(Fields!ColumnB.Value),"Bold","Normal")
I used the following data set:
SELECT 'Test' AS ColumnA, 'Not Empty' As ColumnB
UNION ALL
SELECT 'Test2',NULL;
In the second statement, I also used an empty...
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
June 17, 2014 at 1:30 am
Does the stored procedure itself run successfully on MySQL?
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
June 17, 2014 at 1:18 am
You can add the EXISTS statement to the WHERE clause of the INSERT statement.
A mock-up:
INSERT INTO order_master
SELECT values
FROM somewhere
WHERE EXISTS (SELECT 1 FROM category-subcategory-association WHERE cat_id = myCatID and sub_cat_id...
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
June 17, 2014 at 1:17 am
mickyT (6/17/2014)
Koen Verbeeck (6/17/2014)
mickyT (6/16/2014)
One to make you smile if you have 2012:-)...
Msg 208, Level 16, State 1, Line 3
Invalid object name 'dbo.DelimitedSplit8K'.
Sorry, this function is from this article[/url] by...
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
June 17, 2014 at 12:29 am
Grant Fritchey (6/16/2014)
Koen Verbeeck (6/16/2014)
Sean Lange (6/16/2014)
Koen Verbeeck (6/16/2014)
Evil Kraig F (6/16/2014)
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
June 17, 2014 at 12:21 am
Jeff Moden (6/16/2014)
ykonline (6/13/2014)
As per requirement we are not supposed to use UDF
I suspect the people that made that requirement don't know that UDFs have 3 forms, one of which...
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
June 17, 2014 at 12:18 am
mickyT (6/16/2014)
One to make you smile if you have 2012:-)...
Msg 208, Level 16, State 1, Line 3
Invalid object name 'dbo.DelimitedSplit8K'.
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
June 17, 2014 at 12:10 am
Shadab Shah (6/16/2014)
And where can i find...
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
June 17, 2014 at 12:06 am
Easy one (as I recently read this blogpost: Change data through CTE’s[/url]). Thanks for the question!
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
June 17, 2014 at 12:00 am
Sean Lange (6/16/2014)
Koen Verbeeck (6/16/2014)
Evil Kraig F (6/16/2014)
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
June 16, 2014 at 1:23 pm
waseemshaikh345 (6/16/2014)
I am using SQL server 2008R2
OK, so TSQL windowing functions are out of the picture unfortunately.
Although still perfectly possible in TSQL, you can calculate a YTD in SSRS itself:
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
June 16, 2014 at 1:21 pm
Evil Kraig F (6/16/2014)
Need an answer? No, you need a question
My blog at https://sqlkover.com.
MCSE Business Intelligence - Microsoft Data Platform MVP
June 16, 2014 at 12:54 pm
Viewing 15 posts - 2,626 through 2,640 (of 11,677 total)