write a query for the fifth highest salary?
Answer Posted / arshi
SELECT MAX(Salary) AS Expr1
FROM TableName
WHERE (Salary NOT IN
(SELECT TOP (4) MAX(Salary)
AS Expr1
FROM TableName AS
TableName_1
GROUP BY Salary
ORDER BY SalaryDESC))
| Is This Answer Correct ? | 6 Yes | 7 No |
Post New Answer View All Answers
What is odm in database?
A lowest level of security by most RDBMS is
hai if any one having any project sample table structure please froward to my mail id tauseefwst@yahoo.com
how to configure oracle 10g in java1.5 and tell me know how to set class path in system?
can u combine pipeline parallelism and partition parallalism? how and whan?
how to reject duplicates in source sequential file and if by filter option then where is that filter option in the sequential file.
How to do Data size testing? Who does this testing (Developer or tester)?
what is the full procedure for using store procedure in informatica7.1?
Which three commands cause a transaction to end?
Explain transaction manager?
What is the difference between specialization and generalization?
How to fetch/retrieve the data from hieranchical database and put it into the relational database? for e.g I want to extract the data from IMS DB2 database which is a hierarchical db and load that data into the relational database which is a SQL server.Are there any tools available for directing extracting data from hierarchical db and loading into the relational database (SQL server)?
Difference between sql and mysql?
london school of science and technology has a software development unit,known as lsst solutions,which is responsible for developing and implementing software throughout the collegejames tristan keeps a record of all student details in the college including student id,name,and start date and phone number.There are many courses offered by LSST. For example MBA, MSc, BSc, BABS, DF, English etc. Each course id identified by course id, description, duration. Each course has many semesters. Each semester takes place during a particular term. Semester details and term details are required to be stored in the database. Each course has many subjects and same subject may be offered in many courses. For each subject many details such as Subject code, name, result and attendance are required to be stored. Every subject has mainly two assessments; one assignment and one exam. Assignment is worth of 30% and exam 70% respectively. You have been appointed as a database designer. Your job is to provide ERD with all possible entities and relationships. Note: Feel free to make necessary assumptions 3: Assignment Tasks. 1. Create an ERD for the above problem 2. Translate the ERD to Relational Data model (RDM) 3. Implement the RDM by creating the tables 4. Populate the database with your own data. 5. SQL Queries for the following tasks a. List all student details in each course along with course details b. Count and display number of students in each course. c. List student name, course name, assessment description, marks for all students.
Is storing images in a database a good idea?