473,396 Members | 2,026 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Please help!! Sub Select Problem with MySQL 4.1

Can someone please tell me what is wrong with this statement?

I have upgraded to MySQL 41. and 5.0 and cannot get MySQL to return
the correct results from my database. This same query works correctly
with MS-SQLSERVER.

I have started both 4.1 and 5.0 with the --new function just to be
sure, but I have been told that MySQL does support these statements.

Any help would be greatly appreciated;

select bookings.key1,bookings.surname,bookings.firstname, bookings.bookingseqno,
bookings.filetype from bookings where bookings.bookingseqno in
(select bookingseqno from bookingcharacteristics where
bookingcharacteristics.chartype=1 and
(bookingcharacteristics.charvalue = 2)) and bookings.bookingseqno in
(select bookingseqno from bookingcharacteristics where chartype=2 and
(bookingcharacteristics.charvalue = 3)) order by bookings.key1,
bookings.bookingseqno

It does not return an error, just ALL records, and I know there is
only 1 record that qualifys to be returned.

Are there other switch settings that need to be changed or set in
MySQL?

Thank you much,
Gary Bouchard
ga***@removethis.se.rr.com
Jul 19 '05 #1
0 1131

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Krakatioison | last post by:
Hi all, I need a help to write a simple preg_match. Imagine, I've got like 5kb of text where one part of the text always starts with: and ends with: Number after "[quote:" is always...
4
by: NotYetaNurd | last post by:
Please help me with the following snippet float withdrawal=(objgetWithdrawal is float)? (float)objgetWithdrawal :0; float expence= (objgetSpending is float)? (float)objgetSpending :0; ...
9
by: Fazal | last post by:
Hi, I'am developing a project for training management in a company where the department trains the internal employees. I have been given the job to display the reports. Where I got stuck with...
0
by: daleko | last post by:
Hi All, I have to add to my xml the element that lok like: <smemn:member xmlns:scatm="conceptispuzzles.com/xsd/core/atom" xmlns:xi="http://www.w3.org/2001/XInclude"> I did something like this:...
1
by: shara | last post by:
Hello there, Can anybody please help me with this.I used one php page from where i've sent a variable to other php page thru a hidden field (HTML).In that page i'm able to retrieve the value...
2
by: lazydba | last post by:
hi again, I do have another problem, i do have a database with a peculiar structure. consider these: table 1: calls call_type call_ref client_name contact_name Opportunity ...
4
by: skatemore9690 | last post by:
#1 in Calculus you learned that log(1+x) = x - x^2/2 + x^3/3 - x^4/4 + ... for x in the interval (-1,1] (here x^2 means "x squared", etc.). Write a program which asks the user to type a...
6
by: idev | last post by:
Hi all, Please help me with my stuff. I downloaded python 2.5.1 package from http://blastwave.org it was compiled using Sun Studio 11 for Solaris 8 sparc. My system is Solaris 10 sparc and I...
2
by: alireza6485 | last post by:
Hi, Can you please help me with my assignment.I coded it and it runs I just need someone to help me a bit. The behaviour of monekys and human beings are Similar (Breeding and breathing are...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.