473,320 Members | 1,600 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,320 software developers and data experts.

mysql query returns null value

107 100+
can anybody tell me why the following query returns null value.
Expand|Select|Wrap|Line Numbers
  1. SELECT *
  2. FROM yjdf4_tbltenders AS a
  3. LEFT JOIN yjdf4_tblclass AS b ON a.cls = b.clid
  4. LEFT JOIN yjdf4_tblcategory AS c ON a.wcategory = c.catid
  5. LEFT JOIN (yjdf4_tblclient AS d JOIN yjdf4_tblclscategory  AS e ON d.clcatid = e.clsid
  6. ) ON a.clientagency = d.cid
  7. LEFT JOIN yjdf4_tblpaper AS f ON a.paper = f.pid
  8. LIMIT 0 , 30
  9.  
there are 3 columns in tblclass, these 3 columns returns null value. I have corresponding records in this table yet it returns null. I wonder why? All other tables returns values normally.

Please help me on this issue as its an emergency.
Jul 4 '12 #1
3 2620
Rabbit
12,516 Expert Mod 8TB
To even begin to offer help, we need to know the table structure and get some sample data.
Jul 4 '12 #2
raamay
107 100+
sorry guys troubling you all. infact the problem was within the underlying data in the db. i had deleted the data with the used id from the master table thats why it was returning null. With it now i am trying to find out how i can enforce integrity constraint so that i will not be able to delete records from the master tables if it is referenced in other tables.
Jul 6 '12 #3
Rabbit
12,516 Expert Mod 8TB
That's a different question. You'll have to create a new thread for that. Forum policy is one question per thread.
Jul 6 '12 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: joemyre | last post by:
Hi everyone, What I'm trying to do is take php variables i got from user input, and pass them as the MySQL query terms. $query = "select * from ident where ".$searchtype1."=".$searchterm1."";...
6
by: Brian Richmond | last post by:
I'm trying to use a regular expression to match a hidden html tag and replace it with the results of a mysql query. The query is based off a part of the hidden tag. For example: The article...
0
by: taras.di | last post by:
Hi everyone, I've come across an extremely strange problem. The exact same query in both mysql command line client, and mysql query browser gives entirely different results. I was hoping someone...
10
by: molen malat | last post by:
i have a query with 4 fields, and a form based on it. i put another 4 textbox to get criteria to filter the query. the query runs normally when all the textbox have a value (not null) but when one or...
1
by: Macbane | last post by:
Hi There, I have a main form that with a subform which is based on a parameter query. I have 2 controls on the main form & which are used as parameters in the query. It all works fine and...
1
by: djdarpan | last post by:
Hi, I am new with MySql and PHP. I have a problem while I am checking NULL value in database. I need If there is empty field in my table row return message "Somthing "and if there is...
2
by: sandeepsandeep | last post by:
Hellow i am facing a problem in mysql query plesae solve it. I have a table Team_master with two field 1. team_id 2. team_name
0
by: =?UTF-8?B?SXbDoW4gU8OhbmNoZXogT3J0ZWdh?= | last post by:
rynato wrote: Variable bindings. Have a look at the PHP manual, the section about PDO and binding variables into a prepared query. Cheers, -- ---------------------------------- Iván...
2
by: wizardry | last post by:
hello - i'm trying to insert a blob into my table, it will insert but the string that i insert when i query the inserted data returns null with 0 bytes in the column. I have other tables set...
1
by: Kenneth Jones | last post by:
How Can You Successfully Query a NULL value in a Text formatted Table Column? This is a known problem per internet articles I have read and I cannot get the query to execute properly.
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

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.