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

bugs in DB2 versions 9.5 and 9.7

$
0
0
good afternoon,
can someone tell me where to find the bugs in versions 9.5 and 9.7, there is a link to IBM but I can not remember what it is.

Thank you very much and best regards.

Help please - Update/case statement

$
0
0
I'm trying to add and then update a new field on a table like so:

EXEC SQL
ALTER TABLE HMSG.HMKYMDET
ADD KYMDET_ENTRYTYPE SMALLINT
ADD KYMDET_CODE CHAR(16)
ADD KYMDET_DESC CHAR(20)
ADD KYMDET_SUBKEY SMALLINT
END-EXEC.

EXEC SQL
UPDATE HMSG.HMKYMDET
SET KYMDET_ENTRYTYPE =
CASE
WHEN KYMDET_ITEMCODE = " " THEN 1
WHEN KYMDET_SUBMENU = 0 THEN 2
ELSE 0
END
END-EXEC.


I got the technique from here:
http://www.dbforums.com/db2/1214780-...statement.html

but it doesn't seem to be working.

Any help appreciated.

regards

Ian

R12.1.3 - Partial Cloning

$
0
0
Hi,

We need help to clone only last 2years data, appreciate guidance on this requirement.

Thanks in advance,

:beer:
Srinivas

Many-to-Many Relationship Field Colors

$
0
0
Greeting BD Users,
I have a question regarding a 'Many-to-Many Relationship' field that I am using. Is it possible to change the color of individual lines based on certain criteria? I have included a small screen shot of the Many-to-Many' field that I am curious about. I have a recursive command ('For Each') that places each line in the Many-to-Many field so 'conceptually' I should be able to include a nested 'If' command to do a date comparison. Again, my question is simply can the colors of individual lines on a Many-to-Many field be changed based on certain criteria?

I am not interested in changing all the colors... just the ones that meet certain criteria. Is this possible in Brilliant Database?
Thanks,
Daryl G

Attached Images
File Type: jpg mmr.jpg (35.7 KB)

One statement to do an Insert and Update

$
0
0
I did a quick search and did not see anything in this forum specific to this problem:

Problem: In one statement (or whatever is most efficient if not possible), how do I update the rows in table A (based on a where clause), and insert into table B, the data from those same number of rows.

For example,

Table A: columns: id , lastName, department, branch
Table B: columns: id, errorMessage, lastName

UPDATE table A by settting branch = 'ETC' where department IS NULL

INSERT INTO table b the rows found in the above UPDATE statement


note: 1.To find the rows UPDATED in the first statement, it is not sufficient to search by branch='ETC', as that will encompass more rows.
2. I do not want to use triggers as these statements will be executed once in the entire process

Thanks!

Problem with Duplicate Keys

$
0
0
I have a table with following fields

FIELDKEY int autoincrement
FIELD1 varchar
FIELD2 varchar
FIELD3 varchar
FIELD4 varchar

When an insert is done twice with the values 1,2,3,4. The row for FIELD1...FIELD4 are populated with 1,2,3,4 twice. Is there a way to
make these values four fields unique such that it would not allow duplicates
for these four field combinations?

Thanks.

Access 07 Form using Sharepoint 07 lists - list data not refreshing

$
0
0
Hello,

I have a Form in Access 2007 that modifies records in a SharePoint List called 'Reservations'. There is a combo box in my form that displays all the reservation records in the list.

If I make a reservation on Computer1 auto-numbered ID 1 and then some time later make a reservation on Computer2 auto-numbered ID 2, the combo box on Computer2 will only show the record with ID 2. If I re-query the combo box on Computer1, it will only show the record with ID 1.

If from within Access on either computer I open the linked table (SharePoint list) 'Reservations', it contains both records. Now when I re-query the combo box, it shows both records.

I have the "Cache List Data" setting OFF. For some reason, SharePoint is using stale list data, but it still properly auto-numbers the IDs so it's not totally offline.

Any ideas?
Thanks!

Log files not removed

$
0
0
DB2 V9.5 FP8 - RHEL 5.8

We have a development Linux server with 2 databases on it. The databases are in circular log mode. LOGPRIMARY set to 10 and LOGSECOND set to 100 and LOGFILSIZ set to 2000.
We have ran out of space on the server because the log files are not automatically deleted. We had log files from September 2012 still sitting on the server. I would think that since the database is in circular log mode the log files would be deleted automatically.

Is there a db setting/configuration I need to set ?. Any ideas why the files were not deleted ?

At this point I am thinking to setup a cron job to delete the log files that are older than 10 days.

Thanks for any help.

Help with a query

