Click here to Skip to main content
15,929,429 members
Home / Discussions / Database
   

Database

 
GeneralMDAC 2.7 May Contain A Regression... Pin
James R. Twine13-Sep-02 5:36
James R. Twine13-Sep-02 5:36 
GeneralOracle error Pin
Bill Dean12-Sep-02 4:16
Bill Dean12-Sep-02 4:16 
GeneralRe: Oracle error Pin
Mark Conger13-Sep-02 8:54
Mark Conger13-Sep-02 8:54 
GeneralSQLServer problem: fetching TEXT field using OLE DB Pin
taualex12-Sep-02 3:40
taualex12-Sep-02 3:40 
GeneralRe: SQLServer problem: fetching TEXT field using OLE DB Pin
James R. Twine13-Sep-02 5:39
James R. Twine13-Sep-02 5:39 
GeneralRe: SQLServer problem: fetching TEXT field using OLE DB Pin
taualex13-Sep-02 8:04
taualex13-Sep-02 8:04 
GeneralRe: SQLServer problem: fetching TEXT field using OLE DB Pin
James R. Twine13-Sep-02 9:02
James R. Twine13-Sep-02 9:02 
QuestionTRICKY - How to SELECT TOP X records when using UNION? Pin
Garth11-Sep-02 17:31
Garth11-Sep-02 17:31 
I have the following query:

(SELECT P_Title AS Title FROM tblProjects WHERE Status='True') UNION ALL (SELECT Title FROM tblProjectDocs WHERE Status='True') UNION ALL (SELECT Title FROM tblLinks WHERE Status='True') ORDER BY Title DESC

This returns roughly 26 or so records. I want to include only the top 6 or so records. Using SELECT TOP 3...etc does not work correctly - as for some reason, this means records are displayed in an odd order, and more than 6 records are returned in total.

I have tried mucking about with the position of brackets, doesn't seem to work. Elsewhere it is suggested that a sub-query might work (e.g. SELECT TOP 6 FROM (query with UNION) ORDER BY Field). This doesn't work either. Any ideas?


AnswerRe: TRICKY - How to SELECT TOP X records when using UNION? Pin
Rein Hillmann11-Sep-02 19:11
Rein Hillmann11-Sep-02 19:11 
AnswerRe: TRICKY - How to SELECT TOP X records when using UNION? Pin
Richard Deeming13-Sep-02 6:01
mveRichard Deeming13-Sep-02 6:01 
GeneralSQLDMO & DTS Pin
Paul Watson10-Sep-02 7:08
sitebuilderPaul Watson10-Sep-02 7:08 
GeneralRe: SQLDMO & DTS Pin
Nick Parker11-Sep-02 13:12
protectorNick Parker11-Sep-02 13:12 
Questionsp_OASetProperty limitations? Pin
Jeremy Falcon6-Sep-02 7:50
professionalJeremy Falcon6-Sep-02 7:50 
AnswerRe: sp_OASetProperty limitations? Pin
Jeremy Falcon6-Sep-02 9:33
professionalJeremy Falcon6-Sep-02 9:33 
AnswerRe: sp_OASetProperty limitations? Pin
Nick Parker11-Sep-02 8:40
protectorNick Parker11-Sep-02 8:40 
GeneralRe: sp_OASetProperty limitations? Pin
Jeremy Falcon12-Sep-02 5:56
professionalJeremy Falcon12-Sep-02 5:56 
GeneralInserting values into sql table with C# help Pin
halbichmi6-Sep-02 6:13
halbichmi6-Sep-02 6:13 
GeneralImport diagram to SQL-server 2000 Pin
Rulle6-Sep-02 1:47
Rulle6-Sep-02 1:47 
GeneralRe: Import diagram to SQL-server 2000 Pin
notadood6-Sep-02 2:56
notadood6-Sep-02 2:56 
GeneralRe: Import diagram to SQL-server 2000 Pin
Rulle6-Sep-02 6:57
Rulle6-Sep-02 6:57 
GeneralAutomation Error Pin
bugbuster5-Sep-02 11:35
bugbuster5-Sep-02 11:35 
GeneralRe: Automation Error Pin
notadood6-Sep-02 2:53
notadood6-Sep-02 2:53 
GeneralIdentity Seed/Increment Customize Pin
Robby5-Sep-02 5:25
Robby5-Sep-02 5:25 
GeneralRe: Identity Seed/Increment Customize Pin
Jon Hulatt6-Sep-02 3:55
Jon Hulatt6-Sep-02 3: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.