D
D
Denis Tomsky2016-04-28 12:26:29
PHP
Denis Tomsky, 2016-04-28 12:26:29

SQL query with a condition, how to do?

We were given laboratory work on the database. The essence of the question is this: Determine the number of cars whose stock notice number starts with "10" and does not end with "39".
help me please

Answer the question

In order to leave comments, you need to log in

1 answer(s)
C
Cat Anton, 2016-04-28
@tomskiydenis

SELECT COUNT(*) FROM `cars` WHERE `number` LIKE '10%' AND `number` NOT LIKE '%39';

In general, you need to make labs yourself, for this you need to read books and understand.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question