Viewing 6 posts - 1 through 6 (of 6 total)
select p.productid, o.orderid, orderdate
from products p
inner join [order details] od on od.productid = p.productid
inner join orders o on od.orderid = o.orderid
inner join (
select productid, max(orderdate) as maxOrderDate
from [order details]...
July 27, 2005 at 3:15 pm
how about:
select productname, categoryid, max(od.orderid) as lastOrderID, max(orderdate) as lastOrderDate
from products p
left join [order details] od on od.productid = p.productid
left join orders o on od.orderid = o.orderid
where categoryid =...
July 27, 2005 at 10:31 am
March 10, 2005 at 8:32 am
The string "" is the code for a tilde "~" character. If you display this string in an html page, the browser shows a tilde. Are you html encoding before...
March 3, 2005 at 8:57 am
Alternatively, you could create a child table with a foreign key id field and a single text field, with 15 records for a given id representing the 15 lines you...
March 2, 2005 at 8:17 am
Viewing 6 posts - 1 through 6 (of 6 total)