What's new

Closed Pa help po sa codes using c#and mysql

Status
Not open for further replies.

23qwerty

Addict
Joined
Jul 13, 2016
Posts
34
Reaction
2
Points
74
paano yung sa 2 tables na nagkacount yung column tas pagmamayminusin pareho para makita yung items remaining
 
Bale yung table 1 is StoredQuantity tapos yung isa eh SoldQuantity? Kunin yung difference para makuha yung natitira?
 
Salamat boss my sample codes ka
Hindi ko alam structure ng DB mo pero ang kailangan mo lang eh SELECT query.

Select mo sa DB mo yung item using name o id ilagay mo sa variable tapos minus mo.
Ano nagawa o progress mo? Pakita mo para maguide kita.
 
Boss ito po yung 1st tbl SELECT COUNT(inv_ItemCode) FROM fc_inventory, fc_cashier WHERE csh_ItemCode = inv_ItemCode GROUP BY csh_ItemCode , inv_ItemCode

2nd tbl SELECT COUNT(csh_ItemCode) FROM fc_cashier GROUP BY csh_ItemCode

Yan naman po yung error

received_702363350109791.png
 

Attachments

try mo po sa C# na mag minus. kunin mo yung value ng datatable after mo mag select count.
 
sa code (c#) ka mas madaling makakapagsubtract kesa sa script(sql). sa script fetch ka lang ng fetch. sa code ka maglologic
 
Status
Not open for further replies.

Similar threads

Back
Top