Skip to main content

Questions on BASIC SELECT Statement

BASIC SELECT Statement:

 Syntax:

SELECT *|{[DISTINCT] column|expression [alias],...}
FROM table;


1. Display all rows and all columns of emp table
2. Display any 2 columns of emp table
3. Calculate annual salary with Quarterly commission of 500
4. Display distinct salaries of all the employees
5. Display output as following,
      "Hello SMITH your salary is 5000"
6. Is the following statement correct,
       SeleCT ENAME,deptno FROM emp;
       select *,ename from emp;
       select ename deptno from emp;

Comments

Namrata Yadav said…
Hi Mithun,

Answers for the Basic SQL stmt are not available. Please recheck and post the same.

Thnaking you
Namrata
Ysreehari10 said…
i can not find questions on joins concept
Mithun Ashok said…
Yes they are missing. Will share the link in a short while.
Thaman 1025 said…
THANK YOU SIR FOR GIVING GOOG INFORMATION
Shubhi Patil said…
Hie,do you have any SQL queries bit logical ones usually asked in Interviews?
Unknown said…
Guys we can use this query for 5th max salary:

Select Min(salary) as 5thsalary From (Select Top 5 salary From Employee Order by salary Desc);

Thanking You,

MohanRaj.K.E
Unknown said…
i dint get te answer it says from keyword not found where expected :(
Unknown said…
thank u mithun ashok sir ur tutorial is vvvv helpful to me n nw im gonna pass this link to many of my frnds
ppl teach only basic sql n tey dont evene try to concentrate on different types of questions being asked ur tutorial has really improvised my sql skill a lot

THANKING YOU
AFIFA KAUSER.Z
Unknown said…
unable to see database schema..????

Popular posts from this blog

Basics of RDBMS

Data Small set of information becomes data, this set of information helps make decision. Data is always some useful information. Database Place where you store the data. Database represents some aspect of the real world called "miniworld". A database is designed, built and populated with data for a specific purpose. It has intended group of users and some preconceived applications in which these users are interested. In other words, a database has some source from which data is derived, some degree of interaction with events in the real world and an audience that is actively interested in the contents of the database. Database can also be defined as collection of one or more tables. Ex: Mobile, human brain etc DBMS (Database Management System ) Is a program that stores retrieves and modifies data in the database on request. Study of different techniques of design, development and maintenance of the database Types of DBMS These types are based upon their m...

SQL Interview Questions

1. CLICK HERE FOR QUESTIONS ON BASIC SELECT     2. CLICK HERE FOR QUESTIONS ON BASIC SELECT WITH CONDITION   3.  CLICK HERE FOR QUESTIONS FROM QSPIDERS   4. CLICK HERE FOR QUESTIONS ON FUNCTIONS   5. CLICK HERE FOR QUESTIONS ON SUBQUERIES 6. CLICK HERE FOR MORE QUESTIONS ON SQL       CLICK HERE FOR ANSWERS   Some more Online Questions.   On WIZIQ.COM  -- 66 Questions and its answers Found by Neha Abhay Kumar   On SCRIBD.COM   -- 235 Questions and its answers