T
T
Timofey2015-01-26 23:46:55
MySQL
Timofey, 2015-01-26 23:46:55

What will the creation of an sql query look like based on this example?

Hello, help me compose a sql query from the following example, I have not done such things before, if possible, then with an explanation of each item, so that I understand how to do it correctly.
Example:
There is a "Quick Search" button on a web page that selects from the CHAR table in the database all characters above level 45 (level column), dwarf race (race column) and displays the result on the page.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
E
entermix, 2015-01-26
@entermix

fetch -> SELECT
all records -> *
from table named "CHAR" -> FROM CHAR
if -> WHERE
column "level" is greater than 45 -> level > 45
and -> AND
column "race" equals "dwarf" -> race="dwarf"

SELECT * FROM CHAR WHERE level > 45 AND race="dwarf"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question