Skip to content

Tag: sql

Serial number auto generation

Facing issue in auto generation of serial number. How can i use row_number() in proper manner or is there any alternative to achieve the expected results? Note: I want to write query without using CASE. Current Results: Expected Results: Answer You can try to use ROW_NUMBER window function in a subquery, then…

how to do a few queries MYSQL

this is my homework, i am searching. total 17 question.I couldn’t make 5 questions but i am trying, trying.. list the number of books each student reads. But next to those who do not read the book …

a little bit confusing about a syntax on my databases MySQL

i try to check my databases with : I also try to check my databases on : Why are the results different with SHOW DATABASES; and SELECT Db FROM mysql.db; ? Can i update my databases on mysql.db tables ?? Thanks in advance. Answer mysql.db id an internal system table, hence it is hard to find official documenta…