Problem with a query - help!!?

2003-02-03 Thread David Phipps
Hi, I am new to this list so I apologise if this is not the place to post this message. I am in the final stages of completing a project and I have one query that is causing problems. I need the query to get a story or stories from the story table and journalists from the journalist table

query help

2003-01-23 Thread Johnny Withers
I'm pretty sure that I have two queries that could be combined into one query using a JOIN, but I can not figure out how to do it. Basically, I need all the rows from TABLE1 that are either NOT in TABLE2 or IN TABLE2 BUT have been marked as voted by a user id. Yes, that makes no sense, I'll try

relational tables query help

2003-01-20 Thread Justin French
Hi all, I have three tables: partners (id,name,url,desc) services (id,desc,category) partner_service_rel (pid,sid) Each partner offers a range of services, and each services has an id, description, and category. Now, it's EASY to search for partners that offer a certain service, but I can't

Re: relational tables query help

2003-01-20 Thread Natale Babbo
because there isn't any partners table in the FROM clause! --- Justin French [EMAIL PROTECTED] ha scritto: Hi all, I have three tables: partners (id,name,url,desc) services (id,desc,category) partner_service_rel (pid,sid) Each partner offers a range of services, and each services

Query ?? Help !!!

2002-12-16 Thread mpalikko
Hello All, Great list ! MySQL = Incredible Product ! I've been trying to come up with a SQL query to perform the following... Table - Contact ClientID Activity1 Activity2 Activity3 Activity4 Time1 Time2 Time3 Time4 Date I need to get a total of all the activities and their associated time

Complicated query. query help

2002-11-13 Thread TimeWalker
I've been trying to work out a complicated query to select and sum multiple columns in one select using a condition and multi column group by What I expected to get was ONE row with the columns summed . this query returns 5 rows SELECT

Re: Complicated query. query help

2002-11-13 Thread Roger Baklund
* TimeWalker I've been trying to work out a complicated query to select and sum multiple columns in one select using a condition and multi column group by What I expected to get was ONE row with the columns summed . this query returns 5 rows SELECT

Re: Query Help

2002-11-01 Thread Cory Hicks
Jeff, Try a JOIN: http://www.mysql.com/doc/en/JOIN.html or for some good articles: http://www.onlamp.com/pub/ct/19 HTH! Cory On Fri, 2002-11-01 at 10:01, jeff wrote: Hello I am having some trouble writing a query that will pull the information I need from the database. I hope it's

RE: Need a little query help

2002-10-29 Thread Anderson, Alan R
-Original Message- From: Chris Mason [mailto:masonc;masonc.com] [...] The problem is, it is easy to test for one amenity, but I need to test that the hotel has all of the amenities. The query above returns all the hotels that have ANY of the amenities, I need the hotels having ALL

Re: Need a little query help

2002-10-29 Thread Clemente
://www.clementezamora.com) Chris Mason [EMAIL PROTECTED] wrote: Asunto: Need a little query help Fecha: Mon, 28 Oct 2002 08:08:41 -0400 De: Chris Mason [EMAIL PROTECTED] A: [EMAIL PROTECTED] I am trying to select some data from a hotel database I am putting on the web. Currently I am using two

Need a little query help

2002-10-28 Thread Chris Mason
I am trying to select some data from a hotel database I am putting on the web. Currently I am using two temporary tables and three queries to get the data, but I suspect it can be done in one query by a better knowledge of SQL. The tables are Hotels: ID, PostCode, ShowHotel AmenityLink: ID,

RE: self relation query help

