Tune a query with where clause that has a function
Hi, We have a query extracting data from a database that looks something like Code: Select * from <tablename> WHERE SUBSTR(ACCT_TYPE) IN (a,b,c,d) AND bal<0; The table has more than 50 million...
View ArticleTools for Convert Oracle .dmp to MsSQL Server
Hello everyone. Could you tell me please, any tools for converting oracle .dmp to MsSQL server without need Oracle or access direct to Oracle server, just from .dmp to sql server. Thx ;)
View ArticleTools for Convert Oracle .dmp to MsSQL Server
Hello everyone. Could you tell me please, any tools for converting oracle .dmp to MsSQL server without need Oracle or access direct to Oracle server, just from .dmp to sql server. Thx ;)
View ArticleSum of Calculated field in a query
Hi all, I have a query as follows: Code: SELECT da_ligne.RFQ_NATURE, sum(da_ligne.Total_Price) as Total FROM (SELECT da_ligne.C_DA, da_ligne.C_REF, da_ligne.RFQ_PRICE, da_ligne.RFQ_CURENC,...
View ArticleMysql show data in Pivot View
Sorry Guys, could not generate a fiddle since facing some issues with sqlfiddle.com I have a table in mysql database which is as follows: Code: Username mailtime mailid User4 3/23/2013 10:26...
View ArticleImport with a Variable instead of a File
I'm using DB2 9.7 with AIX 6.1. Right now I'm using a file to import data into a DB2 table like this: db2 import from Filename.txt of del modified by dateformat=\"YYYYMMDD\" messages import.msg insert...
View ArticleSybase Upgrade Binary Overlay.
Hello all, I did a binary overlay update from Version ASE 15.03 to 15.5. I'm on AIX 6.1. This method uses the existing directory to replace the binaries. So now i have version 15.5 running on the...
View ArticleDB2 V9.1 (AIX 5.3) Difference between export and pipe
If I have would like to load from one table to another (I know we can use cursor load's put the point of my question is to understand the difference and the reason of using a pipe or an export to flat...
View Articleconvert code from MS Access to MYSQL
I have an app that is becoming sluggish in response. The MS Access DB has 6000 clients and 100K reports. I have two questions: 1. Would poor online access be more the fault of the access db limitations...
View Articlelogarchmeth1 off
we had to turn logarchmeth1 off in a test environment for a different reason (disk full issue). On the other hand, we would like to know the positive impact of turning loggig off.. any improvement in...
View Articleprimary key clustered
Hello I have a question. Is good practice use primary key clustered on every table on database?I'm going to use replication database and it is very important that data not have repeat. I greet.
View ArticleNull data in Where clause of Outer join
How would I select the max dated row from a table where null values could exist. Table 1 ID Amount 1 10 2 20 3 15 Table 2 ID Date 1 8/5/12 1 12/1/12 3 8/17/11 My desired result would be ID Max Date 1...
View ArticleInsert query works differently executed from VBA
Hello all, I have an insert query that looks a bit like this: Code: INSERT INTO tableA( ColumnA, ColumnB, ColumnC, ColumnD, ColumnE, ColumnF, ColumnG, ColumnH) SELECT DISTINCT ValueA, ValueB,...
View ArticleOracle Active nodes
How do I look for the oracle processes to see whict one active node are they running on in linux?
View ArticleE-R diagram from text
I want to create E-R diagram from text file - Theatre box office. I'm in the process of acquiring attributes. Please correct me if I'm doing wrong. Theatre box office (text): The theater tendered each...
View Articleusing an update query to update records from another query
this is my sql: Quote: UPDATE tblDepoActivityTable SET tblDepoActivityTable.ActivityDate = [qryDateMax]![MaxOfDate/Time] WHERE (((tblDepoActivityTable.ActivityDate) Is Null)); Im trying to update the...
View ArticleShowing max date, min date and count of records in table
I have a simple Db consisting of a single table (tblRoomAssignment) with four fields: fldAutoID fldDate fldUser fldRoom I have a form where the user creates a query to locate records of interest. I'm...
View ArticleMapping / navigation in Transact-SQL
Does anybody have a relatively easy way to calculate the longitude of that is N kilometers east/west of a given latitude/longitude location? I can handle the north/south latitude easily by computing it...
View ArticleAdd an auto incrementing number to the end of code
I have this code already Code: 'Create RecordNum using current date 'set variables to use in future operations Dim sMonth As String Dim sDay As String Dim sYear As String 'trim clears...
View Articlecreating a SUM, IF, COUNT statement
I am having major problems trying to create either a single or joint statement that would identify a named sales person from a list of other sales person look across at their price column then add...
View Article