Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Terris

    trying my first MS stored procedure and get...

    The suggestion was to explain exactly what I am trying to do. I am looping through a control table that stores work table names. from these 'work' tables I am pulling the max date stored and updating another control table that keeps track of oldest date transfered from transactional to...
  2. Terris

    trying my first MS stored procedure and get...

    error message that has me stumped. Usually a PL/SQL user and not sure what to do. the SP is below the error message I'm getting is must declare @max_date, it is so I'm stumped Any help would be greatly appreciated. Thanks in advance!! SET QUOTED_IDENTIFIER ON GO SET ANSI_NULLS ON GO ALTER...
  3. Terris

    Bringing in a flat file or can I use hotfile

    OK I'll try to explain a bit more, I'm beginning to think that Cognos and flat files don't work together. File is created by an etl process, resides on the same unix box that my DB2 database lives on. Need to pull the first 20 or so rows for review prior to sending the file off to a second...
  4. Terris

    Bringing in a flat file or can I use hotfile

    I have a group of reports associated with a database through a catalog. I require information from a flat file. Thought I could use hotfile, renamed the file to end in .ims, file is not showing on the browse list. How can I make a flat file accessable to my catalog. This is a CSV delimited file...
  5. Terris

    Conditional subtotal

    Thanks for the idea, was able to use this concept to get what I wanted!!!!
  6. Terris

    Conditional subtotal

    Trying to work out if this is possible within cognos. Data source is a very simple summary table key description value 1 reject reason 1 nn 2 reject reason 2 nn 3 reject reason 3 nn *********************************************************** what...
  7. Terris

    can't get the total right

    That did it you guys ROCK, cannot tell you the grief this has caused me (not to mention the few extra grays) Thanks again!
  8. Terris

    can't get the total right

    'p' type items also have start and end date/times but it is calculated differently. the 'p' represents a parallel labor calculation so they clock in and out but the minutes are all jobs running divided by the number of jobs so I cannot just add the columns
  9. Terris

    can't get the total right

    but them amounts need to be combined into one record. There needs to be one record containine total time for each employee, each earning code. when you add the group by fp it works great except how do I then combine the two
  10. Terris

    can't get the total right

    swampboogie (love the name) I tried this format and got the following error Server: Msg 170, Level 15, State 1, Line 3 Line 3: Incorrect syntax near ')'. I am trying to sum up total working seconds for employees that are barcoding into our ERP system (evetually to create a text file to share...
  11. Terris

    can't get the total right

    the statement below does not sum in the else part of the case statement so my totals are off with only 'P' flabtypes being summed. Help!? SELECT FEMPNO, fcearncode, CASE WHEN Max(Ladetail.flabtype) = 'P' THEN sum(Ladetail.Fchrglab * 60) else sum(DateDiff(ss, Ladetail.fsdatetime...
  12. Terris

    Text to numeric in a query

    I don't have alot of freedom with the database. I am writing custom reports off our ERP systems database developed by the software provider. I was however able to resolve this problem by doing a cast of a cast CAST( CAST( fieldname AS VARCHAR(17) ) AS FLOAT )
  13. Terris

    Text to numeric in a query

    did not work Explicit conversion from data type text to float is not allowed.
  14. Terris

    Text to numeric in a query

    two fields fmoldval and fmnewval table field defined as text. Would like to use them both in a mathmatical equation fmnewval - fmoldval actual data is stored in a decimal(9,5) Tried both cast as decimal (9,5) and cast as int and received the error message Explicit conversion from data type...
  15. Terris

    parsing a field to join

    If I could only redesign, not an option I am reporting off an existing database that drives our ERP system. This is an audit table, the table name is stored in one field the table key in another. I am using this audit table to pull out changes to sales orders for a booking report). if the table...
  16. Terris

    parsing a field to join

    OK so I'm drawing a blank on this one. I have a field in one table that is Order# ' ' line# + release#. Sometimes the order # is 5 characters, sometimes 6. Line# can be 1 to 6 digits, release# does not always exist but when it does it is 3 characters. I need to extract the line# to use in the...
  17. Terris

    preview does not match hard copy HELP!!!!

    OK here is the senerio. I am creating a cursor let's call it yield, the cursor is passed to a yield report all data prints great. Now a few months later then want cost information (yield x stnd cost) added and the stnd cost is stored in my inventory table. So off to report designor, open the...
  18. Terris

    How much programming can I eliminate with my select

    tried the datediff gave the same error message. Guess i'm off to convert :>) thanks for your input
  19. Terris

    How much programming can I eliminate with my select

    Received this error message when using this format. Will continue researching on my own but wonder if there is a suggestion on how to handle this? The sum or average aggregate operation cannot take a datetime data type as an argument.
  20. Terris

    How much programming can I eliminate with my select

    labor detail table: employee # type begin timedate end timedate an entry is made in this table each time an employee clocks out of a mfg. job so for one week there may be many entries for each employee. I need to total up all entries for an employee for a week If that employee has clocked...

Part and Inventory Search

Back
Top