suppose i have the following tables
i wana get how many orders that have an item with id = 1??????
Code:
items_data
==========
int primary id,
string name,
double price
orders_data
==========
int primary id,
Date date,
orders_details_increase
================
int primary id,
int order_id,
int item_id,
int quantity,
double sale_price,
double value
orders_details_decrease
================
int primary id,
int order_id,
int item_id,
int quantity,
double sale_price,
double value
i wana get how many orders that have an item with id = 1??????