Click here to Skip to main content
15,900,378 members
Home / Discussions / Database
   

Database

 
QuestionBFILE, BLOB?? [modified] Pin
Muammar©4-Jul-09 7:56
Muammar©4-Jul-09 7:56 
AnswerRe: BFILE, BLOB?? Pin
Niladri_Biswas4-Jul-09 18:00
Niladri_Biswas4-Jul-09 18:00 
GeneralRe: BFILE, BLOB?? Pin
Muammar©5-Jul-09 0:40
Muammar©5-Jul-09 0:40 
AnswerRe: BFILE, BLOB?? Pin
ScottM16-Jul-09 8:46
ScottM16-Jul-09 8:46 
GeneralRe: BFILE, BLOB?? Pin
Muammar©6-Jul-09 10:31
Muammar©6-Jul-09 10:31 
QuestionTop N Per StockCode Pin
Elizma4-Jul-09 3:27
Elizma4-Jul-09 3:27 
AnswerRe: Top N Per StockCode Pin
Niladri_Biswas4-Jul-09 3:43
Niladri_Biswas4-Jul-09 3:43 
GeneralRe: Top N Per StockCode Pin
Elizma5-Jul-09 6:45
Elizma5-Jul-09 6:45 
Hi
Sorry. Thanx for your supply, maybe I didn't ask the question properly. I now the plain top 5 query. My problem is:

I have a master StockCode table that will contain unique StockCodes and their information.

I also have a Details Table that is linked to the Master StockCode Table. Each Stock Code in the Master might have 20+ rows in the Detail table. I want to specify the Top N PER StockCode.

E.g. If we use only TOP 2

StockCode1 - DetailDataRow1
DetailDataRow2
StockCode2 - DetailDataRow1
DetailDataRow2

Not maybe in this format, but I still need to get the TOP 2 rows per StockCode and not the First Top 2 Rows like what the normal solution that you suggested would do.

Hope this is a bit more clear.

Thanx for trying to help.

Elizma
AnswerRe: Top N Per StockCode Pin
Isaac Gordon5-Jul-09 22:01
Isaac Gordon5-Jul-09 22:01 
GeneralRe: Top N Per StockCode Pin
Elizma5-Jul-09 22:23
Elizma5-Jul-09 22:23 
GeneralRe: Top N Per StockCode Pin
Enver Maroshi5-Jul-09 23:22
Enver Maroshi5-Jul-09 23:22 
GeneralRe: Top N Per StockCode Pin
Elizma6-Jul-09 1:42
Elizma6-Jul-09 1:42 
AnswerRe: Top N Per StockCode Pin
Isaac Gordon5-Jul-09 23:59
Isaac Gordon5-Jul-09 23:59 
GeneralRe: Top N Per StockCode Pin
Elizma6-Jul-09 1:38
Elizma6-Jul-09 1:38 
QuestionTransactional Replication Linked Sever error Pin
Abdul Rahman Hamidy3-Jul-09 18:24
Abdul Rahman Hamidy3-Jul-09 18:24 
AnswerRe: Transactional Replication Linked Sever error Pin
Niladri_Biswas4-Jul-09 3:51
Niladri_Biswas4-Jul-09 3:51 
AnswerRe: Transactional Replication Linked Sever error Pin
Jerry Hammond4-Jul-09 5:00
Jerry Hammond4-Jul-09 5:00 
QuestionHow do you increment a temporary table? Pin
DFlat4Now3-Jul-09 8:07
DFlat4Now3-Jul-09 8:07 
AnswerRe: How do you increment a temporary table? Pin
Niladri_Biswas4-Jul-09 3:37
Niladri_Biswas4-Jul-09 3:37 
GeneralRe: How do you increment a temporary table? Pin
DFlat4Now4-Jul-09 5:55
DFlat4Now4-Jul-09 5:55 
AnswerRe: How do you increment a temporary table? Pin
Mycroft Holmes4-Jul-09 23:38
professionalMycroft Holmes4-Jul-09 23:38 
QuestionOnline Database and Forum, where to start? Beginner* Pin
rbwest863-Jul-09 5:44
rbwest863-Jul-09 5:44 
AnswerRe: Online Database and Forum, where to start? Beginner* Pin
David Mujica4-Jul-09 2:31
David Mujica4-Jul-09 2:31 
QuestionProblem with SQL Pin
Sider893-Jul-09 4:27
Sider893-Jul-09 4:27 
AnswerRe: Problem with SQL Pin
Blue_Boy3-Jul-09 4:55
Blue_Boy3-Jul-09 4:55 

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.