Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
i have worked out how to display results by comparing table, can some one tell me how to add and delet using this qury
in this one i want to delet the products that arnt in the `newprice list` table
[syntax="sql"]SELECT `price list`.PartNumber, `price list`.Description
FROM `price list`
LEFT JOIN `newprice list` ON `price list`.PartNumber = `newprice list`.PartNumber
WHERE `newprice list`.PartNumber IS NULL;Code: Select all
SELECT `newprice list`.PartNumber, `newprice list`.Description
FROM `newprice list`
LEFT JOIN `price list` ON `newprice list`.PartNumber = `price list`.PartNumber
WHERE `price list`.PartNumber IS NULL;feyd | Please use[/syntax]
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]