Professional Documents
Culture Documents
01 DATABASE QUERIES;
CONCEPT 1. CREATE A TABLE
2. INSERT
3. DELETE
4. UPDATE
5. ALTER
6.WHERE COMMAND
[ BETWEEN, LIKE,><]
7. SELECT
8. COUNT (*)
9. AS
11. GROUP BY
12. NESTED.
QUERY
MYSQL
5. Alter the table VIKKY so that null values are not allowed for
the age column.
ANS.
6. Write the query to display the names and salaries of those
employees whose salaries are greater than 20000.
ANS.
VIKKY_1
VIKKY_2
ANS
EXTRA QUESTIONS
TABLE: VIKKY_4
Write SQL queries for the following;
1.To display SALESMAN_ID, NAMES,
LOCATION_ID WITH CORRESPONDING
LOCATION_NAME.
2.To display NAMES, SALES, and corresponding
LOCATION_NAME who have achieved sales of
more than 1300000.