Groups | Blog | Home
all groups > sql server new users > june 2005 >

sql server new users : Group Question (I think)


Dvanderm
6/21/2005 4:14:19 PM
strSQL = "SELECT SA, ProblemType, Count(ProblemType) as ProbType FROM
Problems WHERE RptDate >= " & sIn(bDate) & " AND RptDate <= " & sIn(eDate) &
" GROUP BY SA, ProblemType ORDER BY SA"

Results Look like this - no space in between different SAs.

Steve Monitor 1
Steve Printer 1
John Montiro 2
John Printer 5
Lisa Monitor 4
Lisa Monitor 3

I would like to see, can I do this?

Steve Monitor 1
Steve Printer 1
(blank line)
John Montiro 2
John Printer 5
(blank line)
Lisa Monitor 4
Lisa Monitor 3

Dvanderm
6/22/2005 12:00:00 AM
Got you. I am trying to do this via ASP. I think I am set. Thanks for the
explanation


[quoted text, click to view]

David Portas
6/22/2005 8:52:03 AM
This is just a matter of formatting for dsiplay or printing. Any report
writing tool will put in banding and breaks for you so there's no need to do
it in the database. In N-Tier architectures the idea is to separate the data
retrieval and data presentation/UI functionality into different tiers.
Presentation belongs client-side.

--
David Portas
SQL Server MVP
--



[quoted text, click to view]
AddThis Social Bookmark Button