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 Chriss Miller 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: szeiss
  • Content: Threads
  • Order by date
  1. szeiss

    Need to select the one value if it exists otherwise another value

    I'm not sure how to go about this. In my tbl_Project_Employee below I have 4 dummy records. I need a query that selects where the employee_type_id = 48 if it exists; otherwise I select where the employee_type_id = 22. I've shown below the table what my results should be. tbl_Project_Employee...
  2. szeiss

    Updating 1 Record When There Are Duplicates

    I have a table called rpt_sp_category with the following columns: sponsor, dept_cd, subproject_id, fao_id, fund, agency, orgn, cnt_fund_groups, avail_appr, expenses, spending_plan My problem is the rpt_sp_category will have duplicate records where the cnt_fund_groups > 1, but I only want to...
  3. szeiss

    Increment Number by Date with Reset

    Is there a way to increment a number by date resetting on an id column. For example: Table1 ContID Visit Date 145 1 01/01/2016 145 2 01/25/2016 145 3 02/01/2016 150 1 02/15/2016 150...
  4. szeiss

    Query records for only selected criteria

    I have one table with all available funding agencies. I also have a contracts table. I could have one contract with funding from multiple agencies such as 607, 207 or 307. What I need to find is which contracts are being funded ONLY by agency 207. How would I write this? Thanks, Sherry
  5. szeiss

    Grouping Table Problem

    Using CF8. I'm creating a report using cfdocument what will export as a PDF. I want the report to look like the following: Vendors Within the City comm_cd sub-heading vendor Name address loc_code vendor Name address loc_code comm_cd sub-heading vendor Name...
  6. szeiss

    List Function Confusion

    I'm using CF8. I have the following partial query - <cfquery dbtype="query" name="getVendor"> select distinct vendor, loc_code from variables.savedlist </cfquery> I'm using this query in a cfdocument pdf type report. I need to loop thru this query and look for where the...
  7. szeiss

    Mailing Labels

    I need to create mailing/address labels. There will be multiple addressees and most likely mutiple pages using Avery 5160. We are using coldfusion 9 as the front end and oracle as the backend. My thought is to use an avery 5160 template which I found on the web, insert text fields for the...
  8. szeiss

    Display FY2011 instead of FY-1 in Report

    How can I display the text FY 2011 instead of the calculation as the column heading in a report? Thanks, Sherry
  9. szeiss

    Equivalent to SQL IN operator in CF

    What would be the CF equivalent to the SQL 'IN' operator in coldfusion? <cfif #variables.location# IN "LO","AU","SL"> <cfelse> </cfelse> Thanks, SZ
  10. szeiss

    Rendering Recordset in HTML Using Cfdocument

    How do I do this? Or can I? Trying to render a recordset using HTML from an oracle 11g database thru CF 8 using cfdocument. I've gotten it to where the groups repeat for each data row, but haven't figured out how to get non-repeating group headers. HEADING Group 1 Data row...
  11. szeiss

    Passing Prompt Answer to Metric

    I'm a newbie with Microstrategy. This is something I've done with Crystal, but not sure how to accomplish this with Microstrategy. I will need this with probably every report I do. The situation is, a user selects a department and a fiscal year prompt i.e. 2012 for the FY. That number (2012)...
  12. szeiss

    CRAXDRT A month number must be between 1 and 12

    Using Oracle 10, Coldfusion, CR 8.5 on desktop and CR 11.5 on server. Keep getting this error when I press submit to run report, "A month number must be between 1 and 12". I've changed the parameters in the report to use DateSerial, but still doesn't work, keep getting the same error. Here is...
  13. szeiss

    CRAXDRT A month number must be between 1 and 12

    Using Oracle 10, Coldfusion, CR 8.5 on desktop and CR 11.5 on server. Keep getting this error when I press submit to run report, "A month number must be between 1 and 12". I've changed the parameters in the report to use DateSerial, but still doesn't work, keep getting the same error. Here is...
  14. szeiss

    Calculate Percent Complete

    I'm trying to calculate percentage complete between 2 dates in oracle. Shown below is how I did it in excel. A3 B3 C3 Pct 4/13/2010 6/3/2011 7/23/2010 24% =DATEDIF(A3,C3,"D")/DATEDIF(A3,B3,"D") Thanks, Sherry
  15. szeiss

    Multiple Group Headers only Repeat 1

    I have a report with multiple groups headers for example: GH3 GH3a GH3b GH3c .... Is it possible to only repeat GH3b and not the others when the report flows to another page? Thanks, Sherry
  16. szeiss

    Count Within a Count

    Using 10g, I have a table of report names and user names. I need to count the total number of times each report was ran and the total number of unique users that ran each of those reports. I want to show the total report count and the total unique user count. Thanks, SZ
  17. szeiss

    BULK COLLECT INTO Help

    Using 10g. I'm trying to use BULK COLLECT INTO to create some variables to use in some calculations and some if..then..else statements. I don't know if I'm using it correctly or not. DECLARE TYPE employeeData_type IS TABLE OF temp_table%ROWTYPE INDEX BY PLS_INTEGER; employeeData...
  18. szeiss

    How do I do this???

    Using Oracle 10g, I need to figure out starting from today's date, what phase will I be in in 6 months according to the schedule. Start End Phase 1 1/31/2009 Phase 2 2/28/2010 6/16/2010 Phase 3 6/16/2010 12/31/2010 Phase 4 12/31/2010 5/10/2012...
  19. szeiss

    Convert Numeric Text to Dollars

    I'm using CR 8.5. I have a formula that displays the value without any decimals when table.rpt <> 4. When table.rpt equals 4 then I want to see the decimal places. The code below works, BUT I need to add the dollar sign in the first instance, but so far no luck. Both of these fields are...
  20. szeiss

    Suppressing Subreport

    Using CR 8.5 with oracle backend. I have a main report with a column called 'rpt' which will either be a 0 or 1. I have 2 subreports, subreport 1 will only print if rpt = 1, the other subreport 2 will only print if rpt = 0. When one prints the other is suppressed. I have suppressed other...

Part and Inventory Search

Back
Top