Re: [JBoss-user] sql query

2001-10-10 Thread David Jencks
no id grp cmod dmod 1 1 1 1 2 1 1 1 original query returns one row your query should return 2 rows I think he needs to give a specific example of what he wants (ie values, as above) to get an answer that relates to his problem. david jencks On 2001.10.10 03:25:35 -0400 Edward Q.

Re: [JBoss-user] sql query

2001-10-10 Thread Edward Q. Bridges
would this do it? select grp, cmod, dmod from table where grp in (select distinct grp from table) On Tue, 9 Oct 2001 19:17:43 -0400, David Jencks wrote: >unfortunately your question makes no sense. If the GRP value does not >determine the CMOD and DMOD values, which one of the rows with a g

Re: [JBoss-user] sql query

2001-10-09 Thread Peter Wone
Dave I think his grasp of relational theory is weak, so I doubt that answer will mean anything to him. Let me have a go. Your desire to use DISTINCT implies that there can be more than one row with a given value of GRP in it. Each one of these rows has its own copy of CMOD and DMOD. How do you ex

Re: [JBoss-user] sql query

2001-10-09 Thread David Jencks
unfortunately your question makes no sense. If the GRP value does not determine the CMOD and DMOD values, which one of the rows with a given GRP value do you want? If there is an aggregation function that can sensibly be applied to CMOD and DMOD, you can do a group by query select grp, f(CMOD),

[JBoss-user] sql query

2001-10-09 Thread Graham . Forte
Sorry my internet access is down so I am going to try and ask this question here instead of at a related site. I need to do a query like this: String sql="SELECT DISTINCT GRP,CMOD,DMOD FROM TABLE"; The problem is I only want distinct on the first column(GRP) but it returns all distinct combinatio

SV: [JBoss-user] SQL query tracing -- how?

2001-05-28 Thread Fredrik Ålund
e-1_0.jar /Fredrik -Ursprungligt meddelande- Från: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]För Jason Wells Skickat: den 24 maj 2001 02:46 Till: [EMAIL PROTECTED] Ämne: [JBoss-user] SQL query tracing -- how? Hello, I'm running JBoss 2.1, and I need to turn on SQL tracing so

Re: [JBoss-user] SQL query tracing -- how?

2001-05-28 Thread Burkhard Vogel
t; Sent: Thursday, May 24, 2001 2:45 AM Subject: [JBoss-user] SQL query tracing -- how? > Hello, > > I'm running JBoss 2.1, and I need to turn on SQL tracing so that I can debug > a BMP entity bean I'm working on. I'm trying to get my server.log to give me > output

RE: [JBoss-user] SQL query tracing -- how?

2001-05-23 Thread Steve Magoun
be in your connection pool (datasource); I don't know of any that have this feature, though. Steve -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jason Wells Sent: Wednesday, May 23, 2001 8:46 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] SQL que

[JBoss-user] SQL query tracing -- how?

2001-05-23 Thread Jason Wells
Hello, I'm running JBoss 2.1, and I need to turn on SQL tracing so that I can debug a BMP entity bean I'm working on. I'm trying to get my server.log to give me output like this: ... [JAWS] Exists SQL: SELECT COUNT(*) FROM UnitStatus WHERE id=? [JAWS] findAllStatus SQL: SELECT id FROM UnitStatus

Re: [JBoss-user] SQL Query tracing (debug information) in 2.2.1

2001-05-18 Thread danch (Dan Christopherson)
add true to your jaws.xml, at the 'top' level (within the tag, but not in any other. Also, make sure that you're allowing debug level logs to be output. -danch Chris Campbell wrote: > Hi, > > We've recently moved from 2.0_Final to 2.2.1, and are very pleased with > the improvements and add

[JBoss-user] SQL Query tracing (debug information) in 2.2.1

2001-05-18 Thread Chris Campbell
Hi, We've recently moved from 2.0_Final to 2.2.1, and are very pleased with the improvements and added functionality. One thing we can't figure out, however, is how to get SQL query strings to be logged to the console. With 2.0_Final we could see exactly what the container was trying to do (we