skip to Main Content

Write an SQL query to print details of the Workers whose FIRST_NAME ends with ‘h’ and contains six alphabets? – Mysql

I've the following table. CREATE TABLE Worker ( WORKER_ID INT NOT NULL PRIMARY KEY AUTO_INCREMENT, FIRST_NAME CHAR(25), LAST_NAME CHAR(25), SALARY INT(15), JOINING_DATE DATETIME, DEPARTMENT CHAR(25) ); INSERT INTO Worker (WORKER_ID, FIRST_NAME, LAST_NAME, SALARY, JOINING_DATE, DEPARTMENT) VALUES (001, 'Monika', 'Arora', 100000,…

VIEW QUESTION

Laravel whereJsonContains returns No Result in A whereExists Sub Query

This is my current code, when executed will return no results. (Query1) // Get all product categories that has a relation $product_categories = ProductCategory::whereExists(function($query) { $query->select('id') ->from('restaurants') ->whereJsonContains('restaurants.restaurant_categories', 'product_categories.name'); })->get(); // Log dd($product_categories->toSql()); Here an sql query dump select *…

VIEW QUESTION

WordPress add redirect to 404

could here someone know please? Wordpress redirected to similar parent page if this exists, I need to add redirect to 404 For example I’ve created page Website.com/parent1/child2 If I put Website.com/parent2/child2 It’s redirected me to Website.com/parent1/child2 So I need to…

VIEW QUESTION
Back To Top
Search