Finding most recent date only

2003-12-03 Thread Alec Smith
Hi all - I've got a database along the lines of the following -- | Transactions | | Products | | TransDetails | -- | TransID | | ProdID | | TransID | | TransDate| | ProdName | |

Selecting unique values:K@N@!:

2003-07-28 Thread Alec Smith
I have two tables as below: CREATE TABLE domain_types ( type_id INT(4) NOT NULL AUTO_INCREMENT, name VARCHAR(10) UNIQUE NOT NULL, description VARCHAR(75), PRIMARY KEY(type_id) ) TYPE=INNODB COMMENT="Types of domains we store"; CREATE TABLE domains ( domain_id INT(6) NOT NULL AUTO_INCREM

Re: Selecting unique values

2003-07-26 Thread Alec Smith
ns d > where t.type_id = d.type_id > group by t.name > order by t.type_id > > or something with a 'join on t.type_id = d.type_id' > > -yves > > > -Ursprüngliche Nachricht- > Von: "Alec Smith" <[EMAIL PROTECTED]> > An: <[EMAIL

Selecting unique values

2003-07-25 Thread Alec Smith
I have two tables as below: CREATE TABLE domain_types ( type_id INT(4) NOT NULL AUTO_INCREMENT, name VARCHAR(10) UNIQUE NOT NULL, description VARCHAR(75), PRIMARY KEY(type_id) ) TYPE=INNODB COMMENT="Types of domains we store"; CREATE TABLE domains ( domain_id INT(6) NOT NULL AUTO_INCREM

Selecting unique values

2003-07-25 Thread Alec Smith
I have two tables as below: CREATE TABLE domain_types ( type_id INT(4) NOT NULL AUTO_INCREMENT, name VARCHAR(10) UNIQUE NOT NULL, description VARCHAR(75), PRIMARY KEY(type_id) ) TYPE=INNODB COMMENT="Types of domains we store"; CREATE TABLE domains ( domain_id INT(6) NOT NULL AUTO_INCREM

Lost connection to MySQL server during query

2003-06-06 Thread Alec Smith
Hi - [Perhaps not exactly the right list, but [EMAIL PROTECTED] doesn't seem to be too active, so I'm hoping someone here might be able to offer some insight.] I'm getting the below error when trying to connect to a MySQL 4.0.12 server on RedHat 9 using a Perl script: DBI connect('mailers:192.16

Problems with date arithmatic

2001-11-26 Thread Alec Smith
I've got a table containing dates as follows (number of rows edited for length) mysql> select * from chat_schedule; +-+--+-+ | schedule_id | model_id | timeslot| +-+--+-+ | 1 |2 | 2001-11

Problems with date arithmatic

2001-11-26 Thread Alec Smith
I've got a table containing dates as follows (number of rows edited for length) mysql> select * from chat_schedule; +-+--+-+ | schedule_id | model_id | timeslot| +-+--+-+ | 1 |2 | 2001-11

RE: Web Hosting

2001-11-01 Thread Alec Smith
You might also take a look at Z3 Internet (www.z3.com). I've had zero problems dealing with them for several years now without problem. Its easy to get custom packages at affordable rates, and tech support (on the rare occasion its actually needed) is first rate. The sysadmins have even gone so fa

RE: Proper date query conversion structure?

2001-06-04 Thread Alec Smith
, '%M %d, %Y') FROM guestboo k; ++---+--+ | name | city | DATE_FORMAT(post_timestamp, '%M %d, %Y') | ++---+--+ | Alec Smith | Lyndhurst | June 04, 2001

Proper date query conversion structure?

2001-06-04 Thread Alec Smith
What would be the correct query to convert a date stored in MySQL in a DATETIME field to month_name month_date, year format at the same time I'm pulling a bunch of other data from the same row as the field with the date I need converted? I've tried something like the below without success: SELECT

How to structure a random query

2001-04-18 Thread Alec Smith
I'm just starting to learn SQL and MySQL, and am curious as to how the following query might be built. I've got a table of X rows, each with a unique ID as determined by auto_increment when the row is inserted into the database. How would I go about doing a SELECT on a row of the database and hav

Installation on RH7 box

2001-03-12 Thread Alec Smith
As the RPMs available on the MySQL site are built against RH6.x libraries, is there someplace where I can get versions linked against RedHat 7 libraries? RedHat themselves don't seem to have anything newer than 3.23.32 whereas I'd like to use 3.23.34. Yeah yeah, I know I should have installed

Installation on RH7 box

2001-03-12 Thread Alec Smith
As the RPMs available on the MySQL site are built against RH6.x libraries, is there someplace where I can get versions linked against RedHat 7 libraries? RedHat themselves don't seem to have anything newer than 3.23.32 whereas I'd like to use 3.23.34. Yeah yeah, I know I should have installed