2002-10-28 Thread Arthur Fuller
, October 26, 2002 6:43 AM To: Franklin Williams Jr.; [EMAIL PROTECTED] Subject: Re: self relation query help Franklin, the basic relational rules (http://hometown.aol.com/mbaddenda/art120.html, http://www.cs.sfu.ca/CC/354/zaiane/material/notes/Chapter7/node1.html) say, decompose relationships like your

RE: self relation query help

2002-10-28 Thread Franklin Williams Jr.
This is probably going more into db design than pure mysql issues...on the other hand if performance is at stake with these different designs. After several inputs - which I am EXTREMELY thankful for - here are some of my thoughts. The solution using Joseph's table aliases works beautifully.

self relation query help

2002-10-26 Thread Franklin Williams Jr.
I have a table with names in it where the names can function as 1 of 2 things - either an artist or a group. In order to make searching easy I wished to keep these names in one table. EG: searching for artist name, whether a group or soloist you would have to search only one table. The problem

Re: self relation query help

2002-10-26 Thread Peter Brawley
- From: Franklin Williams Jr. [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 25, 2002 9:44 PM Subject: self relation query help I have a table with names in it where the names can function as 1 of 2 things - either an artist or a group. In order to make searching easy I wished

Re: self relation query help

2002-10-26 Thread Joseph Bueno
Franklin Williams Jr. wrote: I have a table with names in it where the names can function as 1 of 2 things - either an artist or a group. In order to make searching easy I wished to keep these names in one table. EG: searching for artist name, whether a group or soloist you would have to

mysql query help

2002-10-23 Thread Kevin
Hello, I have the following table structure and need assistance on a mysql query: Members MemberID (unique) Name Address Credits CreditID MemberID Project Title Credit_Images = ImageID CreditID Location Comments Showroom = ShowroomID MemberID Size Comments

Re: query help

2002-10-09 Thread Niclas Hedhman
Maybe I'm way out here, but this happens to me (or similar) quite often. My solution; SELECT DISTINCT And a single row will be returned for each. Niclas On Tuesday 08 October 2002 21:48, Michael Knauf/Niles wrote: Here's a query for ya: SELECT products.product_name, products.fg_number,

query help

2002-10-08 Thread Michael Knauf/Niles
Here's a query for ya: SELECT products.product_name, products.fg_number, products.product_description, specs.spec_name, specs.spec_value FROM products LEFT JOIN specs ON products.fg_number = specs.fg_number WHERE products.fg_number='fg00914'; and here's the result:

Re: query help

2002-10-08 Thread Michael T. Babcock
Michael Knauf/Niles wrote: I get 7 rows of data I don't want, then the 7 rows of data I do want... and after scratching my head for awhile, I've come to the conclusion that I do not understand the query structure. (the query came from multiple suggestions in response to my last posting on this

Re: query help

2002-10-08 Thread Michael Knauf/Niles
Subject: Re: query help 10/08/02 11:40 AM

Re: query help

2002-10-08 Thread Michael T. Babcock
Michael Knauf/Niles wrote: What I _really_ want is the combination of your two querys, that is, product_name, product_description, from the product table + all the specs related to the product from the specs table , based on the fg00914 number. Are you sure? :-) As I pointed out, if the first

RE: query help

2002-10-08 Thread Javier Campoamor
: [EMAIL PROTECTED] Asunto: query help Here's a query for ya: SELECT products.product_name, products.fg_number, products.product_description, specs.spec_name, specs.spec_value FROM products LEFT JOIN specs ON products.fg_number = specs.fg_number WHERE products.fg_number='fg00914

Re: query help

2002-10-08 Thread Michael Knauf/Niles
Subject: Re: query help 10/08/02 12:08 PM

Re: query help

2002-10-08 Thread John Ragan
keep looking for the books and help, but there's another resource for you while you're learning, and it's free. if you have a windows machine that you can use as a front end to your mysql server (or any other database), go to http://corereader.com/ . after you connect to your database,

SQL Query Help

2002-10-04 Thread David McInnis
Can someone please help me with the following? Normally I would do this with a nested select, but since this is not available in MySQL I think I need help. Here is what I have: An order table with sales tax total and an orderdetail table with ordered, itemid and qty. What I need to do is form

Re: Query help

2002-10-04 Thread Michael T. Babcock
David McInnis wrote: select tax from orders, orderdetail where orders.id = orderdetail.orderid and (productid = 1 or productid = 2 or productid = 3) I can get multiple tax amounts where an order has multiple matching records in orderdetail. I know that I can group by order.id, but what I

RE: Query help

2002-10-04 Thread David McInnis
) | grp_id | varchar(10) | grp_pwd| varchar(10) ++--- -Original Message- From: Michael T. Babcock [mailto:[EMAIL PROTECTED]] Sent: Friday, October 04, 2002 1:00 PM To: '[EMAIL PROTECTED]' Subject: Re: Query

Re: Query Help

2002-10-04 Thread Michael T. Babcock
So you want a SQL QUERY something like: SELECT ORDERDETAIL.id as detailid, qty, unitcost, unitcost * qty as extended from ORDERDETAIL LEFT JOIN ORDERS ON orderid = ORDERS.id WHERE ... Right? What's the problem you have with tax requests that you hinted at last time? David McInnis

RE: Query help

2002-10-04 Thread David McInnis
[mailto:[EMAIL PROTECTED]] Sent: Friday, October 04, 2002 2:19 PM To: David McInnis Cc: [EMAIL PROTECTED] Subject: Re: Query help So you want something like: SELECT ORDERDETAIL.id as detailid, qty, unitcost, unitcost * qty as extended from ORDERDETAIL LEFT JOIN ORDERS ON orderid = ORDERS.id

Re: SQL Query Help

2002-10-04 Thread Shane Allen
On Fri, Oct 04, 2002 at 12:36:30PM -0700, David McInnis wrote: Can someone please help me with the following? Normally I would do this with a nested select, but since this is not available in MySQL I think I need help. Here is what I have: An order table with sales tax total and an

Query help

2002-08-15 Thread Donna Robinson
filter fodder: sql, query Hi all, I feel like I am probly being amazingly stupid, but here goes nothing. I have 3 tables: students undergrads postgrads students holds all common info. eg dt_matric, dob, religion, etc. undergrads hold eg. degree, subject postgrads holds eg. transfer_date,

Re: SQL query help

2002-07-13 Thread Erick Papadakis
Hi Craig, you wrote--- select B.name,C.name from lookuptable A, user B, cat C where A.user = B.id and A.category = C.id and A.category in (3,5); The problem I see is that records come back where a user is in category 3 or category 5. How do I limit records

SQL query help

2002-07-12 Thread Craig Coles
I know this is an off topic question, but wondered if anyone might have a moment to help. I wouldn't ask if I could do a sub-select... I am using mysql v3.23.51 and have a table I need to display the information of users who are working in both category 3 and category 5. Table def looks kind

mySQL query help please

2002-06-24 Thread Peter M. Perchansky
Greetings: RE: mySQL query help please INSERT INTO Customer_Equipment SELECT Customer.ID, Server_ID, Configuration, Equipment_Type, Group_ID, Location, Rack_Location, Network_Status_Name, Creator_ID, Primary_IP_Address FROM Customer_Equipment, Customer WHERE SUBSTRING(Server_ID, 5,4

RE: mySQL query help please

2002-06-24 Thread Jay Blanchard
[snip] INSERT INTO Customer_Equipment SELECT Customer.ID, Server_ID, Configuration, Equipment_Type, Group_ID, Location, Rack_Location, Network_Status_Name, Creator_ID, Primary_IP_Address FROM Customer_Equipment, Customer WHERE SUBSTRING(Server_ID, 5,4) = Customer.User_ID; The select statement

RE: mySQL query help please

2002-06-24 Thread Peter M. Perchansky
Greetings Jay: RE: mySQL query help please I love rules that don't make sense ;-) So if the end result is to have the records selected appended to the Customer_Equipment table, I have to make a temporary table based on the characteristics of the Customer_Equipment table... then insert from

RE: mySQL query help please

2002-06-24 Thread Jay Blanchard
[snip] So if the end result is to have the records selected appended to the Customer_Equipment table, I have to make a temporary table based on the characteristics of the Customer_Equipment table... then insert from that temporary table. Correct? [/snip] BINGO! Goofy rules can be frustrating

Re: Mysql query help needed!!

2002-06-16 Thread Zak Greant
Hi Chris, On Fri, 2002-06-14 at 02:08, Chris Kay wrote: I have a rather longer query which I would like to get all records past todays date. Here is my query $ttwo = date(YmdGi); snip

Mysql query help needed!!

2002-06-13 Thread Chris Kay
I have a rather longer query which I would like to get all records past todays date. Here is my query $ttwo = date(YmdGi); $abc = select detail.*, type.type_name, status.status_name, staff.staff_name,

mysql query help

2002-06-06 Thread Scott Raley
I need some help... The query below runs fine in access, when running it in mysql it tells me the column wrainfo.wuc doesn't exist in the having clause.. can't figure out why its giving me this error. the column is in the select statement... any ideas? The column does exist.. I'm looking at

RE: mysql query help

2002-06-06 Thread Cal Evans
PROTECTED]] Sent: Thursday, June 06, 2002 7:23 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: mysql query help I need some help... The query below runs fine in access, when running it in mysql it tells me the column wrainfo.wuc doesn't exist in the having clause.. can't figure out why