$
0
0
I'm trying to query a table with over 2,000,000 rows, and the query I wrote is taking about 30 seconds to complete. I'm wondering if there's any way to speed it up?

Code:

select current timestamp, count(a.actionuserid)
from actions a
join actions b
on a.actionuserid = b.actionuserid
where a.actionstatus='Login' and b.actionstatus='Registered' and a.actiontime between current timestamp - 15 days and current timestamp

I have a table with all the actions logged. I'm looking for the number of people who logged in and registered within the last 15 days.

TableActions
ActionID = INT PK
ActionUserID = INT FK
ActionStatus = Varchar
ActionTime = DateTime

VBScript / help needed with query

$
0
0
Hi!
I'm trying to build a query that will access three tables and I want to run this query via VBscript.

This is my working version:
Code:

sSQL = "SELECT OPNPOS.FUND, SECRTY.TKR, SECRTY.ISIN, OPNPOS.QTY, OPNPOS.LCL_ACCINC, PRIHST.PRICE / SECRTY.FACTOR AS CENA
FROM OPNPOS INNER JOIN (SECRTY INNER JOIN PRIHST ON SECRTY.TKR = PRIHST.TKR) ON OPNPOS.TKR = SECRTY.TKR
WHERE OPNPOS.FUND IN " & sFUND & " AND PRIHST.PRCDATE = #" & sDATA & "#
ORDER BY OPNPOS.FUND"

I need to change this query in order to see every element from OPNPOS table so I would change
Code:

FROM OPNPOS INNER JOIN
to
Code:

FROM OPNPOS LEFT JOIN
but it gives me an error.

I know that there are some ways to workaround this but I've tried a lot of combinations and get no success ;/

Anyone can help me? :)

how to identify facts in dimensional modeling.

$
0
0
hie,,

It would be much of an appreciation if you could tell me how to identify fact in a fact table while modeling dimensional table .. I just want to know how to identify them...

Thank you

Vba email multiple attachments

$
0
0
Hi All,

I am stuck and would appreciate any help.:eek:

I working in Access 2010 and have the following code.
Code:

.attachments.Add ((DLookup("Attachment", "tblemailmessageattachments", "Location = '" & Forms![frm1]![LOC] & "' And Emptype = '" & Forms![frm1]![EmpType] & "'")))
And draws the following from a memo field type in the table: "S:\folder\filename1.pdf”; "S:\folder\filename2.pdf”; "S:\folder\filename3.pdf”.

The problem is I only the first document attaches.

I'm going nuts with this.

Cheers
J

Help on creating an invoice

$
0
0
Hi all my first post so i am trying to make it as detailed as possible
ok so I have 5 tables these are

tblCustomer
(PK)CustomerID
FirstName
LastName
Address
PostCode
ContactTelephone

tblEmployee
(PK)EmployeeID
Initals
FirstName
LastName
Address
PostCode
ContactTelephone
Email

tblVehicle
(PK)VehicleID
Make
Model
VehicleReg
EngineSize
NoDoors
Style
Transmission
Fuel
Colour
Milage
ServiceHistory
Notes
AskingPrice
PurchaseDate
SaleDate
PurchasePrice
SalePrice
Sold
SalesPerson (Linked to tblEmployee - Initials)

tblInvoice
(PK)InvoiceNumber
InvoiceDate
CustomerID (Linked to tblCutomer - (PK)CustomerID)
EmployeeID (Linked to tblEmployee - (PK)EmployeeID)

tblInvoiceDetails
(PK)DetailsUniqueKey
InvoiceNumber (Linked to tblInvoice - (PK)InvoiceNumber)
VehicleID (Linked to tblVehicle - (PK)VehicleID)

I want to people to go to the a form select the customer ID and Vehicle ID and the Employee Initials and then click on a button that will produce a invoice into Word which will show the Cutomer Name and Address then the Invoice Number (which I would like to be automatic in the table it is set as 'AutoNumber' anyway) then I would like it to show the Vehicle Make Model Vehicle Reg and then the Sale Date and Sale Price.

Any help would be appreciated

If this is too complicated to explain could you show me any manuals or help videos that could help

Much appreciated

Rob

Netbeans

$
0
0
Hi,
Has anyone worked with the testing and profiling of netbeans?
I have used it but don't get any results. I have read articles on web but they don't seem to help.
I want to use a file that contains inputs to my application and measure the elapsed time in specific methods.
Could anyone that has used this feature help me with it?

Thanks in advance,

Carriage return in a Crystal Formula

$
0
0
Crystal Version 11 R2

I'm working in a cross tab report and I need to place the Week # (data field in a table - datatype is Number) and the Day number (formula I built) in the X axis of the report. The fields need to be 1 atop the other like this:

