Multiple cursors Infinite loop
Hi, I have written one procedure . every thing is working fine. But My first loop is entering into infinite loop. I tried to resolve this but unable to get .sorry for posting my code. I am missing...
View ArticleMacro for a selected range
Hello, this is my very first post, so bear with me. We have a standard format we need charts in excel to be, so I thought it would be useful to make macros to put the chart into the correct format. I...
View ArticleIs ACTIVATE db the same as CONNECT TO DB ?
Is db2 ACTIVATE DB <dbname> the same as db2 CONNECT to <dbname> ? What is the difference in terms of back-end behaviour? I don't think they are the same because when we activate DB, STMM...
View ArticleHelp with question on database being moved and now web tool is broken
Hi! I am a newbie to PHP and databases. I would appreciate any help on this! For my job, the database being used by a web tool on our site has been moved (to a new location or server, not sure which)....
View ArticleOnChange insert Date
Hi all Just a little help please... I have created a very simple database to capture marketing data. I have a form which is linked to a table. On the form are fields such as, company name, contact name...
View ArticleRemoving Headers from multiple files while concatenating
HI, I have a requirement to merge multiple files into one.All the files are of the same type with same number of columns and exact column names as Header. When i merge all these files using cat...
View ArticleAuto System Current Date and Time
Hi there guys, I would like to ask for help on what scripts and behavior to execute to let the Database automatically input the DATE and TIME? Please help. Thank a lot :)
View ArticleI don't want to use FOR EACH ROW condition in trigger
Hi All, I have created a trigger in my database for updation of previous year values while i upload data into RS_KPI_DLR_DETAIL table. here is the Trigger definition- CREATE TRIGGER...
View ArticleDISTINCT not working
I have a table 'advice' which contains various fields including: clientid, clientname, adviceid and date I want to get a list out which has everybody who has received advice in it but which only lists...
View ArticlePackage in db2
Hi, I have a scenario & i accomplished that using 2 procedures . But my requirement is to make that 2 procedures into a single package. I am new to db2 , Now I came to know how to write procedures...
View ArticleCalculated column reference in DB2
I have a table with the columns:date1,name and price. What i want to do is to add 2 columns one right having the minimum and maximum dates of the consecutive dates of the same name. I have written the...
View ArticleHow to edit BLOB values in "IBM data studio" Version 4.1.0.2
Hi, In my project work, I copy data from one database to another for particular record. For a BLOB data, we follow the following technique: 1) Open the Data studio Version 3.1.1.0. 2) Right click on...
View ArticleHow to join the result of two queries
Guys, I have two tables and I get the count of them like this: --First SELECT EXTRACT(YEAR FROM L.DATAHORALCTOFIS) ANO, COUNT(*) LANCAMENTOS FROM LCTOFISENT L WHERE L.ORIGEMDADO IN (1,2,3) GROUP BY ANO...
View ArticleGrant seelct on all objects in a schema to a user
How to grant select on all objects in a schema to a user . I want this grant to be available on new objects that will be created in the schema ..
View ArticleDevart Introduces dbForge Studio for SQL Server 4.0 with T-SQL Code Analyzer
Devart announces the release of dbForge Studio for SQL Server, v4.0. The new version introduces new general features: T-SQL Code Analyzer T-SQL Code Analyzer is a code analyzing utility that can...
View Articledate difference problems
I have two tables: clients containing clientid, forename, surname advice containing adviceid, date, clientid A client could come any number of times for advice. I want to extract: the number of clients...
View Articlerestricting column to latest date
HI all I'm very new to Crystal reports and have a problem with a report I've been asked to look at that was built by another person that is sadly no longer with the company I have a list of Clients and...
View ArticleDifficulty getting correct data ---Running a Report
I am trying to run a report showing 3 things Name of employee Start date of open issue Days since the issue is open (For calculating days I am using formula =DateDiff("d",[Start Date],Now()) and my...
View ArticleCursor: Pin S Wait on X
Hi all, Please find below how do I get list of queries that caused "Cursor: Pin S Wait on X" on database. Now how do I get list of only the top wait for these queries? Quote: select distinct j1.sql_id,...
View ArticleOpen Google Earth desktop version to specific location
I'm a newbie so please bear with me. I am looking to open the application and center the display to the Lat. and Long. stored in my table. My question is how do I send the data to Google Earth through...
View Article