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

What Am I Doing Wrong

1
Expand|Select|Wrap|Line Numbers
  1. select a.clientname, c.catlabel
  2. from clientsegueads a product_adcategories b product_categories c 
  3. WHERE b.catid 
  4. IN (select c.catid from product_categories where c.cadid = "493")
  5.  LIMIT 3;
clientsegueads
----------------------
cadid
clientname

product_adcategories (bridge table)
--------------------------------
cadid
cat_id

product_categories
----------------------------
cat_id
cat_label

any clues what im donig wrong ?
Sep 17 '07 #1
3 1110
pbmods
5,821 Expert 4TB
Heya, Danny. Welcome to TSDN!

Please use CODE tags when posting source code:

[CODE=MySQL]
MySQL code goes here.
[/CODE]

What's your code doing that you don't want it to? I bought an ESP helmet last month, but it's still on backorder....
Sep 17 '07 #2
amitpatel66
2,367 Expert 2GB
Expand|Select|Wrap|Line Numbers
  1. select a.clientname, c.catlabel
  2. from clientsegueads a product_adcategories b product_categories c 
  3. WHERE b.catid 
  4. IN (select c.catid from product_categories where c.cadid = "493")
  5.  LIMIT 3;
clientsegueads
----------------------
cadid
clientname

product_adcategories (bridge table)
--------------------------------
cadid
cat_id

product_categories
----------------------------
cat_id
cat_label

any clues what im donig wrong ?
IS it becuase you are using a Double Quotes in subquery instead of single quotes?? Try using single Quotes then POST back if this was the problem
Sep 18 '07 #3
r035198x
13,262 8TB
Expand|Select|Wrap|Line Numbers
  1. select a.clientname, c.catlabel
  2. from clientsegueads a product_adcategories b product_categories c 
  3. WHERE b.catid 
  4. IN (select c.catid from product_categories where c.cadid = "493")
  5.  LIMIT 3;
clientsegueads
----------------------
cadid
clientname

product_adcategories (bridge table)
--------------------------------
cadid
cat_id

product_categories
----------------------------
cat_id
cat_label

any clues what im donig wrong ?
You are also missing some commas in
Expand|Select|Wrap|Line Numbers
  1.  from clientsegueads a, product_adcategories b, product_categories c
Sep 18 '07 #4

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

Similar topics

125
by: Sarah Tanembaum | last post by:
Beside its an opensource and supported by community, what's the fundamental differences between PostgreSQL and those high-price commercial database (and some are bloated such as Oracle) from...
121
by: typingcat | last post by:
First of all, I'm an Asian and I need to input Japanese, Korean and so on. I've tried many PHP IDEs today, but almost non of them supported Unicode (UTF-8) file. I've found that the only Unicode...
11
by: Alfonso Morra | last post by:
Hi, I am at the end of my tether now - after spending several days trying to figure how to do this. I have finally written a simple "proof of concept" program to test serializing a structure...
46
by: Keith K | last post by:
Having developed with VB since 1992, I am now VERY interested in C#. I've written several applications with C# and I do enjoy the language. What C# Needs: There are a few things that I do...
13
by: Jason Huang | last post by:
Hi, Would someone explain the following coding more detail for me? What's the ( ) for? CurrentText = (TextBox)e.Item.Cells.Controls; Thanks. Jason
2
by: Aaron Ackerman | last post by:
I cannot a row to this bound DataGrid to SAVE MY LIFE! I have tried everything and I am at a loss. The using goes into add mode with the add button adds his data then updates with the update...
16
by: Ajay | last post by:
Hi all, i want to know when i create a class.what all it contains.I know the following things are there by default if i do not declare them by myself.Please tell the other things that are left. ...
8
by: watkinsdev | last post by:
Hi, I have created a mesh class in visual studio 6.0 c++. I can create a device, render objects and can edit the objects by for instancnce selecting a cluster of vertices and processing the...
0
by: shapper | last post by:
Hello, I am creating a class with a control. I compiled the class and used it on an Asp.Net 2.0 web site page. I can see the begin and end tags of my control (<oland </ol>) but somehow the...
10
by: DavidSeck.com | last post by:
Hi, I am working with the Facebook API right now, an I have kind of a problem, but I don't know what I am doing wrong. So I have a few arrays, f.ex.: User albums: array(2) {
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...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: 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...

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.