ok, ive modified it to this and gotten it to work:
<code> delete P
from Products as P
inner
join (
select Description
, NetBtl
, min(Date) as min_date
from Products
group
by Description
, NetBtl
having count(*) > 1...
ok, so i have a table of products, called "products" located in a database called "Book". my problem is when i update products, using a csv file through phpmyadmin, it will add another row, all the same info (price, description, etc) but different dates, and different primary keys...
i am using phpmyadmin to create reports from my database. i export them to a PDF file, and it arranges them by another field, i would like it to arrange a-z by the tables "description" field. how would i do this?
i have a view that i need ordered by ascending when i access it. right now it sorts by ID i believe. here is my code to create the view:
DROP VIEW IF EXISTS `Book`.`book`;
CREATE ALGORITHM=UNDEFINED DEFINER=`server`@`` SQL SECURITY DEFINER VIEW `Book`.`book` AS select `view`.`Description` AS...
i am using something called dataface as my frontend, and i run the query in mysql query browser to create "view" which the frontend gets its information from
i have only a very basic knowledge of mysql, so i would not know how to do that. i have set the field in the table that the view gets its data from as 19,2 but its not making a difference
ok, i have a mysql query,
(CREATE VIEW `Book`.`view` AS
SELECT ID, Description, Size, Pack, List, Net, Discount, NetBtl, SRP, Vendor, Date, CONCAT(ROUND((srp-netbtl)*100/srp),'%') as GPM FROM Products;)
and i need to add in the formulas (List-Discount=Net)and (Net/Pack=NetBtl) along with it...
ok,
i have a form in access, so that i can edit and apply mathematical formulas to a local access table, but my linked table doesnt get changed. so i made a view of the table, and i only get one line of the table, not the whole table. how do i fix this?
hello,
i have smartmail, "Sendmail version 8.13.5.20060308, config V10/Berkeley". when i installed it, and went to the sendmail.mc file, and theres nothing for smart_host. i am setting this up on sbc yahoo dsl. help!!
see, i dont want to create a new table, i want it to take all the tables on dist, and apply an update to database/table "book:products". basically i need a php app that i can click an update button that will run all this "behind the scenes
hello,
i have a web interface built to show the output of several tables that distributors can edit, now i need to find a script that can take all those tables, and merge/update them into a single table on a second database. any ideas?
ok, so i have a view, how would i put a primary key into it? i have this code:
DROP VIEW IF EXISTS `Book`.`view`;
CREATE ALGORITHM=UNDEFINED DEFINER=`server`@`` SQL SECURITY DEFINER VIEW `view` AS select `Products`.`ID` AS `ID`,`Products`.`Description` AS `Description`,`Products`.`Size` AS...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.