Computer Science
…………… clause of the following query must be added with keyword …………… to display the fields given in the select list as per a given condition.
SELECT ID, name, dept name, salary * 1.1
WHERE instructor = 1005 ;
- where, having
- select, from
- where, from
- where, select
SQL Queries
1 Like
Answer
select, from
Reason — In SQL, the SELECT
clause is used to retrieve a subset of rows and columns from one or more tables, while the FROM
clause specifies the table from which the data should be retrieved. Therefore, to complete the query, the FROM
clause must be added after the SELECT
keyword. The corrected query is as follows :
SELECT ID, name, dept name, salary * 1.1
FROM <table_name>
WHERE instructor = 1005 ;
Answered By
1 Like
Related Questions
Which of the following keywords will you use in the following query to display all the values of the column dept_name ?
SELECT ............... dept_name FROM Company;
- All
- From
- Distinct
- Name
The …………… clause of SELECT query allows us to select only those rows in the result that satisfy a specified condition.
- Where
- from
- having
- like
Which of the following queries contains an error?
- Select * from emp where empid = 10003;
- Select empid from emp where empid = 10006;
- Select empid from emp;
- Select empid where empid = 1009 and lastname = 'GUPTA';
Consider the following table namely Employee :
Employee_id Name Salary 1001 Misha 6000 1009 Khushi 4500 1018 Japneet 7000 Which of the names will not be displayed by the below given query ?
SELECT name FROM employee WHERE employee_id > 1009 ;
- Misha, Khushi
- Khushi, Japneet
- Japneet
- Misha, Japneet