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 bkrike 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: *

  • Users: Terris
  • Content: Threads
  • Order by date
  1. 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...
  2. 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...
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. Terris

    How much programming can I eliminate with my select

    I have an employee detail file that contains bar coding scans for times clocked in and out. I want to select for a week all employees that are over 40 hours and have at least one record that the field type <> 1,5 or 6. Any suggestions or do I need to go to outside SQL to generate Thanks Terri
  9. Terris

    sql statement many to one

    I have two tables one contains header information for a return form the other is the activities against the return. There are multiple entries for the activities against one return. I only want to grab the oldest activity header fields creditno (joins to detail) customer part status detail...
  10. Terris

    Preview does not match print, why?

    I have modified an existing report by adding an addtional table. The join does work and the tables are relating because the preview shows the data I require. The clincher the printout does not all the time. I have tested all sorts of conditions, thinking first of corrupted data. Once the report...
  11. Terris

    JOIN AND GROUP BY

    I have two tables INTRAN with two fields that apply fmjobno and fqty JOMAST with several fields I require, for this example lets use fjobno, fordqty, ford_dt there is a 1 to many relationship where jomast with be 1 record INTRAN will be many entries for the same jobno result would be...
  12. Terris

    created the code below to pass back to a report

    How do I get the cursor available in the data environment so that I can join fpartno and fpartrev to another cursor that already exists in the data environment? lnHandle = CURSORGETPROP(&quot;ConnectHandle&quot;,&quot;inonhd&quot;) lcsql='SELECT inonhd.fpartno, inonhd.fpartrev...
  13. Terris

    Multiple Cursors into the data environment area

    I am trying to modify a report that is part of a software package so some of the knowledge of 'how things work' is not always clear. The .prg creates a cursor using sqlexec called slbklg, when you enter the data environment of the report layout tool this cursor layout is available for drag and...

Part and Inventory Search

Back
Top