db2
DB2 timestampdiff function returning unexpected results
I\'m using the following syntax TIMESTAMPDIFF(2, CHAR(CREATED - TIMESTAMP(\'1970-01-01 00:00:00\')) where CREATED is of type TIMESTAMP and the database is DB2. The intension is to get the timestamp[详细]
2023-04-11 11:23 分类:问答Sql get top row for each type
I have a table WorkLog(personId number, actionType number, doneOn timeStamp), now how can i get the most recent action for each person.[详细]
2023-04-11 09:13 分类:问答Scalar Fullselect issue in IBM DB2 version 9
I have structered a query as below, the resultset of which is returned accurately when a limited set of inputs are fed in, viz., when an input of 500 records are fed, the query results with a scalar f[详细]
2023-04-11 00:46 分类:问答SQL statement - dynamically merging columns from different tables into a single result set
I am not sure this is possible with SQL (say we are executing on DB2) - infact I would say it is not, but thought I would ask some folk who are more experienced in SQL than I am to comment.I have desc[详细]
2023-04-10 22:09 分类:问答How to view stored procedure in zend studio using QuantumDB
How can i view the actual code written inside a procedure using zend studio. Am using Quantum DB. I can see the variables used /structure.[详细]
2023-04-10 21:47 分类:问答Select ID given the list of members
I have a table for the link/relationship between two other tables, a table of customers and a table of groups. a group is made up of one or more customers. The link table is like[详细]
2023-04-10 19:43 分类:问答Open more than one DataReader on a single OleDbConnection
I am using IBM OLE DB Provider for connecting to DB2. I can open more than one DataReader on a single OleDbConnection.Does this provider implicitly opens an additional connection for each DataReader.[详细]
2023-04-10 18:09 分类:问答SQL DB2 - conditional logic in WHERE clause
I need to pull back records based on a location ID, but I\'ve got two fields that MAY contain the incoming criteria....[详细]
2023-04-10 14:23 分类:问答Count of distinct records - SQL
empidprojectIdTaskID 1005001 1005011 1005021 1015002 1015005 1015001 1024001 1033002 1043002 1053002 I am 开发者_JAVA技巧trying to list the employees who works on multiple project only,based on proj[详细]
2023-04-10 14:22 分类:问答Cannot alter table (add unique constraint) in a SQL PL store procedure for db2
I am trying to create a store procedure in SQL PL for db2. A new field needs to be added as part of the unique key, so I need to drop the previous uk first, and then add the new unique key. That worke[详细]
2023-04-10 07:37 分类:问答