Skip to content
Advertisement

Tag: database

Save other ID in database

I have 2 table here : 1. tblPurItem : itemID, categoryID, purchaseMeasurementID, stockMeasurementID, calculationMeasurementID, retailrecipeID 2. tblRecipe : recipeID, recipeName, …

Simple SQL query returning null value

I just started studying SQL queries. I am practicing on this site: https://www.techonthenet.com/sql/joins_try_sql.php I want to find: “the name of the employee with the highest salary for every department”. My query is: And I get null value for first_name : I understand that the problem is due to the group by expressions. But how can I solve this? Tables: Answer

What is Internal process of below mentioned queries?

As per performance which query is optimistic query? Answer id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra -: | :———- | :—- | :——— | :—– | :———— | :—— | :—— | :——————————– | —: | ——-: | :———- 1 | SIMPLE | t1

Advertisement