Forum Replies Created

Viewing 15 posts - 1 through 15 (of 24 total)

  • RE: Sql Query

    The results page has all the extra stuff in it i dont want people to see... is there anyway to make it print to an html or php page i...

  • RE: Why Doesnt This Work?

    I have it not i am using a program that auto populates a data base but it doesn't put data where it should like even though it says there is...

  • RE: Why Doesnt This Work?

    GilaMonster (1/20/2011)


    Again I think you misspelt it. You have CustomFeild4 in your query, I doubt it's misspelt in the table.

    its spelled correct i copy and pasted it directly from my...

  • RE: Why Doesnt This Work?

    Ok not it all works but it is saying

    "Your SQL is invalid: Invalid column name 'customfield4'."

    Do i need to have quotes around it or anything sense there is a...

  • RE: Combine Multiple rows into 1 row

    If the colum names are the same that you want to combine you can use UNION

    Select ColumnA,ColumnB,ColumnC

    From TableA

    Union

    Select ColumnA,ColumnB,ColumnC

    From TableB

  • RE: Why Doesnt This Work?

    Justin 17041 (1/20/2011)


    So you are saying to look like this

    SELECT

    Orders.OrderDate,

    Orders.OrderId,

    Orders.OrderNotes,

    Orders.Custom_field_vehicleinfo,

    Orders.Salesrep_Customerid,

    OrderDetails.ProductCode,

    OrderDetails.Productname,

    OrderDetails.Quantity,

    Products.CustomFeild4

    FROM Orders

    INNER JOIN OrderDetails ON Orders.OrderID = OrderDetails.OrderID

    INNER JOIN Products ON Products.ProductCode =...

  • RE: Why Doesnt This Work?

    So you are saying to look like this

    SELECT

    Orders.OrderDate,

    Orders.OrderId,

    Orders.OrderNotes,

    Orders.Custom_field_vehicleinfo,

    Orders.Salesrep_Customerid,

    OrderDetails.ProductCode,

    OrderDetails.Productname,

    OrderDetails.Quantity,

    Products.CustomFeild4

    FROM Orders

    INNER JOIN OrderDetails ON Orders.OrderID = OrderDetails.OrderID

    INNER JOIN Products ON Products.ProductCode = OrderDtails.ProductCode

    WHERE Orders.Orderstatus...

  • RE: Why Doesnt This Work?

    SELECT

    Orders.OrderDate,

    Orders.OrderId,

    Orders.OrderNotes,

    Orders.Custom_field_vehicleinfo,

    Orders.Salesrep_Customerid,

    OrderDetails.ProductCode,

    OrderDetails.Productname,

    OrderDetails.Quantity,

    FROM Orders

    INNER JOIN Orderdetails

    ON orders.orderid = orderdetails.orderid

    WHERE Orders.Orderstatus in ('Pending', 'Processing', 'New')

    ORDER BY Orders.OrderDate ASC

    I really jus need to have CustomField4 from products so up on this report.......

  • RE: Why Doesnt This Work?

    When i switch it to this so the WHERE clause is at the end

    SELECT

    Orders.OrderDate,

    Orders.OrderId,

    Orders.OrderNotes,

    Orders.Custom_field_vehicleinfo,

    Orders.Salesrep_Customerid,

    OrderDetails.ProductCode,

    OrderDetails.Productname,

    OrderDetails.Quantity,

    Products.CustomField4

    FROM Orders

    INNER JOIN Products

    ON Products.ProductCode = OrderDetails.ProductCode

    INNER JOIN Orderdetails

    ON orders.orderid = orderdetails.orderid

    WHERE Orders.Orderstatus in...

  • RE: Why Doesnt This Work?

    So how would i have my where clause in there in the correct order?

  • RE: Why Doesnt This Work?

    Select

    Orders.OrderDate,

    Orders.OrderId,

    Orders.OrderNotes,

    Orders.Custom_field_vehicleinfo,

    Orders.Salesrep_Customerid,

    OrderDetails.ProductCode,

    OrderDetails.Productname,

    OrderDetails.Quantity,

    Products.CustomField4

    From Orders

    INNER join Orderdetails

    on orders.orderid = orderdetails.orderid

    Where Orders.Orderstatus in ('Pending', 'Processing', 'New')

    Join Products

    ON Products.ProductCode = OrderDetails.ProductCode

    Is the code i am using and it is saying incorrect...

  • RE: Why Doesnt This Work?

    The code you gave me errors

    what if i add

    What about this?

    Inner Join Products

    ON Products.Productname = OrderDetails.ProductName,

    Products.ProductCode = OrderDetails.ProductCode

    Would that be better

  • RE: Why Doesnt This Work?

    What about this?

    Inner Join Products

    ON Products.Productname = OrderDetails.ProductName,

    Products.ProductCode = OrderDetails.ProductCode

  • RE: Why Doesnt This Work?

    Well the the columns match on ProductName and ProductCode so what should i do?

  • RE: Why Doesnt This Work?

    Select

    Orders.OrderDate,

    Orders.OrderId,

    Orders.OrderNotes,

    Orders.Custom_field_vehicleinfo,

    Orders.Salesrep_Customerid,

    OrderDetails.ProductCode,

    OrderDetails.Productname,

    OrderDetails.Quantity,

    Products.CustomFeild4

    From Orders

    Join Products

    ON Orderdetails.ProductName = Products.ProductName

    Order BY Products.ProductCode ASC

    join Orderdetails

    on orders.orderid = orderdetails.orderid

    Where Orders.Orderstatus in ('Pending', 'Processing', 'New')

    Order By Orders.Orderdate ASC

    Error incorrect syntax near the work join.....

    Is the exact code...

Viewing 15 posts - 1 through 15 (of 24 total)