RE: mysql query help

2002-06-06 Thread Scott Raley
] To: Scott Raley/LPEC/ASD/SEMCORINC@SEMCOR INC., [EMAIL PROTECTED], [EMAIL PROTECTED] cc: Subject: RE: mysql query help I've not looked over your query in-depth so I may be off-base here. Try removing the parentheses from the FROM clause and see if that makes it work. =C= * * Cal

More Query Help

2002-06-05 Thread Daren Cotter
First off, I would like to thank everyone on this lists who helps people like myself! I'm having trouble with the following query: SELECT username, first_name, email, DATE_FORMAT(signup_date, '%b %e, %Y') AS signup_date FROM members WHERE referer = (id) It selects a list of all members from the

More Query Help [more info]

2002-06-05 Thread Daren Cotter
I probably did not provide enough info the first time. The members table is setup as follows: Id (primary key) Referer (relates to the primary key of the table) I am given a member ID, say 4. I need to display all members who have been referred by member 4 (obviously no problem). However, for

Re: More Query Help

2002-06-05 Thread Benjamin Pflugmann
Hi. On Wed 2002-06-05 at 13:37:22 -0500, [EMAIL PROTECTED] wrote: [...] It selects a list of all members from the database referred by a certain member. However, the query needs to be modified to also select the number of people that person has referred. I planned to just send another query

Query Help (more)

2002-05-31 Thread Daren Cotter
As a follow up to my previous question, two possible solutions came to mind: 1) Query members table for all members matching criteria stored in that table (country, marital status, income, etc). Then, take all those member_ids, and query member_interests table for members who match there. i.e.,

SQL query help

2002-05-29 Thread Mike Macias
I've been trying to solve this problem for a couple of days now. I've only started with DB's a month ago so I am no expert in SQL. So, I present this problem to you guys in hopes of getting a solution. Thanks in advance, Mike = Question: = Using the query below I get the result

sql,query help with performing an update on a SET datatype

2002-05-28 Thread Jason
OK, I cannot find this sql query on the website or in any of my manuals. I have a table that contains a set datatype eg CREATE TABLE testjason ( ID int(11) NOT NULL auto_increment, SomeSetColumn set('a','b','c') NOT NULL default '', ) TYPE=MyISAM; I neet to perform an UPDATE on this

Re: Query Help Needed

2002-05-23 Thread Matthew Walker
sql,query I have a table with the following structure: CREATE TABLE cartconfig_module ( UserID int(10) unsigned NOT NULL default '0', GroupID int(10) unsigned NOT NULL default '0', SiteID int(10) unsigned NOT NULL default '0', Perms enum('Modify','View','Deny') NOT NULL default 'View',

Query help

2002-05-21 Thread Adriano Manocchia
I can't seem to properly wrap my brain around left joins. If anyone knows of a good tutorial somewhere, I'd appreciate it. That having been said, I was hoping someone could help with this query I'm trying to do as I've been horribly unsuccessful. 3 tables: goal (own goals), goalopp (opponent

Re: Query help

2002-05-21 Thread Harrison C. Fisk
, 2002 1:38 PM Subject: Query help I can't seem to properly wrap my brain around left joins. If anyone knows of a good tutorial somewhere, I'd appreciate it. That having been said, I was hoping someone could help with this query I'm trying to do as I've been horribly unsuccessful. 3 tables

alter table - query help

2002-04-09 Thread Aman Raheja
Hello everyone I want to alter 50 tables, and for each the names start with the string 'mak' Is there an SQL query, so that I can do the change in one command. I have tried using wildcards - they don't seem to work in SQL. Thanks in advance. Aman

RE: Query help

2002-04-04 Thread Rick Emery
SELECT * FROM mytable WHERE first_name=$first last_name=$last -Original Message- From: Chuck Barnett [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 10:28 AM To: [EMAIL PROTECTED] Subject: Query help Hi. I have two fields, firstname, lastname. I populate a select box

RE: Query help

2002-04-04 Thread Luc Foisy
can even store an alternate value (that being the id) already -Original Message- From: Chuck Barnett [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 12:21 PM To: Rick Emery; [EMAIL PROTECTED] Subject: Re: Query help This will not work for my example. I have a select box

Re: Query help

2002-04-04 Thread John Klein
[EMAIL PROTECTED] wrote: This will not work for my example. I have a select box that was populated from the db with firstname lastname. The option tag has the value of firstname+lastname then. Here lies the problem, when I build the query, I have no way of distinguishing firstname and

Re: Query help

2002-04-04 Thread Lance Uyehara
first_name=$first last_name=$last -Original Message- From: Chuck Barnett [mailto:[EMAIL PROTECTED]] Sent: Thursday, April 04, 2002 10:28 AM To: [EMAIL PROTECTED] Subject: Query help Hi. I have two fields, firstname, lastname. I populate a select box with the firstname

RE: SQL Query Help

2002-04-03 Thread Danis Stéphane (NHQ-AC)
[mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 02, 2002 3:47 PM To: Danis Stéphane (NHQ-AC); [EMAIL PROTECTED] Subject: Re: SQL Query Help Stéphane, I have INVOICE table here is the layout: +-+---+--+-+-+-- --+ | Field

Re: SQL Query Help

2002-04-03 Thread denonymous
From: Danis Stéphane (NHQ-AC) [EMAIL PROTECTED] My best code is this: SELECT SUM(invoice_amount), state, statement_date FROM invoice GROUP BY state, statement_date The results are have followed: snip The main problem is the layout and the order of the results set. I will have 9 state

Re: SQL Query Help

2002-04-03 Thread DL Neil
Stéphane, Answers: There are nine different states (and there are 12 months). * The main problem is the layout and the order of the results set. I will have 9 state (provinces) and I would prefer the month to be the columns. The ideal results would look like this, Please note I have only

RE: SQL Query Help

2002-04-03 Thread Danis Stéphane (NHQ-AC)
PROTECTED] Subject: Re: SQL Query Help Stéphane, Have just re-read my response... * The main problem is the layout and the order of the results set. I will have 9 state (provinces) and I would prefer the month to be the columns. The ideal results would look like this, Please note I have only

SQL Query Help

2002-04-02 Thread Danis Stéphane (NHQ-AC)
I have INVOICE table here is the layout: +-+---+--+-+-+-- --+ | Field | Type | Null | Key | Default | Extra | +-+---+--+-+-+-- --+ | ID

Re: SQL Query Help

2002-04-02 Thread DL Neil
Stéphane, I have INVOICE table here is the layout: +-+---+--+-+-+-- --+ | Field | Type | Null | Key | Default | Extra | +-+---+--+-+-+--

Re: query help

2002-03-26 Thread Chuck Barnett
- Original Message - From: [EMAIL PROTECTED] To: Chuck Barnett [EMAIL PROTECTED] Sent: Tuesday, March 26, 2002 2:09 PM Subject: Re: query help Your message cannot be posted because it appears to be either spam or simply off topic to our filter. To bypass the filter you must include

Re: query help

2002-03-26 Thread Christopher Thompson
[For the spam-bot: Go away, you annoying little beast. You know I'm not posting spam so stop querying me about it and let's get back to the topic at hand; sql] On Sunday 03 February 2002 1:27 pm, Chuck Barnett wrote:   Hi, I have a db field that holds the first and last name of a person.  Is

RE: SQL QUERY help joining three tables

2002-03-16 Thread Roger Baklund
* John Hughes I have three tables: students has student_id and student_name parents has parent_id and parent_name parentlog has student_id and parent_id I want to search the parentlog WHERE student_id = some_id GROUP BY parent_id (This will bring back two rows when there are two

SQL QUERY help joining three tables

2002-03-15 Thread John Hughes
SQL QUERY question I have three tables: students has student_id and student_name parents has parent_id and parent_name parentlog has student_id and parent_id I want to search the parentlog WHERE student_id = some_id GROUP BY parent_id (This will bring back two rows when there are two

Query help please!

2002-03-05 Thread PinkeshP
I need help writing query that would give me parent categories of catID from categories table. For example, if catID=030 then it should give me: Birthday | Special Birthday | Special Birthday If catID=028 Birthday | General Birthday | NULL desc categories

RE: Query help please!

2002-03-05 Thread Todd Williamsen
Do you have another table with all the birthdates in it? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 12:05 PM To: [EMAIL PROTECTED] Subject: Query help please! I need help writing query that would give me parent categories

RE: Query help please!

2002-03-05 Thread Todd Williamsen
One more thing... What are you using to pull the data? PHP? Perl? Etc? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 05, 2002 12:05 PM To: [EMAIL PROTECTED] Subject: Query help please! I need help writing query that would give me parent

Query Help

2002-02-23 Thread PinkeshP
Hi, I've got item table as follwoing: itemno|item_name 1 item one 2 item two 3 item three 4 item four 2 item two 3 item three I want to right a query so I get three rows of each item I specify in WHERE for example SELECT itemname from

Re: Query Help

2002-02-23 Thread DL Neil
Hi Pinkesh, I've got item table as follwoing: itemno|item_name 1 item one 2 item two 3 item three 4 item four 2 item two 3 item three I want to right a query so I get three rows of each item I specify in WHERE for example

Query Help

2002-02-20 Thread Web boy
Hello I have a query that goes through and gets the data out of three tables without a problems. Now the task at hand is to compair that out put against three identiacal tables not displaying any duplicate date. Tables: a a.aocode , a.CaseNo , a.CaseName b. b.ao_code , b.initials c

Re: Query Help

2002-02-20 Thread Tod Harter
On Wednesday 20 February 2002 09:20, Web boy wrote: You want to use UNION. If I remember correctly its a fairly new feature for MySQL, but its a standard SQL thing. From the manual: SELECT ... UNION [ALL] SELECT ... [UNION SELECT ...] UNION is implemented in MySQL 4.0.0. UNION is used

Re: Query Help

2002-02-20 Thread Web boy
Is there another way as I do not have that version of MYSQL installed on my server? THanks- KCK --- Tod Harter [EMAIL PROTECTED] wrote: On Wednesday 20 February 2002 09:20, Web boy wrote: You want to use UNION. If I remember correctly its a fairly new feature for MySQL, but its a standard

Exclusion Query help

2002-02-12 Thread John Rosendahl
I am trying to run a query I have a table Records |Record_ID| |Phase_ID | |Record_Date| I need to find the records that have a record date between date1 and date 2 but exclude the records with

RE: Exclusion Query help

2002-02-12 Thread Rick Emery
Query help I am trying to run a query I have a table Records |Record_ID| |Phase_ID | |Record_Date| I need to find the records that have a record date between date1 and date 2 but exclude

RE: Exclusion Query help

2002-02-12 Thread Rick Emery
Query help I am trying to run a query I have a table Records |Record_ID| |Phase_ID | |Record_Date| I need to find the records that have a record date between date1 and date 2 but exclude

RE: Exclusion Query help

2002-02-12 Thread Rick Emery
Query help I am trying to run a query I have a table Records |Record_ID| |Phase_ID | |Record_Date| I need to find the records that have a record date between date1 and date 2 but exclude

RE: Exclusion Query help

2002-02-08 Thread Rick Emery
into the selection of record 2? -Original Message- From: John Rosendahl [mailto:[EMAIL PROTECTED]] Sent: Friday, February 08, 2002 12:53 PM To: [EMAIL PROTECTED] Subject: Exclusion Query help I am trying to run a query I have a table Records |Record_ID

RE: Join Query Help

2002-01-07 Thread Ramaraju.R.V
you. Thanks, Rama Raju -Original Message- From: udayashankarl_n [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 9:38 AM To: Etienne; [EMAIL PROTECTED] Subject: RE: Join Query Help Hi, The below mentioned query, select eventartists.eaDnID,djnames.dnName,eventartists.eaDn2ID

Join Query Help

2002-01-06 Thread Etienne
Hello, I'm back to the list after two weeks off. I have a little problem, the email may seem long but it's clearly explained step by step what I've done... I have a table that have artists playing at events. It's called eventartists. One artist can play alone, or with another artist. Because

RE: Join Query Help

2002-01-06 Thread udayashankarl_n
: Etienne [mailto:[EMAIL PROTECTED]] Sent: Monday, January 07, 2002 9:14 AM To: [EMAIL PROTECTED] Subject: Join Query Help Hello, I'm back to the list after two weeks off. I have a little problem, the email may seem long but it's clearly explained step by step what I've done... I have a table that have

Query help

2001-12-24 Thread David Wolf
I need to replace some data with data from a backup. Here's the scenerio... I have 2 databases. a and abak a and abak are the same (but, ones a few hours old with the right data ;) ) a and abak have a table, posts and a field 'attach'. I'd like to take the data from abak.posts.attach and

Query help

2001-12-20 Thread Mattias Persson
I have two tables, one for the articles and one with orderrows. When I update the price in the article table i want to make a query to update the price in orderrows on all rows with a certain orderstatus. I can't figure out how to write this query... I tried UPDATE orderrows SET price =

Re: Query help

2001-12-20 Thread Carl Troein
Mattias Persson writes: I have two tables, one for the articles and one with orderrows. When I update the price in the article table i want to make a query to update the price in orderrows on all rows with a certain orderstatus. Can anyone please help me!!! From the manual: [...] new

difficult query help

2001-12-18 Thread Henning Sprang
Hy, I have a question on how to build a query. scenario: I have three tables, Users: -- user_id INT(32), username CHAR(64) Tasks: -- task_id(INT32), task_name CHAR(64) Authorization: -- user_id INT(32), task_id INT(32) some details of database design are neclected

RE: difficult query help

2001-12-18 Thread Roger Baklund
* Henning Sprang Now I want to create a query to get all task_id's which one given User isn't already assigned to. I tried a lot of things, Joined in every direction and so but do not come to my result. The problem in this situation is that you want to join with records that are not there. I

Re: [PHP-DB] MYSQL query help

2001-12-14 Thread Miles Thompson
It's not the IN, it's the sub-query you cannot use. MySQL doesn't support them and it's just about the main reason I don't like it. Alternatives? You could execute your subquery and return the results to an array. Loop through the array, using the index and the indexed element to drive a

MYSQL query help

2001-12-14 Thread Harpreet
I dont think we can use 'IN' and 'NOT IN' in mysql. Is there an alternative that would work? select * from lib_asset_tbl where material_id '' and asset_id in (select asset_id from lib_copy_tbl) Help is appreciated. Regards, Harpreet Kaur Software Developer Crispin Corporations Inc.

Re: MYSQL query help

2001-12-14 Thread Sinisa Milivojevic
Harpreet writes: I dont think we can use 'IN' and 'NOT IN' in mysql. Is there an alternative that would work? select * from lib_asset_tbl where material_id '' and asset_id in (select asset_id from lib_copy_tbl) Help is appreciated. Regards, Harpreet Kaur Software Developer Crispin

FW: need query help

2001-11-28 Thread Kenny
I am currently running an online golf tournament on an NT server with an Access database and asp pages. I have access to a Unix server that supports asp script and mySQL database and I'd like to move my tour site (for several reasons) but the SQL statements don't all work. The following statement

FW: need query help

2001-11-28 Thread Kenny
I am currently running an online golf tournament on an NT server with an Access database and asp pages. I have access to a Unix server that supports asp script and mySQL database and I'd like to move my tour site (for several reasons) but the SQL statements don't all work. The following statement

QUERY HELP - IF THEN ELSE

2001-11-13 Thread Pawandeep Lamba
Hi... I want to output results based on the query from 3 tables ( described here ) TABLE 1 SUBID (SAME AS IN TABLE 2) ID FILE DATE DISCIPLINE (SAME AS IN TABLE 3) TABLE 2 NAME SUBID (SAME AS IN TABLE 1) TABLE 3 NAME EMAIL

RE: QUERY HELP - IF THEN ELSE

2001-11-13 Thread Rick Emery
- From: Pawandeep Lamba [mailto:[EMAIL PROTECTED]] Sent: Tuesday, November 13, 2001 9:56 AM To: [EMAIL PROTECTED] Subject: QUERY HELP - IF THEN ELSE Hi... I want to output results based on the query from 3 tables ( described here ) TABLE 1 SUBID (SAME AS IN TABLE 2) ID

Need query help

2001-10-31 Thread mickalo
Hello all, I have 3 tables I need to join to extract certain data base on the acct_days in the active table '6' days. QUERY: SELECT CONCAT(m.fname,' ',m.lname) AS name, m.email,m.zip,p.paytype,p.event,p.paydate FROM members m LEFT JOIN payhistory p ON p.memid = m.memid LEFT JOIN active a ON

RE: Need query help

2001-10-31 Thread Quentin Bennett
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Thursday, 1 November 2001 4:22 p.m. To: [EMAIL PROTECTED] Subject: Need query help Hello all, I have 3 tables I need to join to extract certain data base on the acct_days in the active table '6' days. QUERY: SELECT CONCAT

Re: Query help...

2001-10-30 Thread Steve Meyers
David, First of all, please post to the list in the future. I'm not always available to help with problems, and others may benefit from the problem/solution. I would change your query to the following: SELECT DISTINCT a.addrdsp,a.listdate,a.solddate,a.lpricea,a.sprice FROM archive a,

RE: Query help...

2001-10-26 Thread Woolsey, Fred
Hussain K.M. [mailto:[EMAIL PROTECTED]] Sent: Thursday, October 25, 2001 1:23 AM To: [EMAIL PROTECTED] Subject: Re: Query help... Hi Mr. David, I hope a bit of explanation for Steve Mayers' solution would help you. The query by Mayers select distinct a.username, a.ip from users a, users b where a.ip

RE: Query help...

2001-10-26 Thread Steve Meyers
: Thursday, October 25, 2001 9:58 AM To: [EMAIL PROTECTED] Subject: RE: Query help... Quite a neat trick... but might there be problems with cross join performance if the table is large? This is based on the assumption that MySQL first creates the cross product, then culls out the rows

<    1   2   3   4   5   6   >