Thread: Sql Query

Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Sep 2007
    Location
    Somewhere in Southern Cal
    Posts
    330
    Plugin Contributions
    0

    Default Re: Sql Query

    If the fields exist in that table
    then you can do this
    select * from abc;

    abc will be your table name.
    this will list all the fields within that table.
    you can also do an order by which will list all the fields in order.
    it migh look something like this
    select * from abc order by category; (or it could be by name of the product, products_id)

    Where are you going to write this SQL at.
    If you have XAMMP that is were I would write it
    This is only a temp SQL script
    nomad

  2. #2
    Join Date
    Feb 2006
    Posts
    124
    Plugin Contributions
    0

    Default Re: Sql Query

    I have this query

    I think that this will give me part of what i need. But now is give me timout


    SELECT `products`.`products_id`,`products`.`products_image`,`products`.`products_status `, `products_description`.`products_name`, `products_to_categories`.`categories_id`
    FROM products, products_description, products_to_categories

  3. #3
    Join Date
    Aug 2007
    Location
    Tampa FL.
    Posts
    142
    Plugin Contributions
    0

    Default Re: Sql Query

    Hello,

    You can't select products from products:

    HTML Code:
    SELECT products_name, products_description, products_url,  products_id,products_quantity, products_model, products_image,products_price,products_virtual, products_weight,   products_date_added, products_last_modified, products_date_available, products_status, products_tax_class_id,  manufacturers_id,        products_quantity_order_min, products_quantity_order_units,   products_priced_by_attribute,     product_is_free, p.product_is_call, products_quantity_mixed,  product_is_always_free_shipping, products_qty_box_status,  products_quantity_order_max,  products_sort_order,  products_discount_type, products_discount_type_from,
    products_price_sorter FROM  products, product_description
                                  WHERE products_id = ''
    And you have periods in place of comas
    Rich

  4. #4
    Join Date
    Feb 2006
    Posts
    124
    Plugin Contributions
    0

    Default Re: Sql Query

    With your query i get:

    Column 'products_id' in field list is ambiguous


    And i have to ad:

    products_to_categories in the FROM

    like this:

    FROM products, products_description, products_to_categories

 

 

Similar Threads

  1. Replies: 9
    Last Post: 12 Jul 2023, 12:26 AM
  2. v154 Help with a SQL Query for Query Builder
    By lindasdd in forum Managing Customers and Orders
    Replies: 2
    Last Post: 24 Mar 2016, 01:18 PM
  3. v151 SQL query setup. How do I TEST a query 'off-line'?
    By lewisasding in forum General Questions
    Replies: 3
    Last Post: 8 Mar 2013, 12:24 AM
  4. Replies: 2
    Last Post: 15 Aug 2011, 04:58 AM
  5. SQL Query
    By RobWUK in forum General Questions
    Replies: 4
    Last Post: 27 Sep 2010, 04:56 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg