I need to get attribute_id from eav_attribute
table, I have attribute_code
and frontend_label
, my sql query will be some thing like this.
select attribute_id from eav_attribute where attribute_code = 'sb_store_id'
What will be its equivalent magento statement.