Mailing List
Home
Forum Home
MySQL General - General MySQL discussion
MaxDB - Everything about MaxDB, formerly known as SAP DB
MySQL on Win32 - Runing MySQL on Windows 9x/Me/NT/2000/XP
MySQL++ - Programming with the C++ API to MySQL
ODBC - ODBC with the MySQL Connector/ODBC driver
Java Help - Mostly related to the MySQL Connector/J driver
Perl - Perl support for MySQL with DBI and DBD::mysql
GUI - MySQL GUI Tools
Announcement
Subjects
mysql openssl Question
mysql:it 's a db not a dbms how it 's possible?!
Does the binary log enabling affect the MySQL performances?
Strange behavior, Table Level Permission
FULLTEXT query format question
Preventing Duplicate Entries
Comparing and writing out BLOBS
Executing MySQL Commands From Within C Program
Can 't access mysql after kernel upgrade
Mysql 4 0 Oracle Stored Procedure Trigger Conversion
Downgrade Mysql from 4 to 3 23
MySQL Cluster Software
mysql test 4 1 fails with the gis test
ERROR 2002: Can 't connect to local MySQL server through socket
Getting Identity after INSERT
Update one field with more fields from another table
ERROR 1045: Access denied for user: 'root@localhost ' (Using
password: NO)
mysql have same function mthod as Oracle decode()
 
Search:  
Power your search with and, or, +, -, or "some phrase" operators.
Re: Help in

Re: Help in

2004-12-14       - By Daniel Bronzeri Barbosa

 Back
Jan Theodore,

   The schemas and data-sample are attached.

   I need view the last int_key row grouped by int_phonecall_key.

Tks

Daniel



-- -- Original Message -- --
From: "Jan Theodore Galkowski" <jtgalkowski@(protected)>
To: "Daniel Bronzeri Barbosa" <daniel@(protected)>; "Daniel Bronzeri
Barbosa" <daniel@(protected)>
Cc: <win32@(protected)>
Sent: Tuesday, December 14, 2004 3:17 PM
Subject: [BRMA-ALTO-RISCO] Re: [BRMA-ALTO-RISCO] Re: [BRMA-ALTO-RISCO] Re:
Help in Subquerys...


Please send or post schemas for the tables involved, thanks.
I can get back to you on it by end of day, Eastern Time, USA.

-jtg

On Tue, 14 Dec 2004 15:47:15 -0300, "Daniel Bronzeri Barbosa"
<daniel@(protected)> said:
> An aditional information,
> this query
>
> SELECT max(int_key)
> FROM tbl_hlt_phonecall_historicaldata
> GROUP by int_phonecall_key
>
> Returns 2 rows
>
> int_key
> 184
> 188
>
> tks
>
> Daniel
>
> -- -- Original Message -- --
> From: "Daniel Bronzeri Barbosa" <daniel@(protected)>
> To: "Jan Theodore Galkowski" <jtgalkowski@(protected)>
> Cc: <win32@(protected)>
> Sent: Tuesday, December 14, 2004 3:40 PM
> Subject: [BRMA-ALTO-RISCO] Re: [BRMA-ALTO-RISCO] Re: Help in Subquerys...
>
>
> Jan Theodore,
>
> This query don't running too
>
> SELECT *
> FROM tbl_hlt_phonecall_historicaldata
> WHERE int_key =
> (
> SELECT max(int_key)
> FROM tbl_hlt_phonecall_historicaldata
> GROUP by int_phonecall_key
> )
>
> tks,
>
> Daniel
>
> -- -- Original Message -- --
> From: "Jan Theodore Galkowski" <jtgalkowski@(protected)>
> To: "Daniel Bronzeri Barbosa" <daniel@(protected)>
> Sent: Tuesday, December 14, 2004 2:25 PM
> Subject: [BRMA-ALTO-RISCO] Re: Help in Subquerys...
>
>
> Well, Daniel, for one thing the SQL syntax isn't right.  Try:
>
>     ... WHERE int_key = (select max(int_key) from ...
>
>  -jtg
>
> On Tue, 14 Dec 2004 15:24:55 -0300, "Daniel Bronzeri Barbosa"
> <daniel@(protected)> said:
> > People,
> >
> > How can I run this query in MySQL 4.0???
> >
> > SELECT *
> > FROM `tbl_hlt_phonecall_historicaldata`
> > WHERE int_key in
> > (
> > select max(int_key)
> > from tbl_hlt_phonecall_historicaldata
> > group by int_phonecall_key
> > )

[snip]


--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe:    http://lists.mysql.com/win32?unsub=daniel@(protected)


--
MySQL Windows Mailing List
For list archives: http://lists.mysql.com/win32
To unsubscribe:    http://lists.mysql.com/win32?unsub=mysql@(protected)

Earn $52 per hosting referral at Lunarpages.