I have a table products and another table categories.
Here is some sample data
Products
id | product_name | category_id
1 | Leath Machine | 1
2 | Drilling Machine | 1
3 | Boring Machine | 1
And here is category table
id | name | symbol
1 | SMT Equipment | SMT
I want to do a select which will display me results like this
id | product_name | category_id | code
1 | Leath Machine | 1 | SMT00001
2 | Drilling Machine | 1 | SMT00002
3 | Boring Machine | 1 | SMT00003
How cai do that.