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
I have a table WorkLog(personId number, actionType number, doneOn timeStamp), now how can i get the most recent action for each person.
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
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
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.
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
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.
I need to pull back records based on a location ID, but I\'ve got two fields that MAY contain the incoming criteria....
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
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