Skip to content

Slow Moving Stock Items Query

I am trying to return a list of slow-moving stock items. Whenever there is a sale, the items are written to the saleItems table. I want to get those items from inventoryMaster table that are not …

get the count of unread messages

I have this requirement with our DB like shown below I want to get the 3 columns requestType, CategoryGroup, and count of readStatus column The result will show all the requestType along with …

SQL GROUP_CONCAT query assistance

I am having some problems figuring out the best use of GROUP_CONCAT. In the query below I am trying to select multiple images from JAM_Plot_Images and set them against single records. So get record …

PDO changes query

I want to have result of my query as it was before I replaced db connection using PDO. How can I get the query as i t was before I implemented PDO? This is my query: $query = “SELECT `…