Click here to Skip to main content
15,891,033 members
Home / Discussions / Database
   

Database

 
GeneralRe: How to get the list of Names which starts with numerics. Pin
K V Sekhar7-Dec-08 22:46
K V Sekhar7-Dec-08 22:46 
AnswerRe: How to get the list of Names which starts with numerics. Pin
K V Sekhar18-Dec-08 18:56
K V Sekhar18-Dec-08 18:56 
Questionsybase version 6 Pin
postonoh5-Dec-08 7:46
postonoh5-Dec-08 7:46 
AnswerRe: sybase version 6 Pin
Mycroft Holmes5-Dec-08 14:48
professionalMycroft Holmes5-Dec-08 14:48 
QuestionUsing DataTable.Select in the slickest way possible Pin
jesarg5-Dec-08 6:55
jesarg5-Dec-08 6:55 
AnswerRe: Using DataTable.Select in the slickest way possible Pin
Wendelius5-Dec-08 7:16
mentorWendelius5-Dec-08 7:16 
QuestionUgly group by problem Pin
gantww5-Dec-08 5:40
gantww5-Dec-08 5:40 
AnswerRe: Ugly group by problem Pin
Ben Fair5-Dec-08 5:54
Ben Fair5-Dec-08 5:54 
If I understand your description correctly, I advise the following route. Remember that grouping is just condensing the data on a common element. I'd recommend putting the stored procedure results into a result set that can be manipulated (a temp table or table variable) but add an addition column for a 'group number'. You'll need to go over the table using the page break marks to assign the 'group numbers' to each row in the result. The way I think the groups numbers would be assigned is every row between the beginning of the result set and the first page break would be group number 1, every row between the first page break and the second would be group number 2, etc. Look at the ROW_NUMBER() function (if using SQL Server 2005) as you can use it with it's GROUP BY clause (which is separate from the normal query GROUP BY clause) to automatically generate the group numbers. If using SQL Server 7.0 or 2000, you may have to hand-craft the group number assignments. Either way, once the group numbers are assigned, you simply need to select from the result set and group by the group number column.

Keep It Simple Stupid! (KISS)

Questionretrieve from 3 table Pin
benjamin yap5-Dec-08 4:38
benjamin yap5-Dec-08 4:38 
AnswerRe: retrieve from 3 table Pin
Ben Fair5-Dec-08 5:38
Ben Fair5-Dec-08 5:38 
QuestionHow can I insert a record into a table in SQLCE? Pin
JUNEYT5-Dec-08 0:10
JUNEYT5-Dec-08 0:10 
AnswerRe: How can I insert a record into a table in SQLCE? Pin
Wendelius5-Dec-08 7:38
mentorWendelius5-Dec-08 7:38 
Questionsql server 2008 Filestream Pin
lambo4-Dec-08 21:19
lambo4-Dec-08 21:19 
AnswerRe: sql server 2008 Filestream Pin
Mycroft Holmes4-Dec-08 21:32
professionalMycroft Holmes4-Dec-08 21:32 
GeneralRe: sql server 2008 Filestream Pin
Paddy Boyd5-Dec-08 0:42
Paddy Boyd5-Dec-08 0:42 
QuestionVLDB optimization Pin
sujithkumarsl4-Dec-08 20:00
sujithkumarsl4-Dec-08 20:00 
AnswerRe: VLDB optimization Pin
Ashfield4-Dec-08 21:02
Ashfield4-Dec-08 21:02 
GeneralRe: VLDB optimization Pin
sujithkumarsl4-Dec-08 21:05
sujithkumarsl4-Dec-08 21:05 
GeneralRe: VLDB optimization Pin
Ashfield5-Dec-08 1:14
Ashfield5-Dec-08 1:14 
AnswerRe: VLDB optimization Pin
Mycroft Holmes4-Dec-08 21:39
professionalMycroft Holmes4-Dec-08 21:39 
AnswerRe: VLDB optimization Pin
Wendelius5-Dec-08 7:31
mentorWendelius5-Dec-08 7:31 
GeneralRe: VLDB optimization Pin
sujithkumarsl8-Dec-08 17:29
sujithkumarsl8-Dec-08 17:29 
GeneralRe: VLDB optimization Pin
Wendelius9-Dec-08 7:40
mentorWendelius9-Dec-08 7:40 
GeneralRe: VLDB optimization Pin
sujithkumarsl9-Dec-08 16:51
sujithkumarsl9-Dec-08 16:51 
GeneralRe: VLDB optimization Pin
Wendelius10-Dec-08 4:41
mentorWendelius10-Dec-08 4:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.