Click here to Skip to main content
15,915,324 members
Home / Discussions / Database
   

Database

 
GeneralRe: Access Databases Pin
QC_200028-Apr-06 5:59
QC_200028-Apr-06 5:59 
QuestionHow to FTP a File using SQL Server 2000? Pin
pubududilena28-Apr-06 3:57
pubududilena28-Apr-06 3:57 
QuestionUnpredicted behaviour i IN clause Pin
qur28-Apr-06 2:42
qur28-Apr-06 2:42 
Questionsearch case insensitive in access Pin
klakero28-Apr-06 1:16
klakero28-Apr-06 1:16 
QuestionRe: search case insensitive in access Pin
Eric Dahlvang28-Apr-06 5:47
Eric Dahlvang28-Apr-06 5:47 
QuestionEnterprise library Pin
WDI27-Apr-06 23:33
WDI27-Apr-06 23:33 
QuestionQuery on UNION Query Pin
DiligenZ27-Apr-06 19:00
DiligenZ27-Apr-06 19:00 
AnswerRe: Query on UNION Query Pin
Colin Angus Mackay27-Apr-06 20:38
Colin Angus Mackay27-Apr-06 20:38 
DiligenZ wrote:
will the usage of UNION query affect the program throug put efficiency?how to over come that?


The use of the UNION is to join the result sets of two or more queries into one query. When it is used there generally is no other option so efficiency cannot be a consideration unless you consider it more efficient not to run the query in the first place.

The alternative to using a UNION to join two result sets together is to create a temp table and INSERT the result sets into that then SELECT out of the temp table - I would suggest that route is vastly more complicated and time consuming that a UNION. You should be using temp tables if you want access to the result of a complex query a number of times in near future queries. This saves you from repeated running the same query.

If you are using a UNION incorrectly, for exampe
SELECT * FROM MyTable WHERE someColumn = 1
UNION
SELECT * FROM MyTable WHERE someColumn = 5
then it will probably have an impact - you should, in that case, construct a single query with a WHERE clause as
WHERE someColumn IN (1, 5)



"On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question."
--Charles Babbage (1791-1871)

My: Website | Blog

-- modified at 2:38 Friday 28th April, 2006
QuestionSQL connection issue with window Xp SP2 Pin
Lisana27-Apr-06 5:30
Lisana27-Apr-06 5:30 
AnswerRe: SQL connection issue with window Xp SP2 Pin
Colin Angus Mackay27-Apr-06 6:01
Colin Angus Mackay27-Apr-06 6:01 
GeneralRe: SQL connection issue with window Xp SP2 Pin
Lisana27-Apr-06 6:07
Lisana27-Apr-06 6:07 
GeneralRe: SQL connection issue with window Xp SP2 Pin
Jerry Hammond27-Apr-06 10:03
Jerry Hammond27-Apr-06 10:03 
QuestionHow to create a schema? Pin
Goalie3527-Apr-06 4:19
Goalie3527-Apr-06 4:19 
AnswerRe: How to create a schema? Pin
Eric Dahlvang27-Apr-06 4:44
Eric Dahlvang27-Apr-06 4:44 
AnswerRe: How to create a schema? Pin
Frank Kerrigan27-Apr-06 4:47
Frank Kerrigan27-Apr-06 4:47 
QuestionSelect * From [Orders] IN '' [ODBC;Driver= ... Pin
Thomas Wells27-Apr-06 3:53
Thomas Wells27-Apr-06 3:53 
QuestionDatabase relationship problem Pin
ADY00726-Apr-06 23:37
ADY00726-Apr-06 23:37 
AnswerRe: Database relationship problem Pin
Colin Angus Mackay27-Apr-06 1:15
Colin Angus Mackay27-Apr-06 1:15 
GeneralRe: Database relationship problem Pin
ADY00727-Apr-06 1:23
ADY00727-Apr-06 1:23 
AnswerRe: Database relationship problem Pin
QC_200028-Apr-06 6:10
QC_200028-Apr-06 6:10 
QuestionSQLCLIENT CONNECTION Pin
Greeky26-Apr-06 22:50
Greeky26-Apr-06 22:50 
AnswerRe: SQLCLIENT CONNECTION Pin
Frank Kerrigan27-Apr-06 4:50
Frank Kerrigan27-Apr-06 4:50 
QuestionISQL-OSQL Pin
D.N.26-Apr-06 19:28
D.N.26-Apr-06 19:28 
QuestionHow extract the numbers only in SQL Pin
isroavi26-Apr-06 17:12
isroavi26-Apr-06 17:12 
AnswerRe: How extract the numbers only in SQL Pin
Jerry Hammond26-Apr-06 17:55
Jerry Hammond26-Apr-06 17: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.