skip to Main Content

Mysql – How to convert a NOT IN query into a JOIN query

I have this following query that needs to be optimized Select 1 As status, e.entity_id, e.attribute_set_id, e.type_id, e.created_at, e.updated_at, e.sku, e.name, e.short_description, e.image, e.small_image, e.thumbnail, e.url_key, e.free, e.number_of_downloads, e.sentence1, e.url_path From catalog_product_flat_1 As e Inner Join catalog_category_product_index_store1 As cat_index On…

VIEW QUESTION

Returning wrong id in laravel

Departemen = 'nama_departemen', 'nama_manager', 'jumlah_pegawai', Pegawai = 'nomor_induk_pegawai', 'nama_pegawai', 'id_departemen', 'email', 'telepon', 'gender', 'status' PegawaiController public function index() { $pegawai = Pegawai::Join('departemens','pegawais.id_departemen','=','departemens.id')->paginate(5); return view ('pegawai.index', compact('pegawai')); } public function destroy($id) { Pegawai::find($id)->delete(); return redirect()->route('pegawai.index')->with(['success'=> 'Item Berhasil Dihapus']); } public function…

VIEW QUESTION
Back To Top
Search