[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

PostgreSQL function HOWTO return a table

Asked by Beringhs in PostgreSQL Database, PL / SQL

Tags: postgreSQL functiun table, mySQL

Hi experts!

I am currently rebuilding a reporting application using BIRT. Before developping to much, I want to be sure of the database software choice I will have to live with.

I started with mySQL, and could write a fairly sophisticated stored procedure pretty fast, based on my TSQL knowledge. Now I suspect postgreSQL to be even more efficent (and less risky in the future as not taken over yet by a major competitor). It seems to me that pgSQL has many more developping features, plus ready to use statistical functions that I need. I feel much more confident with its querying interface, too.

I had to struggle a lot, yesterday, to convert the MySQL stored proc into pgSQL. Learned about pure SQL not being able to declare variables, about case sensitivity, aso. As for now, even if still not perfect at all, my function is created.

However, it should return a dataset, and it does not. Calling the function returns an well known error message: "la requête n'a pas de destination pour les données résultantes", ie "no destination for the query results".

This is the last step I cannot overcome. Can anyone give me a hint?

In fact, I would be interested in reading a basic pgSQL function returning a dataset and how to call it.

Of course, I am also interested in knowing your opinion on postgres a a DBMS instead of MySQL, and if there are other open source choices to consider.

Thank you for your help!
[+][-]10/17/09 03:37 AM, ID: 25595511Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: PostgreSQL Database, PL / SQL
Tags: postgreSQL functiun table, mySQL
Sign Up Now!
Solution Provided By: earthman2
Participating Experts: 2
Solution Grade: A
 
[+][-]10/16/09 07:57 AM, ID: 25590161Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/16/09 08:10 AM, ID: 25590294Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/17/09 03:17 AM, ID: 25595443Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/17/09 03:24 AM, ID: 25595480Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/17/09 03:33 AM, ID: 25595503Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/19/09 10:43 AM, ID: 25607291Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-92 - Hierarchy / EE_QW_3_20080625