Viewing 9 posts - 61 through 69 (of 69 total)
After thought, what can become difficult is that a query returns multiple records say for the diary entries or a Notes table. Then you would have to string all the...
June 21, 2005 at 10:06 am
With the multiple selects, why not select into a Temp Table for query 1 (#TempTable1), Temp Table for Query 2 (#TempTable2) each having a key field value that you would...
June 21, 2005 at 9:59 am
Came across this. Maybe it would help. You can select the "Grouping" Value and also change your ordering of the output.
SELECT CASE GROUPING(store_name)
WHEN 1 then '[State total]' ELSE store_name End...
June 16, 2005 at 3:51 pm
Thanks Remi. Help clarify for me. How is a view, which joins tables with a query, so much different than a sub-query?
How about a technique where I Joins simpler views together...
June 16, 2005 at 10:04 am
Sometimes on queries like this, I use a view to gather most of the fields I want in one place and then query that view. I can and often do...
June 16, 2005 at 8:36 am
Have you tried putting
cast((select CASE WHEN [SvLOB]='HP' And [SvSrcX]='M' THEN topamt1 ELSE 0 END)
into the group statement? Usually works for me because you are summing or...
June 2, 2005 at 12:21 pm
Sorry to not be of much help but I did fool around with it a bit. I do know the "order by" statement alters the output immensely. I also played...
May 6, 2005 at 8:07 am
I usually run the string through this function:
Public Function SQLStrClean(inString As String) As String
'*********************************************
'* This just does a simple charater replacement on SQL Text Statements
'* for insert and...
February 20, 2003 at 10:03 am
Viewing 9 posts - 61 through 69 (of 69 total)