Quantcast
Channel: dBforums – Everything on Databases, Design, Developers and Administrators
Browsing all 13329 articles
Browse latest View live

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 Article


Tools 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 Article


Tools 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 Article

Sum 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 Article

Mysql 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 Article


Import 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 Article

Sybase 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 Article

DB2 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 Article


convert 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 Article


logarchmeth1 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 Article

primary 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 Article

Null 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 Article

Insert 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 Article


Oracle Active nodes

How do I look for the oracle processes to see whict one active node are they running on in linux?

View Article

E-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 Article


using 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 Article

Showing 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 Article


Mapping / 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 Article

Add 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 Article

creating 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
Browsing all 13329 articles
Browse latest View live