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 SkipVought 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. arewehavingfunyet

    plpgsql - RETURN concatenation with string of spaces

    You were so right, it appears to be pgadmin. I ran the sql in psql and I got my spacing correctly. Sometimes we become so deeply entrenched in the code that we forget where we are! I will definitely look into the rpad and lpad functions as well. Thanks
  2. arewehavingfunyet

    plpgsql - RETURN concatenation with string of spaces

    I tried the case statement as you suggested. I did need to change each single quote to 2 single quotes in that case statement. I still did not get the excess spaces. Is it possible that since I am running it via PGAdmin under windows (versus Unix) that the extra spaces are not being interpreted...
  3. arewehavingfunyet

    plpgsql - RETURN concatenation with string of spaces

    I have not been able to figure out howto return a string of spaces from a postgres PLpgSQL function. For example I have a finalresult field defined as varchar. As I LOOP thru a section of code I set finalresult := finalresult || '' '' || field1 || '',''|| field2; and then I issue...
  4. arewehavingfunyet

    finding top n within postgres sql

    Thanks for everyone's feedback. Unfortunately I am on Postgres 7.2 which limits me regarding the use of a stored procedure, which would have supported my variability of the 'top n' and the number of problem groups, so I am forced to use the view method. I did learn alot based on your direction...
  5. arewehavingfunyet

    finding top n within postgres sql

    Thanks for the feedback! I was hoping I would not have to go the route you suggest since I wanted to be able to have the top 'n' be a variable and not a set value (passed from the reporting program). And I also didn't want to have views for each problem category, since new categories come up all...
  6. arewehavingfunyet

    finding top n within postgres sql

    The informationr resides in just one table where the key is problem id (number) and fields type (varchar) is the problem category (ie. email problem) and the requestor (varchar) is the name (ie. bob). My undestanding of limit is that in my case I will get just 3 items from the total result...
  7. arewehavingfunyet

    finding top n within postgres sql

    I am trying to write a select statement using Postgres to get the top 3 users in each problem category with the most problem incidents. For example: email problems: mary 5 jason 3 amy 2 beth 1 riley 1 network problems: bob 7 john 6 fred 4 howard 2 amy 1 sue 1 The results would produce: email...
  8. arewehavingfunyet

    using phpPgAdmin

    In response to Leland's point, I have found that a unique set of catalog system tables exist for each database in a cluster. Catalog creation for each is defined using template1 unless otherwise overridden. However there are global catalog objects that exists across all databases and exist in a...
  9. arewehavingfunyet

    using phpPgAdmin

    1) I am testing out phpPgAdmin version 2.4.2 on a new linux server. We previously have been using 2.4-1 our current production server. With this new release I have found that on my left pane, the drop down entries for System Tables, All Databases open up with their entries already expanded, but...
  10. arewehavingfunyet

    flip columns into rows

    I have a table (ABC) that has: pro varchar2(12) not null (primary key) pat varchar2(12) not null (primary key) ic1 varchar2(1) ic2 varchar2(1) ic3 varchar2(1) ic4 varchar2(1) If I want to create a view that will return a row for each ic type i could specify: create or replace view as select...
  11. arewehavingfunyet

    Show results of SQL accross in columns

    Thanks, that appears to be doing what I want. Much appreciated!
  12. arewehavingfunyet

    Show results of SQL accross in columns

    The number of columns are fixed, in that I know the maximum number of row values that could occur. So I can interpret them using the decode function to flip the result set. However I am not sure how to handle the numeric/varchar2 value in the result set.
  13. arewehavingfunyet

    Show results of SQL accross in columns

    I have a table that looks something like this: protocol varchar2(12) not null - pk patient varchar2(12) not null - pk coldate date not null - pk testname varchar2(32) not null- pk testresult_num number(11,5) testresult_text varchar2(20) I would like to produce results that for each unique...
  14. arewehavingfunyet

    Where are privilege settings kept in the system catalog

    I am trying to find our where the information goes in the system catalog when you issue a command 'Grant select on table1 to user1'; I have been searching thru the pg_ catalog tables but have not been able to find it.......Thanks in advance for your help!
  15. arewehavingfunyet

    connect to different postgres servers in php

    I have a postgres database on 2 different linux servers. the PHP application code resides on one of the servers. I am trying to use pg_connect like this: **** $conn = pg_connect ("hostaddr=$InServer port=5432 dbname=sag0s01 user=$InUser password=$InPassword"); **** where I pass in the...
  16. arewehavingfunyet

    Oracle performance tools

    I have found that BMC (<A HREF="http://www.bmc.com" TARGET="_new">www.bmc.com</A>???) has both an excellent set of tools and is a vendor that I have enjoyed working with in the past. The name of the tool you would be interested in would be Patrol. Computer Associates (formerly Platinum products)...
  17. arewehavingfunyet

    How do you activate an ActiveX control on an Access menu-like form

    I am trying to do a proof of concept to execute a Crystal Reports report program by clicking on a command button in Access. I have little experience with Access, and no knowledge of Visual Basic. From the documentation I have found, I created a Form in access with a command button. I have...
  18. arewehavingfunyet

    execute a crystal report program from a MS/ACCESS menu application

    I am trying a proof of concept by using Access as the front end application, initiating calls to run a Crystal Report. I am new to Crystal Reports (unfortunately V5) and new to Access (with no Visual Basic expertise). Based on what I have read, I am trying the ActiveX implementation to create...

Part and Inventory Search

Back
Top