Viewing 15 posts - 8,161 through 8,175 (of 15,381 total)
It is really hard to help with what you have posted. The code you posted is poorly formatted it looks like a big bowl of spaghetti. I took the liberty...
May 31, 2013 at 7:57 am
What is your primary key for customer? It seems like you should be passing in the CustomerID instead of the customer name. What happens when you have two customers with...
May 31, 2013 at 7:47 am
Eugene Elutin (5/31/2013)
Simple aggregate will do the same:
select Attribute, MIN(StateVal) AS StateVal
from #tblA
group by Attribute
/facepalm
I guess I got hung up on the OP using the order by and went the...
May 31, 2013 at 7:43 am
Grant provided an answer already on your post at ask.ssc.com.
http://ask.sqlservercentral.com/questions/103091/report-of-all-views.html
In your reply you indicated that you do not have any trace or extended events running. That means you basically have...
May 30, 2013 at 3:46 pm
kl25 (5/30/2013)
Thanks Sean. You're right. I never use the designer. Only type. It sounded like a snippet--didn't realize the designer did something like that. 🙂
hehe...
May 30, 2013 at 2:30 pm
kl25 (5/30/2013)
RedBirdOBX (5/30/2013)
May 30, 2013 at 2:14 pm
No problem. It is best to only post your question once. Otherwise people will find one or the other and your responses will be fragmented and difficult to follow.
May 30, 2013 at 2:07 pm
Lowell (5/30/2013)
GilaMonster (5/30/2013)
Lowell (5/30/2013)
The products of 21 is 7 and 3.[nitpick]
The factors of 21 are 7 and 3. The product of 7 and 3 is 21
[/nitpick]
it's a quote,...
May 30, 2013 at 2:05 pm
duplicate post. direct replies here.
http://www.sqlservercentral.com/Forums/Topic1458422-391-1.aspx
May 30, 2013 at 1:55 pm
duplicate post. direct replies here.
http://www.sqlservercentral.com/Forums/Topic1458422-391-1.aspx
May 30, 2013 at 1:55 pm
j-1064772 (5/30/2013)
Not clear yet as to why this was added to the language.
And yes, you are right about...
May 30, 2013 at 1:47 pm
j-1064772 (5/30/2013)
Sean Lange:Yes, both work. Since I inserted you cte solution after my own statements, I had to add a semi-colon before the "with GrandTotal as".
Thanks
Well actually a CTE requires...
May 30, 2013 at 1:39 pm
RedBirdOBX (5/30/2013)
May 30, 2013 at 1:37 pm
j-1064772 (5/30/2013)
Actually, the following SQL
[font="Courier New"]
SELECT #INV.InvNo, #INV.Currency, #INV.Amount AS GrandTotal, #PAY.Paid
FROM #INV LEFT OUTER JOIN #Pay ON #Pay.InvNo = #INV.InvNo
ORDER BY #INV.Currency, #INV.InvNo
[/font]
Produces the following results set: ...
May 30, 2013 at 1:23 pm
Viewing 15 posts - 8,161 through 8,175 (of 15,381 total)