Week: 1 2 3 4 etc
Day: 1 8 15 22 etc

The weeks need to display in numerical order across the top of the crosstab.


EDIT: OK, I noticed that the numbers in my illustration are not aligned like they should be. Just bear in mind that I need 1 & 1 vertically aligned with each other, 2 & 8 aligned, 3 & 15, etc.

The Day field is a formula I built that is simply

(({CrystalData.WeekAsNum}*7)-6).

My idea was to create a formula that placed the Week # on line 1, do a Carriage Return then place the Day # below the Week #. Here's the formula I built to do that:

{CrystalData.WeekAsNum} + chrw (13) + {@Day Number}

The problem is, the formula evaluator keeps telling me "A number, currency amount, date, time, or date-time field is required here." It highlights the chrw (13).

If I change the formula to set the Week & Day fields as Strings, it of course displays the weeks as 10, 11, 12, etc., then 3, 4, 5, etc., which won't work. Same thing if I use this formula:

{CrystalData.WeekAsNum}&chrw (13)&{@Day Number}

If I place the 2 fields in the X axis of the Crosstab Expert then I get an unnecessary Total column that I can't remove.

How can I get around this limitation in Crystal that won't allow me to place a carriage return in the midst of number fields???

Thanks,

Mike

Harmonie

$
0
0
Does anyone have info about Harmonie? I use it for attachments to e-mails I am sending out but currently it only allows one column of information about the attachment:(. Is there a way to increase this to 2 or 3 columns?:)

Access - Username and Chronoloigal Queries

$
0
0
Hey,

I am creating a database to store part information and pricing history and I have two issues that I cannot seem to solve.

First, I have an import form to import pricing information on a list of parts from Excel into a table in Access. I would like to append the windows user name onto each line of data to mark the person that uploaded that information. I already have code to pull the windows user name, but I cannot figure out how to put it into the table when someone is importing information.

Second, I would like to create a query to pull back information on a part number. My issue is that I cannot figure out how to pull back complete lines from multiple different tables in order to display them chronologically. For example, a part may be entered into the Original Pricing table on 1/1/13, and a discount on that part may be entered on 3/1/13. I want to be able to search for a part number and have it pull back the line that includes the original pricing and a line that includes the discounted pricing. Perhaps this might require creating a new table that combines all tables in order to accomplish this, but I'd like to know if there's an easier way.

Thank you for your help!
Amandacolle

Easy Online Jobs Offer Affiliate Program[M000371]Jan-1301

$
0
0
Affiliate programs are often called home business opportunities or ways to work from home online, but essentially they are all pretty much the same thing with minor differences other than the niches they are targeting. They can become very profitable and make you a substantial amount of money every month if you are willing to put in the necessary time and effort. Continue reading to find our highly recommended online business programs, opportunities, and resources for making money on the internet. Now you can earn hundreds and thousands of dollars by referring!

Java Developer in Raleigh, NC with DOR‏

$
0
0
Job Details



Job Position: Java Developer

Duration: 6+ Months

Location: Raleigh, NC

Client: Department of Revenue (DOR),



Position Id-: # TSS-001840



Java Developer primary responsibilities:

- Code and systems test application program or modules

- Participant in integration test and user acceptance testing

- Participant in peer code reviews

- Provide application maintenance and enhancement support for legacy system

- Trouble shoot and resolve code defects



Knowledge, Skills, and Abilities Requirements:



Primary Skills:

- Minimum 2 years of java development

- Minimum 2 years of xml development

- Minimum 2 years of experience using MyEclipse or Eclipse

- Good communication skills. Need to be able to interface with vendors, IT and business users



Secondary Skills:

- Windows scripting

- Experience using ANT

- Basic SQL/database querying

- Experience using DB2 Development and General Administration Tools

- Experience using Excel

- Experience using JAXB

- Experience interpreting/reading tax form schema







Thanks and Regards

Creating a row for each month

$
0
0
I have data as follows:

assessment_date
2/29/2012
9/11/2012
10/17/2012

I need to create a row for every month based on the latest assessment_date as of that month:

assessment_date month
2/29/2012 2/29/2012
2/29/2012 3/31/2012
2/29/2012 4/30/2012
2/29/2012 5/31/2012
2/29/2012 6/30/2012
2/29/2012 7/31/2012
2/29/2012 8/31/2012
9/11/2012 9/30/2012
10/17/2012 10/31/2012
10/17/2012 11/30/2012
10/17/2012 12/31/2012

I have a calendar table but can't figure out how to achieve this result.

Thanks in advance.
Viewing all 13329 articles
Browse latest View live