[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Query Help



You have one column detail - What do you mean by detail1, detail2 and so?



=========================================================================


On Tue, 11 Feb 2003 13:13:31 +0000, Jeff Snoxell <suppressed> wrote:

Hi,

How can I write a MySQL query to grab single lines of the form:

ColumnNames: EnquiryID, Name, Address, Detail1, Detail2, Detail3, Detail4

From two joined tables:

Tbl1: Enquiries
--------------
ID
Name
Address
Etc
----------------

Tb12: Details
----------------
ID
EnquiryID
Detail
Etc
----------------

There is an imposed maximum number of details per enquiry (say 4 for this example).

Many thanks,


Jeff


---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php   (the manual)
http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <suppressed>
To unsubscribe, e-mail <mysql-unsubscribe- suppressed>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php





---------------------------------------------------------------------
Before posting, please check:
  http://www.mysql.com/manual.php   (the manual)
  http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <suppressed>
To unsubscribe, e-mail <suppressed>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.