is it mandatory to select all the column in a view then what
columns should be selected
Answers were Sorted based on User's Feedback
Answer / sundeep
no.view is nothing but virtual table.a view is like a instance variable for a query.if the query length is long and it used for more than twice then we go for views. In these views we will select the columns which are to be used in a table.
Is This Answer Correct ? | 1 Yes | 0 No |
Hi, Can anybody please explain me the flow of the below query. I am not able to understand how this query works. This query is for finding the Nth highest salary.. SELECT DISTINCT (a.sal) FROM EMP A WHERE &N = (SELECT COUNT (DISTINCT (b.sal)) FROM EMP B WHERE a.sal<=b.sal); If N = 2 then second highest salary will be the o/p. If N = 3 then third highest salary will be the o/p. and so on.. Thanks, Nitin
5 Answers Deloitte, Ness Technologies,
what is julian date in oracle
Is sql a backend?
How to assign sql query results to pl sql variables?
What is trigger in sql?
what is the sql query to display current date? : Sql dba
How can one get sql*loader to commit only at the end of the load file? : aql loader
What is the cause of mutating table error and how can we solve it?
What are the various levels of constraints?
How do you declare a user-defined exception?
Does a join table need a primary key?
What is the use of procedures?